mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-06 16:09:30 +00:00
Meta: Enable the "bugprone-dangling-handle" clang-tidy check
This should catch (the trivial cases of) construction of StringViews from temporary Strings and the construction of Spans from temporary Vectors.
This commit is contained in:
parent
197759e30f
commit
4dbda2d5b4
|
@ -41,6 +41,8 @@ WarningsAsErrors: ''
|
|||
HeaderFilterRegex: 'AK|Userland|Kernel|Tests'
|
||||
FormatStyle: none
|
||||
CheckOptions:
|
||||
- key: bugprone-dangling-handle.HandleClasses
|
||||
value: 'AK::StringView;AK::Span'
|
||||
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
|
||||
value: true
|
||||
- key: readability-implicit-bool-conversion.AllowPointerConditions
|
||||
|
|
Loading…
Reference in a new issue