From: Vedant Kumar Date: Fri, 12 Aug 2016 00:20:39 +0000 (+0000) Subject: [Basic] Add const qualifier to SM.isInSystemMacro (NFC) X-Git-Tag: llvmorg-4.0.0-rc1~12661 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=100cd2bbbc712b3963f5c9eec36b5bb32b63ecb7;p=platform%2Fupstream%2Fllvm.git [Basic] Add const qualifier to SM.isInSystemMacro (NFC) 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 --- diff --git a/clang/include/clang/Basic/SourceManager.h b/clang/include/clang/Basic/SourceManager.h index e00c99e..6610c56 100644 --- a/clang/include/clang/Basic/SourceManager.h +++ b/clang/include/clang/Basic/SourceManager.h @@ -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)); }