[clang-tools-extra] [clang-tidy] introduce a unused local non trival variable check (PR #76101)

Tyler Rockwood via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 22 07:19:11 PST 2023


================
@@ -0,0 +1,29 @@
+.. title:: clang-tidy - bugprone-unused-local-non-trivial-variable
+
+bugprone-unused-local-non-trivial-variable
+==========================================
+
+Warns when a local non trivial variable is unused within a function.
+
+In the following example, `future2` would generate a warning that it is unused.
+
+.. code-block:: c++
+
----------------
rockwotj wrote:

Took a shot at this. PTAL.

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


More information about the cfe-commits mailing list