From 7f8ac69dfe12b87f7145a3bda57aeff4f86251f1 Mon Sep 17 00:00:00 2001 From: Kenji Miyake Date: Mon, 29 Aug 2022 19:35:19 +0900 Subject: [PATCH] chore(.clang-tidy): apply yamllint Signed-off-by: Kenji Miyake --- .clang-tidy | 43 +++++++++++++++++++++---------------------- .yamllint.yaml | 1 - 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 4c9cefe6626..92c0548cba2 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,4 +1,3 @@ ---- Checks: " -*, boost-use-to-string, @@ -200,7 +199,7 @@ WarningsAsErrors: " readability-misplaced-array-index, readability-string-compare" -HeaderFilterRegex: "^(?!\/usr)(?!\/opt)" +HeaderFilterRegex: ^(?!\/usr)(?!\/opt) AnalyzeTemporaryDtors: false @@ -230,7 +229,7 @@ CheckOptions: - key: bugprone-assert-side-effect.CheckFunctionCalls value: "0" - key: bugprone-dangling-handle.HandleClasses - value: "std::basic_string_view;std::experimental::basic_string_view" + value: std::basic_string_view;std::experimental::basic_string_view - key: bugprone-dynamic-static-initializers.HeaderFileExtensions value: ",h,hh,hpp,hxx" - key: bugprone-exception-escape.FunctionsThatShouldNotThrow @@ -274,25 +273,25 @@ CheckOptions: - key: bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField value: "1" - key: bugprone-unused-return-value.CheckedFunctions - value: "::std::async;::std::launder;::std::remove;::std::remove_if;::std::unique;::std::unique_ptr::release;::std::basic_string::empty;::std::vector::empty" + value: ::std::async;::std::launder;::std::remove;::std::remove_if;::std::unique;::std::unique_ptr::release;::std::basic_string::empty;::std::vector::empty - key: cert-dcl16-c.NewSuffixes - value: "L;LL;LU;LLU" + value: L;LL;LU;LLU - key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField value: "0" - key: cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors value: "1" - key: cppcoreguidelines-macro-usage.AllowedRegexp - value: "^DEBUG_*" + value: ^DEBUG_* - key: cppcoreguidelines-macro-usage.CheckCapsOnly value: "0" - key: cppcoreguidelines-macro-usage.IgnoreCommandLineMacros value: "1" - key: cppcoreguidelines-no-malloc.Allocations - value: "::malloc;::calloc" + value: ::malloc;::calloc - key: cppcoreguidelines-no-malloc.Deallocations - value: "::free" + value: ::free - key: cppcoreguidelines-no-malloc.Reallocations - value: "::realloc" + value: ::realloc - key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic value: "1" - key: cppcoreguidelines-pro-type-member-init.IgnoreArrays @@ -332,17 +331,17 @@ CheckOptions: - key: modernize-make-shared.IgnoreMacros value: "1" - key: modernize-make-shared.IncludeStyle - value: "google" + value: google - key: modernize-make-shared.MakeSmartPtrFunction - value: "std::make_shared" + value: std::make_shared - key: modernize-make-shared.MakeSmartPtrFunctionHeader value: memory - key: modernize-make-unique.IgnoreMacros value: "1" - key: modernize-make-unique.IncludeStyle - value: "google" + value: google - key: modernize-make-unique.MakeSmartPtrFunction - value: "std::make_unique" + value: std::make_unique - key: modernize-make-unique.MakeSmartPtrFunctionHeader value: memory - key: modernize-pass-by-value.IncludeStyle @@ -364,13 +363,13 @@ CheckOptions: - key: modernize-use-default-member-init.UseAssignment value: "0" - key: modernize-use-emplace.ContainersWithPushBack - value: "::std::vector;::std::list;::std::deque" + value: ::std::vector;::std::list;::std::deque - key: modernize-use-emplace.SmartPointers - value: "::std::shared_ptr;::std::unique_ptr;::std::auto_ptr;::std::weak_ptr" + value: ::std::shared_ptr;::std::unique_ptr;::std::auto_ptr;::std::weak_ptr - key: modernize-use-emplace.TupleMakeFunctions - value: "::std::make_pair;::std::make_tuple" + value: ::std::make_pair;::std::make_tuple - key: modernize-use-emplace.TupleTypes - value: "::std::pair;::std::tuple" + value: ::std::pair;::std::tuple - key: modernize-use-equals-default.IgnoreMacros value: "1" - key: modernize-use-equals-delete.IgnoreMacros @@ -396,7 +395,7 @@ CheckOptions: - key: modernize-use-using.IgnoreMacros value: "1" - key: performance-faster-string-find.StringLikeClasses - value: "std::basic_string" + value: std::basic_string - key: performance-for-range-copy.AllowedTypes value: "" - key: performance-for-range-copy.WarnOnAllAutoCopies @@ -406,7 +405,7 @@ CheckOptions: - key: performance-inefficient-vector-operation.EnableProto value: "0" - key: performance-inefficient-vector-operation.VectorLikeClasses - value: "::std::vector" + value: ::std::vector - key: performance-move-const-arg.CheckTriviallyCopyableMove value: "1" - key: performance-move-constructor-init.IncludeStyle @@ -418,7 +417,7 @@ CheckOptions: - key: performance-unnecessary-copy-initialization.AllowedTypes value: "" - key: performance-unnecessary-value-param.AllowedTypes - value: ".*Ptr;.*SharedFuture" + value: .*Ptr;.*SharedFuture - key: performance-unnecessary-value-param.IncludeStyle value: google - key: portability-simd-intrinsics.Std @@ -450,8 +449,8 @@ CheckOptions: - key: readability-redundant-smartptr-get.IgnoreMacros value: "1" - key: readability-redundant-string-init.StringNames - value: "::std::basic_string" + value: ::std::basic_string - key: readability-simplify-subscript-expr.Types - value: "::std::basic_string;::std::basic_string_view;::std::vector;::std::array" + value: ::std::basic_string;::std::basic_string_view;::std::vector;::std::array - key: readability-static-accessed-through-instance.NameSpecifierNestingThreshold value: "3" diff --git a/.yamllint.yaml b/.yamllint.yaml index 6228c70f02d..2c7bd088e26 100644 --- a/.yamllint.yaml +++ b/.yamllint.yaml @@ -1,7 +1,6 @@ extends: default ignore: | - .clang-tidy *.param.yaml rules: