[clang] [clang-tools-extra] Associate documentation comments with macro definitions (PR #198452)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Fri May 22 00:27:22 PDT 2026
================
@@ -331,21 +362,37 @@ void ASTContext::addComment(const RawComment &RC) {
Comments.addComment(RC, LangOpts.CommentOpts, BumpAlloc);
}
-const RawComment *ASTContext::getRawCommentForAnyRedecl(
- const Decl *D,
- const Decl **OriginalDecl) const {
- if (!D) {
+const RawComment *
+ASTContext::getRawCommentForAnyRedecl(RawCommentLookupKey Key,
+ const Decl **OriginalDecl) const {
+ if (Key.isNull()) {
if (OriginalDecl)
- OriginalDecl = nullptr;
+ *OriginalDecl = nullptr;
----------------
ojhunt wrote:
Ah, the best \o/
https://github.com/llvm/llvm-project/pull/198452
More information about the cfe-commits
mailing list