[clang-tools-extra] [clang-tidy] Add StrictMode to cppcoreguidelines-pro-type-static-cast-downcast (PR #69529)
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 25 22:25:53 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`.
----------------
PiotrZSL wrote:
StrictMode=true, result in more warnings being produced (this is current behavior).
StickMode=false, will cause casts on non-polymorphic types to be ignored.
https://github.com/llvm/llvm-project/pull/69529
More information about the cfe-commits
mailing list