[PATCH] D59485: [ASTImporter] Add an ImportImpl method to allow customizing Import behavior.

Raphael Isemann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 27 02:30:14 PDT 2019


teemperor updated this revision to Diff 196955.
teemperor retitled this revision from "[ASTImporter] Add an ImportInternal method to allow customizing Import behavior." to "[ASTImporter] Add an ImportImpl method to allow customizing Import behavior.".
teemperor edited the summary of this revision.
teemperor added a comment.

- Added `RegisterImportedDecl` call as suggested in D59537 <https://reviews.llvm.org/D59537>
- Added an assert that checks that we register any decl that an overwritten ImportInternal would create.
- Fixed the tests that they no longer trigger that new assert.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59485/new/

https://reviews.llvm.org/D59485

Files:
  clang/include/clang/AST/ASTImporter.h
  clang/lib/AST/ASTImporter.cpp
  clang/unittests/AST/ASTImporterTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59485.196955.patch
Type: text/x-patch
Size: 9780 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190427/3e2ba0e3/attachment-0001.bin>


More information about the cfe-commits mailing list