[PATCH] D37005: Add include/clang/Tooling/ASTDiff/ASTPatch.h
Johannes Altmanninger via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 22 02:17:42 PDT 2017
johannes created this revision.
Herald added subscribers: mgorny, klimek.
This adds a functions to remove AST nodes.
It works for Decl, and for Stmt nodes that are children of a
Sometimes it is not possible to remove a Decl from its context
despite DeclContext.containsDecl() returning true. Instead the program
crashes. An example for this is in the tests. So this might be a
bug although it may never occur under normal circumstances.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4898 bytes
Desc: not available
More information about the cfe-commits