aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/Preprocessor.h
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-02-14 01:42:24 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-02-14 01:42:24 +0000
commit9d3f5f7550a2fab4178ed01425758c349b73a609 (patch)
tree98c17d536d02f52d2195d20314a44e8a06040dab /include/clang/Lex/Preprocessor.h
parent462dae559c2377db365a8da1d84c5400284ebd30 (diff)
Make LexOnOffSwitch a Preprocessor member function
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r--include/clang/Lex/Preprocessor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index df3a5b234b..018f7e9c8c 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -843,6 +843,10 @@ public:
bool ConcatenateIncludeName(llvm::SmallString<128> &FilenameBuffer,
SourceLocation &End);
+ /// LexOnOffSwitch - Lex an on-off-switch (C99 6.10.6p2) and verify that it is
+ /// followed by EOM. Return true if the token is not a valid on-off-switch.
+ bool LexOnOffSwitch(tok::OnOffSwitch &OOS);
+
private:
void PushIncludeMacroStack() {