[clang] [clang] Improve diagnostic on [[nodiscard]] attribute (PR #112521)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 16 11:33:22 PDT 2024


================
@@ -3182,11 +3182,12 @@ class CallExpr : public Expr {
 
   /// Returns the WarnUnusedResultAttr that is either declared on the called
   /// function, or its return type declaration.
----------------
Sirraide wrote:

The comment should be expanded to also explain what the `NamedDecl*` in the pair is supposed to be

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


More information about the cfe-commits mailing list