diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-11-21 01:07:52 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-11-21 01:07:52 +0000 |
commit | 34eaa24e6c2dc72bbbd5ad09694368cfd09c5f14 (patch) | |
tree | 754860e3bfb7c397c99d7ffb07fd6c7779f1954b | |
parent | c41c1235e0d570e153150f994d28c4d2042c22ec (diff) |
Add comment to IsFileLexer, clean up indentation, and tighten how it's written.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59773 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Lex/Preprocessor.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index 925c45f2b9..1a60d98862 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/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) { |