a.sidorin added a comment.
Sorry, two more nits.
================
Comment at: include/clang/AST/ASTImporter.h:137
+ ///
+ /// \returns the equivalent attribute in the "to" context, or NULL if an
+ /// error occurred.
----------------
nullptr
================
Comment at: lib/AST/ASTImporter.cpp:4724
SmallVector<const Attr *, 1> ToAttrs(FromAttrs.size());
- ASTContext &_ToContext = Importer.getToContext();
std::transform(FromAttrs.begin(), FromAttrs.end(), ToAttrs.begin(),
+ [this](const Attr *A) -> const Attr * {
----------------
Could we use ImportArrayChecked instead?
https://reviews.llvm.org/D46115
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits