HomePhabricator

[AST] Update matchers to be traverse-aware

Authored by stephenkelly on Nov 5 2020, 10:42 AM.

Description

[AST] Update matchers to be traverse-aware

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.

Differential Revision: https://reviews.llvm.org/D90984

Details

Committed
stephenkellyNov 17 2020, 8:31 AM
Differential Revision
D90984: Update matchers to be traverse-aware
Parents
rG246b428fb3b5: [AST] Ignore implicit nodes in IgnoreUnlessSpelledInSource mode
Branches
Unknown
Tags
Unknown