[clang-tools-extra] [clang-tidy] Skip `decltype(auto)` variables in misc-const-correctness (PR #224465)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 17 18:54:06 PDT 2026


================
@@ -60,6 +60,9 @@ Limitations
 
 The check does not run on `C` code.
 
+Variables declared with ``decltype(auto)`` are not analyzed, because
----------------
zwuis wrote:

You put this in the _Limitations_ section. Did you mean we can handle it theoretically but we don't do it currently?

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


More information about the cfe-commits mailing list