================
@@ -3646,6 +3646,14 @@ def Unavailable : InheritableAttr {
   let MeaningfulToClassTemplateDefinition = 1;
 }
 
+def CanDiscard : InheritableAttr {
+  let Spellings = [CXX11<"clang", "candiscard">,
+                   GCC<"candiscard">];
+  let Subjects = SubjectList<[ObjCMethod, FunctionLike, TypedefName]>;
----------------
erichkeane wrote:

See: https://clang.llvm.org/doxygen/DeclBase_8cpp_source.html#l01188

IF you want to support all of those, we need to see tests for all of those.I 
was trying to help limit work by making this apply to functions ONLY, that way 
we can expand it if/when someone requests it.

https://github.com/llvm/llvm-project/pull/154943
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to