[clang] [Clang] warn on discarded [[nodiscard]] function results after casting in C (PR #104677)

Oleksandr T. via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 18 00:51:56 PDT 2024


================
@@ -54,3 +54,9 @@ void test_missiles(void) {
   launch_missiles();
 }
 
+[[nodiscard]] int f3();
+
+void f4() {
----------------
a-tarasyuk wrote:

@cor3ntin I've updated the test. Thanks for the review.

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


More information about the cfe-commits mailing list