summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-08-12 00:20:39 +0000
committerVedant Kumar <vsk@apple.com>2016-08-12 00:20:39 +0000
commit100cd2bbbc712b3963f5c9eec36b5bb32b63ecb7 (patch)
treea7db527abbe5b24a71e32d7d6565fbe74c8d1801
parent562e82945eec22679ae20fdb19b84dcd6959bf90 (diff)
downloadbcm5719-llvm-100cd2bbbc712b3963f5c9eec36b5bb32b63ecb7.tar.gz
bcm5719-llvm-100cd2bbbc712b3963f5c9eec36b5bb32b63ecb7.zip
[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
-rw-r--r--clang/include/clang/Basic/SourceManager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/Basic/SourceManager.h b/clang/include/clang/Basic/SourceManager.h
index e00c99e4ade..6610c56b15d 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));
}
OpenPOWER on IntegriCloud