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/TokenKinds.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/TokenKinds.h')
-rw-r--r-- | include/clang/Basic/TokenKinds.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/TokenKinds.h b/include/clang/Basic/TokenKinds.h index 029cbdd48c..53f006a887 100644 --- a/include/clang/Basic/TokenKinds.h +++ b/include/clang/Basic/TokenKinds.h @@ -54,7 +54,7 @@ enum OnOffSwitch { /// /// The name of a token will be an internal name (such as "l_square") /// and should not be used as part of diagnostic messages. -const char *getTokenName(enum TokenKind Kind); +const char *getTokenName(enum TokenKind Kind) LLVM_READNONE; /// \brief Determines the spelling of simple punctuation tokens like /// '!' or '%', and returns NULL for literal and annotation tokens. @@ -63,7 +63,7 @@ const char *getTokenName(enum TokenKind Kind); /// and will not produce any alternative spellings (e.g., a /// digraph). For the actual spelling of a given Token, use /// Preprocessor::getSpelling(). -const char *getTokenSimpleSpelling(enum TokenKind Kind); +const char *getTokenSimpleSpelling(enum TokenKind Kind) LLVM_READNONE; /// \brief Return true if this is a raw identifier or an identifier kind. inline bool isAnyIdentifier(TokenKind K) { |