diff options
| -rw-r--r-- | clang/include/clang/Lex/Preprocessor.h | 10 | 
1 files changed, 4 insertions, 6 deletions
| diff --git a/clang/include/clang/Lex/Preprocessor.h b/clang/include/clang/Lex/Preprocessor.h index 925c45f2b9f..1a60d98862a 100644 --- a/clang/include/clang/Lex/Preprocessor.h +++ b/clang/include/clang/Lex/Preprocessor.h @@ -611,12 +611,10 @@ private: -  static bool IsFileLexer(const Lexer* L, -                                       const PreprocessorLexer* P) { -    if (L) -      return !L->isPragmaLexer(); -    else -      return P != 0; +  /// IsFileLexer - Returns true if we are lexing from a file and not a +  ///  pragma or a macro. +  static bool IsFileLexer(const Lexer* L, const PreprocessorLexer* P) { +    return L ? !L->isPragmaLexer() : P != 0;    }    static bool IsFileLexer(const IncludeStackInfo& I) { | 

