[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

llvm-svn: 278444

clang/include/clang/Basic/SourceManager.h

index e00c99e..6610c56 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));
   }