projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
562e829
)
[Basic] Add const qualifier to SM.isInSystemMacro (NFC)
author
Vedant Kumar
<vsk@apple.com>
Fri, 12 Aug 2016 00:20:39 +0000
(
00:20
+0000)
committer
Vedant 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
patch
|
blob
|
history
diff --git
a/clang/include/clang/Basic/SourceManager.h
b/clang/include/clang/Basic/SourceManager.h
index
e00c99e
..
6610c56
100644
(file)
--- 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));
}