[clang] [clang] Prioritze decl comments from macro expansion site (PR #65481)
    via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Sep  7 02:11:27 PDT 2023
    
    
  
================
@@ -592,19 +534,22 @@ void ASTContext::attachCommentsToJustParsedDecls(ArrayRef<Decl *> Decls,
 
     D = &adjustDeclToTemplate(*D);
 
-    const SourceLocation DeclLoc = getDeclLocForCommentSearch(D, SourceMgr);
+    const auto DeclLocs = getDeclLocsForCommentSearch(D, SourceMgr);
----------------
cor3ntin wrote:
```suggestion
    const SourceLocation DeclLocs = getDeclLocsForCommentSearch(D, SourceMgr);
```
https://github.com/llvm/llvm-project/pull/65481
    
    
More information about the cfe-commits
mailing list