HomePhabricator

[ASTImporter] Add support for importing ChooseExpr AST nodes.

Description

[ASTImporter] Add support for importing ChooseExpr AST nodes.

Summary:
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.

Reviewers: shafik, a_sidorin, martong, aaron.ballman

Subscribers: aaron.ballman, rnkovacs, jdoerfert, cfe-commits

Tags: #clang

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

Details

Committed
tmroederFeb 25 2019, 3:24 PM
Differential Revision
D58292: Add support for importing ChooseExpr AST nodes.
Parents
rC354831: [NFC] Reorder some mis-ordered tests
Branches
Unknown
Tags
Unknown

Event Timeline

This comment was removed by martong.

Please ignore my previous comment, I didn't recognize that the fact of the revert was indeed commented at the patch, it is my bad.