[PATCH] D38708: [AST] Flag the typo-corrected nodes for better tooling
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 9 15:32:34 PDT 2017
arphaman created this revision.
This patch adds a new boolean field to the `DeclRefExpr`, `MemberExpr`, `CXXCtorInitializer`, `ObjCIvarRefExpr`, `ObjCPropertyRefExpr` nodes which is set to true when these nodes have been produced during typo-correction.
This is useful for Clang-based tooling as it can distinguish between true references and the typo-corrected references. The initial tooling support uses the flag to prevent token annotation for typo-corrected references and to prevent finding typo-corrected references during single TU reference search.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 40119 bytes
Desc: not available
More information about the cfe-commits