diff options
| author | Alp Toker <alp@nuanti.com> | 2013-12-23 21:00:35 +0000 |
|---|---|---|
| committer | Alp Toker <alp@nuanti.com> | 2013-12-23 21:00:35 +0000 |
| commit | 61d41af46b9412194dc2cfbd0db3f315a1f80da9 (patch) | |
| tree | 3ebace08562bb8518999d8be59b92a1fcdff7535 /clang/lib | |
| parent | 5028dc0fcacd6e2f92481080294f6b71ac49a17e (diff) | |
| download | bcm5719-llvm-61d41af46b9412194dc2cfbd0db3f315a1f80da9.tar.gz bcm5719-llvm-61d41af46b9412194dc2cfbd0db3f315a1f80da9.zip | |
Document the Message parameter of getCustomDiagID()
A lot of callers have been using this facility incorrectly.
llvm-svn: 197920
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Basic/DiagnosticIDs.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Basic/DiagnosticIDs.cpp b/clang/lib/Basic/DiagnosticIDs.cpp index 48e7317985e..90d5ed00214 100644 --- a/clang/lib/Basic/DiagnosticIDs.cpp +++ b/clang/lib/Basic/DiagnosticIDs.cpp @@ -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(); |

