From: Argyrios Kyrtzidis Date: Thu, 15 May 2008 17:53:43 +0000 (+0000) Subject: Make isFileVarDecl() return true when the VarDecl is in a C++ namespace. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bf7dd75706a67de2368226b2d2c590c23d7dbf5;p=clang Make isFileVarDecl() return true when the VarDecl is in a C++ namespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51153 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 191baabe27..f346be80ea 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -274,7 +274,8 @@ public: bool isFileVarDecl() const { if (getKind() != Decl::Var) return false; - if (isa(getDeclContext())) + if (isa(getDeclContext()) || + isa(getDeclContext()) ) return true; return false; }