balazske added a comment. It is possible to use the `Preprocessor` instead of `ASTUnit` in `getImportedFromSourceLocation`. But this will contain less useful (even if currently not used) information. The test extension in D65064 <https://reviews.llvm.org/D65064> is not possible to do if not `ASTUnit` is used. (Or a tuple must be used that contains `Preprocessor` and `TranslationUnitDecl` and maybe other objects that are stored in the `ASTUnit`.)
Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D64638/new/ https://reviews.llvm.org/D64638 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits