[PATCH] D65064: [CrossTU] Add a function to retrieve original source location.

Gabor Marton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 22 02:45:40 PDT 2019


martong added inline comments.


================
Comment at: clang/lib/CrossTU/CrossTranslationUnit.cpp:476
+  NewImporter->setFileIDImportHandler(
+      [this, Unit](FileID ToID, FileID FromID, ASTImporter &Importer) {
+        assert(ImportedFileIDs.find(ToID) == ImportedFileIDs.end() &&
----------------
The `Importer` is not used, perhaps it is not needed in the lambda?

Or we might have the mapping of ToID->FromID in the ASTImporter, and the FromID->FromUnit mapping in the CTUContext?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D65064





More information about the cfe-commits mailing list