[PATCH] D53940: [Lex] Make MacroDirective::findDirectiveAtLoc take const SourceManager
Umann Kristóf via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 31 10:21:36 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL345741: [Lex] Make MacroDirective::findDirectiveAtLoc take const SourceManager (authored by Szelethus, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D53940?vs=171953&id=171956#toc
Repository:
rL LLVM
https://reviews.llvm.org/D53940
Files:
cfe/trunk/include/clang/Lex/MacroInfo.h
cfe/trunk/lib/Lex/MacroInfo.cpp
Index: cfe/trunk/include/clang/Lex/MacroInfo.h
===================================================================
--- cfe/trunk/include/clang/Lex/MacroInfo.h
+++ cfe/trunk/include/clang/Lex/MacroInfo.h
@@ -395,7 +395,8 @@
/// Find macro definition active in the specified source location. If
/// this macro was not defined there, return NULL.
- const DefInfo findDirectiveAtLoc(SourceLocation L, SourceManager &SM) const;
+ const DefInfo findDirectiveAtLoc(SourceLocation L,
+ const SourceManager &SM) const;
void dump() const;
Index: cfe/trunk/lib/Lex/MacroInfo.cpp
===================================================================
--- cfe/trunk/lib/Lex/MacroInfo.cpp
+++ cfe/trunk/lib/Lex/MacroInfo.cpp
@@ -200,7 +200,8 @@
}
const MacroDirective::DefInfo
-MacroDirective::findDirectiveAtLoc(SourceLocation L, SourceManager &SM) const {
+MacroDirective::findDirectiveAtLoc(SourceLocation L,
+ const SourceManager &SM) const {
assert(L.isValid() && "SourceLocation is invalid.");
for (DefInfo Def = getDefinition(); Def; Def = Def.getPreviousDefinition()) {
if (Def.getLocation().isInvalid() || // For macros defined on the command line.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53940.171956.patch
Type: text/x-patch
Size: 1242 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181031/dad3cbd8/attachment.bin>
More information about the cfe-commits
mailing list