[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...
Name: D37005.112137.patch
Type: text/x-patch
Size: 4898 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170822/f1ddbf49/attachment.bin>

More information about the cfe-commits mailing list