From 2e3031ce9d2802fe98b5cea1952722b5f50474e4 Mon Sep 17 00:00:00 2001 From: Fabian Reister <fabian.reister@kit.edu> Date: Tue, 26 Jul 2022 17:26:38 +0200 Subject: [PATCH] removing custom clang tidy/format files --- .clang-format | 150 -------------------------------------------------- .clang-tidy | 97 -------------------------------- .clangd | 9 --- 3 files changed, 256 deletions(-) delete mode 100644 .clang-format delete mode 100644 .clang-tidy delete mode 100644 .clangd diff --git a/.clang-format b/.clang-format deleted file mode 100644 index b6d7961b..00000000 --- a/.clang-format +++ /dev/null @@ -1,150 +0,0 @@ -Language: Cpp -Standard: c++20 - -BasedOnStyle: llvm - -PointerAlignment: Left - -AccessModifierOffset: -4 -# BreakConstructorInitializers: BeforeComma -# BreakBeforeParameter: EndsInComma -#ExperimentalAutoDetectBinPacking: true -ExperimentalAutoDetectBinPacking: true -Cpp11BracedListStyle: true - -NamespaceIndentation: All - -CommentPragmas: "^ q:" - -ReflowComments: false - -ColumnLimit: 100 -SortIncludes: true - -#BreakBeforeBraces: GNU -BreakBeforeBraces: Allman -AllowShortIfStatementsOnASingleLine: false -IndentCaseLabels: true - -MaxEmptyLinesToKeep: 2 - -#BraceWrapping: -# BeforeWhile: true - -# AlignConsecutiveAssignments: Consecutive - -BinPackArguments: false -BinPackParameters: false - -AllowAllParametersOfDeclarationOnNextLine: false - -AllowAllConstructorInitializersOnNextLine: true -BreakConstructorInitializers: AfterColon -ConstructorInitializerAllOnOneLineOrOnePerLine: true - -BreakInheritanceList: AfterColon - -# ReturnTypeBreakingStyle: All -# ReturnTypeBreakingStyle: AllDefinitions -# BreakTemplateDeclarationsStyle: Yes - -# breaks return type -AlwaysBreakAfterDefinitionReturnType: All - -AllowShortBlocksOnASingleLine: false -AllowShortCaseLabelsOnASingleLine: false -AllowShortFunctionsOnASingleLine: false -AllowShortLoopsOnASingleLine: false - -AlwaysBreakTemplateDeclarations: true - -BreakBeforeTernaryOperators: true - -#ContinuationIndentWidth: 8 -IndentWidth: 4 -#TabWidth: 4 -UseTab: "Never" - -AllowAllArgumentsOnNextLine: true - -FixNamespaceComments: true -AlignAfterOpenBracket: Align - -IncludeBlocks: Regroup - -IncludeCategories: - - - - Regex: "<[[:alnum:,_].]+>" - Priority: 30 - - Regex: "<[[:alnum:,_].]+>" - Priority: 30 - - Regex: "<[[:alnum:].]+>" - Priority: 30 - - Regex: "<[:alnum:]+>" - Priority: 30 - - Regex: "^(<unordered_map>)" - Priority: 30 - - Regex: "^(<type_traits>)" - Priority: 30 - - Regex: "^(<range/)" - Priority: 40 - - Regex: "^(<ceres/)" - Priority: 45 - - Regex: "^(<boost/)" - Priority: 50 - - Regex: "^(<Eigen/)" - Priority: 60 - - Regex: "^(<pcl/)" - Priority: 70 - - Regex: "^(<opencv2/)" - Priority: 80 - - Regex: "^(<cartographer/)" - Priority: 81 - - Regex: "<wykobi.hpp>" - Priority: 85 - - Regex: "^(<IceUtil/)" - Priority: 90 - - Regex: "^(<Ice/)" - Priority: 91 - - Regex: "^(<VirtualRobot/)" - Priority: 100 - - Regex: "^(<SimoxUtility/)" - Priority: 100 - - Regex: '^((<|")ArmarXCore/)' - Priority: 200 - - Regex: '^((<|")ArmarXGui/)' - Priority: 210 - - Regex: '^((<|")RobotAPI/)' - Priority: 220 - - Regex: '^((<|")VisionX/)' - Priority: 230 - - Regex: '^((<|")RobotComponents/)' - Priority: 240 - - Regex: '^((<|")ArmarXSimulation/)' - Priority: 250 - - Regex: '^((<|")RobotSkillTemplates/)' - Priority: 260 - - Regex: '^((<|")armar6_rt/)' - Priority: 270 - - Regex: '^((<|")Armar6Skills/)' - Priority: 280 - - Regex: '^((<|")armar6_rt/)' - Priority: 290 - - Regex: '^((<|")MobileManipulation/)' - Priority: 300 - - Regex: '^((<|")ROBDEKON/)' - Priority: 310 - # - Regex: '^"(llvm|llvm-c|clang|clang-c)/' - # Priority: 2 - # SortPriority: 2 - # CaseSensitive: true - # - Regex: '^(<|"(gtest|gmock|isl|json)/)' - # Priority: 3 - # # - Regex: '^(<|"(Eigen)/)' - # # Priority: 3 - # - Regex: '^<VirtualRobot/' - # Priority: 4 - # - Regex: '.*' - # Priority: 1 - # SortPriority: 0 diff --git a/.clang-tidy b/.clang-tidy deleted file mode 100644 index 2a651563..00000000 --- a/.clang-tidy +++ /dev/null @@ -1,97 +0,0 @@ -# based on https://github.com/frankaemika/libfranka/blob/master/.clang-tidy -User: fabian.reister -Checks: ' - clang-diagnostic-*, - clang-analyzer-*, - -clang-analyzer-alpha*, - google-*, - -google-explicit-constructor, - -google-runtime-references, - -google-default-arguments, - misc-*, - -misc-throw-by-value-catch-by-reference, - -misc-non-private-member-variables-in-classes, - readability-*, - -readability-redundant-string-init, - modernize-*, - -modernize-use-trailing-return-type, - -modernize-use-nodiscard, - -modernize-pass-by-value, - performance-*, - cppcoreguidelines-*, - -cppcoreguidelines-pro-type-reinterpret-cast, - -cppcoreguidelines-pro-bounds-pointer-arithmetic, - -cppcoreguidelines-pro-bounds-constant-array-index, - -cppcoreguidelines-pro-type-union-access, - -cppcoreguidelines-pro-bounds-array-to-pointer-decay, - -cppcoreguidelines-pro-type-member-init, - -cppcoreguidelines-special-member-functions, - -cppcoreguidelines-owning-memory, - -cppcoreguidelines-narrowing-conversions -' -HeaderFilterRegex: '^.*(source|include).*$' -CheckOptions: - - key: readability-identifier-naming.NamespaceCase - value: lower_case - - key: readability-identifier-naming.ClassCase - value: CamelCase - - key: readability-identifier-naming.StructCase - value: CamelCase - - key: readability-identifier-naming.EnumCase - value: CamelCase - - key: readability-identifier-naming.UnionCase - value: CamelCase - - key: readability-identifier-naming.TypedefCase - value: CamelCase - - key: readability-identifier-naming.ParameterCase - value: camelBack - - key: readability-identifier-naming.VariableCase - value: camelBack - - key: readability-identifier-naming.MemberCase - value: camelBack - - key: readability-identifier-naming.PublicMemberCase - value: camelBack - - key: readability-identifier-naming.ProtectedMemberCase - value: camelBack - - key: readability-identifier-naming.PrivateMemberCase - value: camelBack - - key: readability-identifier-naming.PrivateMemberSuffix - value: '' - - key: readability-identifier-naming.FunctionCase - value: camelBack - - key: readability-identifier-naming.MethodCase - value: camelBack - - key: readability-identifier-naming.ConstantPrefix - value: '' - - key: readability-identifier-naming.ConstantCase - value: CamelCase - - key: readability-identifier-naming.ConstantMemberPrefix - value: '' - - key: readability-identifier-naming.ConstantMemberCase - value: camelBack - - key: readability-identifier-naming.ConstantParameterPrefix - value: '' - - key: readability-identifier-naming.ConstantParameterCase - value: camelBack - - key: readability-identifier-naming.LocalConstantParameterPrefix - value: '' - - key: readability-identifier-naming.LocalConstantCase - value: camelBack - - key: readability-identifier-naming.ConstexprVariablePrefix - value: '' - - key: readability-identifier-naming.ConstexprVariableCase - value: camelBack - - key: readabiltiy-identifier-naming.EnumConstantCase - value: CamelCase - - key: readabiltiy-identifier-naming.EnumConstantPrefix - value: '' - - key: readabiltiy-identifier-naming.EnumConstantSuffix - value: '' - - key: readabiltiy-identifier-naming.ClassMemberIgnoredRegexp - value: '*\_T\_*' - - key: readability-identifier-naming.ClassConstantCase - value: UPPER_CASE - - key: readability-identifier-naming.LocalVariableIgnoredRegexp - value: '^.*_[T,R,V]_.*$' - - key: readability-identifier-naming.LocalConstantIgnoredRegexp - value: '^.*_[T,R,V]_.*$' diff --git a/.clangd b/.clangd deleted file mode 100644 index 9fcc2ee7..00000000 --- a/.clangd +++ /dev/null @@ -1,9 +0,0 @@ -CompileFlags: # Tweak the parse settings - Add: [-xc++, -Wall] # treat all files as C++, enable more warnings - Remove: -fconcepts # strip all other warning-related flags -Diagnostics: - ClangTidy: - Remove: cppcoreguidelines-special-member-functions -#HeaderInsertion: -# Match: <Eigen/src/Geometry/.*> -# Use: <Eigen/Geometry> -- GitLab