[clang] [clang] Diagnose [[nodiscard]] return types in Objective-C++ (PR #142541)

Nikita Popov via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 28 08:33:32 PDT 2025


================
@@ -16,6 +16,7 @@
 #include "clang/AST/APNumericStorage.h"
 #include "clang/AST/APValue.h"
 #include "clang/AST/ASTVector.h"
+#include "clang/AST/Attr.h"
----------------
nikic wrote:

Can you forward-declare WarnUnusedResultAttr instead?

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


More information about the cfe-commits mailing list