[clang-tools-extra] [clang-tidy] Add StrictMode to cppcoreguidelines-pro-type-static-cast-downcast (PR #69529)
Congcong Cai via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 25 18:20:54 PDT 2023
================
@@ -14,3 +14,11 @@ unrelated type ``Z``.
This rule is part of the `Type safety (Type.2)
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-type-downcast>`_
profile from the C++ Core Guidelines.
+
+Options
+-------
+
+.. option:: StrictMode
+
+ When set to `false`, no warnings are emitted for casts on non-polymorphic
+ types. Default is `true`.
----------------
HerrCai0907 wrote:
Why "Default is `true`"? I think Default false will keep the same behavior as old version.
https://github.com/llvm/llvm-project/pull/69529
More information about the cfe-commits
mailing list