firolino created this revision. firolino added a reviewer: rsmith. firolino added a subscriber: cfe-commits.
This patch simply adds a const qualifier to the member function Decl::isLocalExternDecl(). https://reviews.llvm.org/D28457 Files: include/clang/AST/DeclBase.h Index: include/clang/AST/DeclBase.h =================================================================== --- include/clang/AST/DeclBase.h +++ include/clang/AST/DeclBase.h @@ -949,7 +949,7 @@ /// \brief Determine whether this is a block-scope declaration with linkage. /// This will either be a local variable declaration declared 'extern', or a /// local function declaration. - bool isLocalExternDecl() { + bool isLocalExternDecl() const { return IdentifierNamespace & IDNS_LocalExtern; }
Index: include/clang/AST/DeclBase.h =================================================================== --- include/clang/AST/DeclBase.h +++ include/clang/AST/DeclBase.h @@ -949,7 +949,7 @@ /// \brief Determine whether this is a block-scope declaration with linkage. /// This will either be a local variable declaration declared 'extern', or a /// local function declaration. - bool isLocalExternDecl() { + bool isLocalExternDecl() const { return IdentifierNamespace & IDNS_LocalExtern; }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits