[cfe-commits] r59773 - /cfe/trunk/include/clang/Lex/Preprocessor.h
Ted Kremenek
kremenek at apple.com
Thu Nov 20 17:07:52 PST 2008
Author: kremenek
Date: Thu Nov 20 19:07:52 2008
New Revision: 59773
URL: http://llvm.org/viewvc/llvm-project?rev=59773&view=rev
Log:
Add comment to IsFileLexer, clean up indentation, and tighten how it's written.
Modified:
cfe/trunk/include/clang/Lex/Preprocessor.h
Modified: cfe/trunk/include/clang/Lex/Preprocessor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/Preprocessor.h?rev=59773&r1=59772&r2=59773&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/Preprocessor.h (original)
+++ cfe/trunk/include/clang/Lex/Preprocessor.h Thu Nov 20 19:07:52 2008
@@ -611,12 +611,10 @@
- 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) {
More information about the cfe-commits
mailing list