[cfe-commits] r51103 - /cfe/trunk/lib/Sema/IdentifierResolver.h

Argiris Kirtzidis akyrtzi at gmail.com
Wed May 14 03:49:47 PDT 2008


Author: akirtzidis
Date: Wed May 14 05:49:47 2008
New Revision: 51103

URL: http://llvm.org/viewvc/llvm-project?rev=51103&view=rev
Log:
Change CRLF line endings to LF.

Modified:
    cfe/trunk/lib/Sema/IdentifierResolver.h

Modified: cfe/trunk/lib/Sema/IdentifierResolver.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/IdentifierResolver.h?rev=51103&r1=51102&r2=51103&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/IdentifierResolver.h (original)
+++ cfe/trunk/lib/Sema/IdentifierResolver.h Wed May 14 05:49:47 2008
@@ -321,13 +321,13 @@
     return ctx_iterator(IDI->decls_begin());
   }
 
-  /// isDeclInScope - If 'Ctx' is a function/method, isDeclInScope returns true
-  /// if 'D' is in Scope 'S', otherwise 'S' is ignored and isDeclInScope returns
-  /// true if 'D' belongs to the given declaration context.
+  /// isDeclInScope - If 'Ctx' is a function/method, isDeclInScope returns true
+  /// if 'D' is in Scope 'S', otherwise 'S' is ignored and isDeclInScope returns
+  /// true if 'D' belongs to the given declaration context.
   static bool isDeclInScope(Decl *D, DeclContext *Ctx, Scope *S = 0) {
-    if (Ctx->isFunctionOrMethod())
-      return S->isDeclScope(D);
-
+    if (Ctx->isFunctionOrMethod())
+      return S->isDeclScope(D);
+
     return LookupContext(D) == LookupContext(Ctx);
   }
 





More information about the cfe-commits mailing list