Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions generator/annotator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,12 @@ static std::string getQualifiedName(clang::NamedDecl *decl)
std::string name;
clang::PrintingPolicy policy(decl->getASTContext().getLangOpts());
// we don't want filelocation:line:column
#if CLANG_VERSION_MAJOR >= 23
policy.AnonymousTagNameStyle =
llvm::to_underlying(clang::PrintingPolicy::AnonymousTagMode::Plain);
#else
policy.AnonymousTagLocations = false;
#endif
llvm::raw_string_ostream stream(name);
decl->printQualifiedName(stream, policy);
return name;
Expand Down