Document the null return from the mapping function

This commit is contained in:
David Blaikie
2026-03-23 06:57:14 +00:00
parent 85dd78088f
commit ba6e0080fb
+2 -1
View File
@@ -348,7 +348,8 @@ class CarbonExternalASTSource : public clang::ExternalASTSource {
auto StartTranslationUnit(clang::ASTConsumer* consumer) -> void override;
private:
// Map a Carbon entity to a Clang NamedDecl.
// Map a Carbon entity to a Clang NamedDecl. Returns null if the entity cannot
// currently be represented in C++.
auto MapInstIdToClangDecl(clang::DeclContext& decl_context,
LookupResult lookup) -> clang::NamedDecl*;