forked from OSchip/llvm-project
Document the Message parameter of getCustomDiagID()
A lot of callers have been using this facility incorrectly. llvm-svn: 197920
This commit is contained in:
parent
5028dc0fca
commit
61d41af46b
|
@ -591,6 +591,9 @@ public:
|
|||
///
|
||||
/// If this is the first request for this diagnostic, it is registered and
|
||||
/// created, otherwise the existing ID is returned.
|
||||
///
|
||||
/// \param Message A fixed diagnostic format string that will be hashed and
|
||||
/// mapped to a unique DiagID.
|
||||
unsigned getCustomDiagID(Level L, StringRef Message) {
|
||||
return Diags->getCustomDiagID((DiagnosticIDs::Level)L, Message);
|
||||
}
|
||||
|
|
|
@ -311,6 +311,9 @@ DiagnosticIDs::~DiagnosticIDs() {
|
|||
/// getCustomDiagID - Return an ID for a diagnostic with the specified message
|
||||
/// and level. If this is the first request for this diagnostic, it is
|
||||
/// registered and created, otherwise the existing ID is returned.
|
||||
///
|
||||
/// \param Message A fixed diagnostic format string that will be hashed and
|
||||
/// mapped to a unique DiagID.
|
||||
unsigned DiagnosticIDs::getCustomDiagID(Level L, StringRef Message) {
|
||||
if (CustomDiagInfo == 0)
|
||||
CustomDiagInfo = new diag::CustomDiagInfo();
|
||||
|
|
Loading…
Reference in New Issue