[clang] [clang] Prioritze decl comments from macro expansion site (PR #65481)

Daniel Grumberg via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 7 02:13:28 PDT 2023


================
@@ -357,30 +292,37 @@ RawComment *ASTContext::getRawCommentForDeclNoCacheImpl(
 }
 
 RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const {
-  const SourceLocation DeclLoc = getDeclLocForCommentSearch(D, SourceMgr);
+  const auto DeclLocs = getDeclLocsForCommentSearch(D, SourceMgr);
----------------
daniel-grumberg wrote:

This isn't a SourceLocation anymore but rather `SmallVector<SourceLocation, 2>`, should I still explicitly put in the type?

https://github.com/llvm/llvm-project/pull/65481


More information about the cfe-commits mailing list