diff options
| -rw-r--r-- | clang/include/clang/Basic/Diagnostic.h | 4 | ||||
| -rw-r--r-- | clang/lib/Basic/DiagnosticIDs.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/clang/include/clang/Basic/Diagnostic.h b/clang/include/clang/Basic/Diagnostic.h index bd5f7b06f46..d5452d74f68 100644 --- a/clang/include/clang/Basic/Diagnostic.h +++ b/clang/include/clang/Basic/Diagnostic.h @@ -593,8 +593,8 @@ 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. + /// \param FormatString A fixed diagnostic format string that will be hashed + /// and mapped to a unique DiagID. template <unsigned N> unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) { return Diags->getCustomDiagID((DiagnosticIDs::Level)L, diff --git a/clang/lib/Basic/DiagnosticIDs.cpp b/clang/lib/Basic/DiagnosticIDs.cpp index f752882e929..c8cd03e0309 100644 --- a/clang/lib/Basic/DiagnosticIDs.cpp +++ b/clang/lib/Basic/DiagnosticIDs.cpp @@ -312,12 +312,12 @@ DiagnosticIDs::~DiagnosticIDs() { /// 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 +/// \param FormatString A fixed diagnostic format string that will be hashed and /// mapped to a unique DiagID. -unsigned DiagnosticIDs::getCustomDiagID(Level L, StringRef Message) { +unsigned DiagnosticIDs::getCustomDiagID(Level L, StringRef FormatString) { if (CustomDiagInfo == 0) CustomDiagInfo = new diag::CustomDiagInfo(); - return CustomDiagInfo->getOrCreateDiagID(L, Message, *this); + return CustomDiagInfo->getOrCreateDiagID(L, FormatString, *this); } |

