A lot of callers have been using this facility incorrectly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197920
91177308-0d34-0410-b5e6-
96231b3b80d8
///
/// 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);
}
/// 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();