[clang] [clang] Fix crash when @param is attached to invalid nodes (PR #183274)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 10 07:58:14 PDT 2026


================
@@ -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.
----------------
shafik wrote:

If the comment points out something that is apparent then we don't need it.

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


More information about the cfe-commits mailing list