diff options
author | Alp Toker <alp@nuanti.com> | 2014-01-06 11:30:15 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-01-06 11:30:15 +0000 |
commit | 003071734f88d59421d78847eb9fec3993effef2 (patch) | |
tree | 0b8bfccdda33eaa5dd9d9d1164a1e221c586dad8 /include/clang/Basic/DiagnosticIDs.h | |
parent | 052cd2e12e8209555048475b35ebeaed9d2250e7 (diff) |
Apply some LLVM_READONLY / LLVM_READNONE on diagnostic functions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticIDs.h')
-rw-r--r-- | include/clang/Basic/DiagnosticIDs.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/clang/Basic/DiagnosticIDs.h b/include/clang/Basic/DiagnosticIDs.h index 56e30fbda7..2be4acf2fa 100644 --- a/include/clang/Basic/DiagnosticIDs.h +++ b/include/clang/Basic/DiagnosticIDs.h @@ -247,15 +247,15 @@ private: /// /// \param Loc The source location for which we are interested in finding out /// the diagnostic state. Can be null in order to query the latest state. - DiagnosticIDs::Level getDiagnosticLevel(unsigned DiagID, SourceLocation Loc, - const DiagnosticsEngine &Diag) const; + DiagnosticIDs::Level + getDiagnosticLevel(unsigned DiagID, SourceLocation Loc, + const DiagnosticsEngine &Diag) const LLVM_READONLY; /// \brief An internal implementation helper used when \p DiagClass is /// already known. - DiagnosticIDs::Level getDiagnosticLevel(unsigned DiagID, - unsigned DiagClass, - SourceLocation Loc, - const DiagnosticsEngine &Diag) const; + DiagnosticIDs::Level + getDiagnosticLevel(unsigned DiagID, unsigned DiagClass, SourceLocation Loc, + const DiagnosticsEngine &Diag) const LLVM_READONLY; /// \brief Used to report a diagnostic that is finally fully formed. /// |