[clang] [APINotes] Diagnose invalid Where.Parameters selectors (PR #209408)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 20 07:30:30 PDT 2026
================
@@ -833,6 +835,16 @@ class APINotesReader::Implementation {
/// optional if the string is unknown.
std::optional<IdentifierID> getIdentifier(llvm::StringRef Str);
+ /// Retrieve the identifier string for the given ID, or an empty optional if
+ /// the ID is unknown.
+ std::optional<llvm::StringRef> getIdentifierString(IdentifierID ID);
----------------
Xazax-hun wrote:
I wonder if we should add a comment about this having linear complexity. People might not expect that.
https://github.com/llvm/llvm-project/pull/209408
More information about the cfe-commits
mailing list