[PATCH] D23433: [Basic] Add missing `const` qualifier (NFC)

Visoiu Mistrih Francis via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 11 15:47:02 PDT 2016


thegameg created this revision.
thegameg added reviewers: joker-eph, vsk, dblaikie.
thegameg added a subscriber: cfe-commits.

The member function is a predicate, and doesn't apply any changes on the object.

https://reviews.llvm.org/D23433

Files:
  include/clang/Basic/SourceManager.h

Index: include/clang/Basic/SourceManager.h
===================================================================
--- include/clang/Basic/SourceManager.h
+++ include/clang/Basic/SourceManager.h
@@ -1357,7 +1357,7 @@
   }
 
   /// \brief Returns whether \p Loc is expanded from a macro in a system header.
-  bool isInSystemMacro(SourceLocation loc) {
+  bool isInSystemMacro(SourceLocation loc) const {
     return loc.isMacroID() && isInSystemHeader(getSpellingLoc(loc));
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23433.67737.patch
Type: text/x-patch
Size: 477 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160811/afdec9d7/attachment.bin>


More information about the cfe-commits mailing list