aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/Preprocessor.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-04 06:20:15 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-04 06:20:15 +0000
commitd6aba06861c41ccbc4926e5fe3cecd97b20410c0 (patch)
tree236d9d107a013eced1887f36af86fbdecc04f2d2 /include/clang/Lex/Preprocessor.h
parent256fc4d0743d520a2535d6de003aa828f5de8b27 (diff)
Don't treat 'import' as a contextual keyword when we're in a caching lexer, or when modules are disabled.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147524 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 8c7b0bce3f..fcaf9c6a2c 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -683,6 +683,10 @@ public:
CachedTokens[CachedLexPos-1] = Tok;
}
+ /// \brief Recompute the current lexer kind based on the CurLexer/CurPTHLexer/
+ /// CurTokenLexer pointers.
+ void recomputeCurLexerKind();
+
/// \brief Specify the point at which code-completion will be performed.
///
/// \param File the file in which code completion should occur. If