[PATCH] D90984: Update matchers to be traverse-aware

Stephen Kelly via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 6 15:45:17 PST 2020


steveire created this revision.
steveire added a reviewer: aaron.ballman.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
steveire requested review of this revision.

Don't match Stmt or Decl nodes not spelled in the source when using
TK_IgnoreUnlessSpelledInSource.  This prevents accidental modification
of source code at incorrect locations.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90984

Files:
  clang/include/clang/ASTMatchers/ASTMatchers.h
  clang/include/clang/ASTMatchers/ASTMatchersInternal.h
  clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90984.303575.patch
Type: text/x-patch
Size: 12747 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201106/af0c3b31/attachment-0001.bin>


More information about the cfe-commits mailing list