[llvm] [llvm] Add LLVM_CTOR_NODISCARD (PR #65418)

Jon Roelofs via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 5 15:36:26 PDT 2023


================
@@ -307,6 +307,16 @@
 #define LLVM_GSL_POINTER
 #endif
 
+#if LLVM_HAS_CPP_ATTRIBUTE(gnu::visibility)
+#if __has_cpp_attribute(nodiscard) >= 201907L
----------------
jroelofs wrote:

```suggestion
#if LLVM_HAS_CPP_ATTRIBUTE(nodiscard) >= 201907L
```

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


More information about the llvm-commits mailing list