[PATCH] D58292: Add support for importing ChooseExpr AST nodes.
Tom Roeder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 15 10:43:58 PST 2019
tmroeder created this revision.
Herald added a reviewer: shafik.
Herald added subscribers: cfe-commits, jdoerfert.
Herald added a project: clang.
This allows ASTs to be merged when they contain ChooseExpr (the GNU
__builtin_choose_expr construction). This is needed, for example, for
cross-CTU analysis of C code that makes use of __builtin_choose_expr.
The node is already supported in the AST, but it didn't have a matcher
in ASTMatchers. So, this change adds the matcher and adds support to
ASTImporter.
Repository:
rC Clang
https://reviews.llvm.org/D58292
Files:
include/clang/ASTMatchers/ASTMatchers.h
lib/AST/ASTImporter.cpp
lib/ASTMatchers/ASTMatchersInternal.cpp
test/ASTMerge/choose-expr/Inputs/choose1.c
test/ASTMerge/choose-expr/Inputs/choose2.c
test/ASTMerge/choose-expr/test.c
unittests/AST/ASTImporterTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58292.187044.patch
Type: text/x-patch
Size: 6768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190215/12133370/attachment.bin>
More information about the cfe-commits
mailing list