mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02: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:
Notes:
sideshowbarker
2024-07-17 23:00:20 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/4dbda2d5b45 Pull-request: https://github.com/SerenityOS/serenity/pull/11203
@@ -41,6 +41,8 @@ WarningsAsErrors: ''
|
|||||||
HeaderFilterRegex: 'AK|Userland|Kernel|Tests'
|
HeaderFilterRegex: 'AK|Userland|Kernel|Tests'
|
||||||
FormatStyle: none
|
FormatStyle: none
|
||||||
CheckOptions:
|
CheckOptions:
|
||||||
|
- key: bugprone-dangling-handle.HandleClasses
|
||||||
|
value: 'AK::StringView;AK::Span'
|
||||||
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
|
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
|
||||||
value: true
|
value: true
|
||||||
- key: readability-implicit-bool-conversion.AllowPointerConditions
|
- key: readability-implicit-bool-conversion.AllowPointerConditions
|
||||||
|
|||||||
Reference in New Issue
Block a user