================
@@ -202,6 +202,11 @@ const char *RawComment::extractBriefText(const ASTContext 
&Context) const {
 comments::FullComment *RawComment::parse(const ASTContext &Context,
                                          const Preprocessor *PP,
                                          const Decl *D) const {
+  // If the associated declaration is invalid, do not proceed with semantic
+  // analysis.
----------------
ojhunt wrote:

@TPPPP72 I think just remove this comment - it's fairly self explanatory, I 
think the condition should also just be `if (D->isInvalidDecl())` as D is 
non-null here

https://github.com/llvm/llvm-project/pull/183274
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to