================
@@ -179,103 +179,38 @@ static SourceLocation getDeclLocForCommentSearch(const 
Decl *D,
       isa<ClassTemplateSpecializationDecl>(D) ||
       // Allow association with Y across {} in `typedef struct X {} Y`.
       isa<TypedefDecl>(D))
-    return D->getBeginLoc();
+    return {D->getBeginLoc()};
----------------
daniel-grumberg wrote:

Yeah that is definitely neater, went for something along those lines in the 
updated patch.

https://github.com/llvm/llvm-project/pull/65481
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to