================
@@ -6,6 +6,19 @@ bugprone-throwing-static-initialization
 Finds all ``static`` or ``thread_local`` variable declarations where the
 initializer for the object may throw an exception.
 
+Options
+-------
+
+.. option:: IgnoredTypes
+
+This option makes it possible to ignore specific types used at variable
+declarations. It may contain a semicolon-separated list of regular expressions.
+Declarations with a type that is matched by this list are excluded from
+producing warnings by the check. The entries of the list are matched as
+substrings of the type name.
+
+This option contains by default an empty string.
----------------
vbvictor wrote:

Can we add example with `^String$` then:
```
``[Rr]ef(erence)?$`` matches every type with suffix ``Ref``, ``ref``,
  ``Reference`` and ``reference``. ``^Reference$`` matches exactly `Reference` 
type.
```
I had an impression that by saying "Regular expressions are accepted" we imply 
that we parse values as regexes.


https://github.com/llvm/llvm-project/pull/192031
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to