[clang] [clang] Add the candiscard attribute to suppress nodiscard (PR #154943)
Nikolas Klauser via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 22 08:12:17 PDT 2025
================
@@ -3646,6 +3646,14 @@ def Unavailable : InheritableAttr {
let MeaningfulToClassTemplateDefinition = 1;
}
+def CanDiscard : InheritableAttr {
+ let Spellings = [CXX11<"clang", "candiscard">,
+ GCC<"candiscard">];
----------------
philnik777 wrote:
I don't think so. This should probably be `Clang<"candiscard">` (or whatever the name will be in the end)
https://github.com/llvm/llvm-project/pull/154943
More information about the cfe-commits
mailing list