[PATCH] D123685: [clang][ASTImporter] Add isNewDecl
Balázs Benics via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 19 01:08:05 PDT 2022
steakhal added inline comments.
================
Comment at: clang/include/clang/AST/ASTImporterSharedState.h:69-75
llvm::Optional<ImportError> getImportDeclErrorIfAny(Decl *ToD) const {
auto Pos = ImportErrors.find(ToD);
if (Pos != ImportErrors.end())
return Pos->second;
else
return Optional<ImportError>();
}
----------------
Why does this API accept only non-const pointers?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123685/new/
https://reviews.llvm.org/D123685
More information about the cfe-commits
mailing list