summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/Lex/PPLexerChange.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Lex/PPLexerChange.cpp b/clang/Lex/PPLexerChange.cpp
index ed4e1ebf162..c5998c93ef9 100644
--- a/clang/Lex/PPLexerChange.cpp
+++ b/clang/Lex/PPLexerChange.cpp
@@ -29,7 +29,7 @@ PPCallbacks::~PPCallbacks() {
//===----------------------------------------------------------------------===//
/// isInPrimaryFile - Return true if we're in the top-level file, not in a
-/// #include.
+/// #include. This looks through macro expansions and active _Pragma lexers.
bool Preprocessor::isInPrimaryFile() const {
if (CurLexer && !CurLexer->Is_PragmaLexer)
return IncludeMacroStack.empty();
OpenPOWER on IntegriCloud