[clang-tools-extra] [clang-tidy] introduce a must use check (PR #76101)

via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 21 07:06:05 PST 2023


================
@@ -0,0 +1,28 @@
+.. title:: clang-tidy - misc-must-use
+
+misc-must-use
+=============
+
+Allows for strictly enforce variables are used for specific classes, even with
+they would not be normally warned using -Wunused-variable due to templates or
+custom destructors.
+
+In the following example, future2 normally would not trigger any unused variable checks,
----------------
EugeneZelenko wrote:

Please highlight `future2` with double back-ticks. Same for other occurrence.

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


More information about the cfe-commits mailing list