[clang] Add new flag -Wreturn-mismatch (PR #82872)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 5 06:23:13 PST 2024


================
@@ -0,0 +1,29 @@
+// RUN: %clang_cc1 -Wreturn-type -Wno-return-mismatch -fsyntax-only -verify %s
----------------
AaronBallman wrote:

Because this is the same test code in both files, let's remove this file, add this RUN line to the other file, and rename the other file `return-type-mismatch.h`.

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


More information about the cfe-commits mailing list