]> granicus.if.org Git - clang/commitdiff
ASTUnit: Fix a name clash in GCC builds.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 6 Feb 2015 18:58:04 +0000 (18:58 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 6 Feb 2015 18:58:04 +0000 (18:58 +0000)
Should fix the build. Looks like GCC 4.9 is using different scoping rules for
range-based for loops.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228424 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/ASTUnit.cpp

index 48090caaa6b9aa8bb57121daa1053b47071582c3..bfb1efe352295618092b5dafa9f83bd9f4f40192 100644 (file)
@@ -924,8 +924,8 @@ public:
     Hash = 0;
   }
 
-  bool HandleTopLevelDecl(DeclGroupRef D) override {
-    for (Decl *D : D) {
+  bool HandleTopLevelDecl(DeclGroupRef DG) override {
+    for (Decl *D : DG) {
       // FIXME: Currently ObjC method declarations are incorrectly being
       // reported as top-level declarations, even though their DeclContext
       // is the containing ObjC @interface/@implementation.  This is a