[clang] [clang] Improve diagnostic on [[nodiscard]] attribute (PR #112521)
Yihe Li via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 22 11:26:48 PDT 2024
================
@@ -416,6 +416,9 @@ Improvements to Clang's diagnostics
name was a reserved name, which we improperly allowed to suppress the
diagnostic.
+- Clang now includes the return type of the function or constructor in the warning generated
+ when `[[nodiscard]]` is triggered by its placement on return types instead of function itself.
----------------
Mick235711 wrote:
Sure
https://github.com/llvm/llvm-project/pull/112521
More information about the cfe-commits
mailing list