[clang][ASTImporter] Generic attribute import handling (first step).
authorBalázs Kéri <1.int32@gmail.com>
Wed, 22 Sep 2021 07:15:29 +0000 (09:15 +0200)
committerBalázs Kéri <1.int32@gmail.com>
Wed, 22 Sep 2021 08:14:03 +0000 (10:14 +0200)
commit7ce638538bcf323cd15ed5dfbc43013312b0e3e3
treefc38c68daec2eca3caf7e2847b7e4f58dfa78800
parente08a5dc86f1ff868a61e74bfea413889a3d5915f
[clang][ASTImporter] Generic attribute import handling (first step).

Import of Attr objects was incomplete in ASTImporter.
This change introduces support for a generic way of importing an attribute.
For an usage example import of the attribute AssertCapability is
added to ASTImporter.
Updating the old attribute import code and adding new attributes or extending
the generic functions (if needed) is future work.

Reviewed By: steakhal, martong

Differential Revision: https://reviews.llvm.org/D109608
clang/lib/AST/ASTImporter.cpp
clang/unittests/AST/ASTImporterTest.cpp