From 100cd2bbbc712b3963f5c9eec36b5bb32b63ecb7 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Fri, 12 Aug 2016 00:20:39 +0000 Subject: [PATCH] [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 --- clang/include/clang/Basic/SourceManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.7.4