ymandel added a comment.
Aaron -- I missed your comments before submitting. I'll send a follow up with
fixes. Thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73965/new/
https://reviews.llvm.org/D73965
_
aaron.ballman added inline comments.
Comment at: clang/include/clang/ASTMatchers/ASTMatchers.h:313-317
+ auto& Context = Finder->getASTContext();
+ auto B =
+ internal::getExpansionLocOfMacro(MacroName, Node.getBeginLoc(), Context);
+ if (!B) return false;
+ auto E =
---
This revision was automatically updated to reflect the committed changes.
Closed by commit rG386fd2c170a7: [clang] Add matcher to identify macro
expansions. (authored by ymandel).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73965/new/
https://revi
ymandel updated this revision to Diff 242335.
ymandel added a comment.
Fix to get it to link correctly.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73965/new/
https://reviews.llvm.org/D73965
Files:
clang/include/clang/ASTMatchers/ASTMatchers.h
ymandel created this revision.
ymandel added a reviewer: gribozavr.
Herald added a project: clang.
This revision adds a matcher `isExpandedFromMacro` that determines whether a
statement is (transitively) expanded from a given macro.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org