[PATCH] D28457: Add missing const qualifier to member function Decl::isLocalExternDecl()

Firat Kasmis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 8 07:24:12 PST 2017


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;
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28457.83559.patch
Type: text/x-patch
Size: 510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170108/c9f263a3/attachment.bin>


More information about the cfe-commits mailing list