]> granicus.if.org Git - clang/commitdiff
Add comment to IsFileLexer, clean up indentation, and tighten how it's written.
authorTed Kremenek <kremenek@apple.com>
Fri, 21 Nov 2008 01:07:52 +0000 (01:07 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 21 Nov 2008 01:07:52 +0000 (01:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59773 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/Preprocessor.h

index 925c45f2b9fd20a9c12d6b74035f0a321437826a..1a60d98862ae99cbea9960c37e782a44bf35ef32 100644 (file)
@@ -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) {