]> granicus.if.org Git - clang/commitdiff
[Basic] Add const qualifier to SM.isInSystemMacro (NFC)
authorVedant Kumar <vsk@apple.com>
Fri, 12 Aug 2016 00:20:39 +0000 (00:20 +0000)
committerVedant Kumar <vsk@apple.com>
Fri, 12 Aug 2016 00:20:39 +0000 (00:20 +0000)
The member function is a predicate, and doesn't apply any changes on the
object.

Patch by Visoiu Mistrih Francis!

Differential Revision: https://reviews.llvm.org/D23433

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

include/clang/Basic/SourceManager.h

index e00c99e4adeb26f195e88f20f1be4e84f72654fe..6610c56b15d53fa58f3f7d5f659aca4d3a2a1325 100644 (file)
@@ -1357,7 +1357,7 @@ public:
   }
 
   /// \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));
   }