summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPLexerChange.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-20 16:19:53 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-20 16:19:53 +0000
commit6bc5f3ec9062b33c7987922827156095757bb8e9 (patch)
treed7eb7a614942dedcd6b4ff3c9b18f1c09a2eba7e /clang/lib/Lex/PPLexerChange.cpp
parentb6df273d2ce2520604fe003b0a5ad6dba7202c11 (diff)
downloadbcm5719-llvm-6bc5f3ec9062b33c7987922827156095757bb8e9.tar.gz
bcm5719-llvm-6bc5f3ec9062b33c7987922827156095757bb8e9.zip
Rename IsNonPragmaNonMacroLexer to IsFileLexer.
llvm-svn: 59731
Diffstat (limited to 'clang/lib/Lex/PPLexerChange.cpp')
-rw-r--r--clang/lib/Lex/PPLexerChange.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp
index 973eced1cdb..a12309a7bfc 100644
--- a/clang/lib/Lex/PPLexerChange.cpp
+++ b/clang/lib/Lex/PPLexerChange.cpp
@@ -30,14 +30,14 @@ PPCallbacks::~PPCallbacks() {}
/// isInPrimaryFile - Return true if we're in the top-level file, not in a
/// #include. This looks through macro expansions and active _Pragma lexers.
bool Preprocessor::isInPrimaryFile() const {
- if (IsNonPragmaNonMacroLexer())
+ if (IsFileLexer())
return IncludeMacroStack.empty();
// If there are any stacked lexers, we're in a #include.
- assert(IsNonPragmaNonMacroLexer(IncludeMacroStack[0]) &&
+ assert(IsFileLexer(IncludeMacroStack[0]) &&
"Top level include stack isn't our primary lexer?");
for (unsigned i = 1, e = IncludeMacroStack.size(); i != e; ++i)
- if (IsNonPragmaNonMacroLexer(IncludeMacroStack[i]))
+ if (IsFileLexer(IncludeMacroStack[i]))
return false;
return true;
}
@@ -46,13 +46,13 @@ bool Preprocessor::isInPrimaryFile() const {
/// that this ignores any potentially active macro expansions and _Pragma
/// expansions going on at the time.
PreprocessorLexer *Preprocessor::getCurrentFileLexer() const {
- if (IsNonPragmaNonMacroLexer())
+ if (IsFileLexer())
return CurPPLexer;
// Look for a stacked lexer.
for (unsigned i = IncludeMacroStack.size(); i != 0; --i) {
const IncludeStackInfo& ISI = IncludeMacroStack[i-1];
- if (IsNonPragmaNonMacroLexer(ISI))
+ if (IsFileLexer(ISI))
return ISI.ThePPLexer;
}
return 0;
OpenPOWER on IntegriCloud