diff --git a/src/external/e57/.clang-format b/src/external/e57/.clang-format deleted file mode 100644 index 263a8e797..000000000 --- a/src/external/e57/.clang-format +++ /dev/null @@ -1,108 +0,0 @@ -# libE57Format -# Options are listed here: -# https://clang.llvm.org/docs/ClangFormatStyleOptions.html ---- -AccessModifierOffset: -3 -AlignAfterOpenBracket: Align -AlignConsecutiveAssignments: false -AlignConsecutiveDeclarations: false -AlignEscapedNewlines: Right -AlignOperands: true -AlignTrailingComments: true -AllowAllArgumentsOnNextLine: true -AllowAllConstructorInitializersOnNextLine: true -AllowAllParametersOfDeclarationOnNextLine: true -AllowShortBlocksOnASingleLine: false -AllowShortCaseLabelsOnASingleLine: false -AllowShortFunctionsOnASingleLine: None -AllowShortLambdasOnASingleLine: All -AllowShortIfStatementsOnASingleLine: Never -AllowShortLoopsOnASingleLine: false -AlwaysBreakAfterDefinitionReturnType: None -AlwaysBreakAfterReturnType: None -AlwaysBreakBeforeMultilineStrings: false -AlwaysBreakTemplateDeclarations: MultiLine -BinPackArguments: true -BinPackParameters: true -BraceWrapping: - AfterCaseLabel: true - AfterClass: true - AfterControlStatement: true - AfterEnum: true - AfterFunction: true - AfterNamespace: true - AfterStruct: true - AfterUnion: true - AfterExternBlock: true - BeforeCatch: true - BeforeElse: true - IndentBraces: false - SplitEmptyFunction: true - SplitEmptyRecord: true - SplitEmptyNamespace: true -BreakBeforeBinaryOperators: None -BreakBeforeBraces: Custom -BreakBeforeInheritanceComma: false -BreakInheritanceList: BeforeColon -BreakBeforeTernaryOperators: true -BreakConstructorInitializersBeforeComma: false -BreakConstructorInitializers: AfterColon -BreakStringLiterals: true -ColumnLimit: 120 -CommentPragmas: '^ IWYU pragma:' -CompactNamespaces: false -ConstructorInitializerAllOnOneLineOrOnePerLine: false -ConstructorInitializerIndentWidth: 3 -ContinuationIndentWidth: 3 -Cpp11BracedListStyle: false -DerivePointerAlignment: false -FixNamespaceComments: false -IncludeBlocks: Preserve -IncludeCategories: - - Regex: '^"(llvm|llvm-c|clang|clang-c)/' - Priority: 2 - - Regex: '^(<|"(gtest|gmock|isl|json)/)' - Priority: 3 - - Regex: '.*' - Priority: 1 -IncludeIsMainRegex: '(Test)?$' -IndentCaseLabels: true -IndentPPDirectives: None -IndentWidth: 3 -IndentWrappedFunctionNames: true -KeepEmptyLinesAtTheStartOfBlocks: true -Language: Cpp -MaxEmptyLinesToKeep: 1 -NamespaceIndentation: All -PenaltyBreakAssignment: 2 -PenaltyBreakBeforeFirstCallParameter: 19 -PenaltyBreakComment: 300 -PenaltyBreakFirstLessLess: 120 -PenaltyBreakString: 1000 -PenaltyBreakTemplateDeclaration: 10 -PenaltyExcessCharacter: 1000000 -PenaltyReturnTypeOnItsOwnLine: 1000 -PointerAlignment: Right -ReflowComments: true -SortIncludes: true -SortUsingDeclarations: true -SpaceAfterCStyleCast: false -SpaceAfterLogicalNot: false -SpaceAfterTemplateKeyword: true -SpaceBeforeAssignmentOperators: true -SpaceBeforeCpp11BracedList: false -SpaceBeforeCtorInitializerColon: true -SpaceBeforeInheritanceColon: true -SpaceBeforeParens: ControlStatements -SpaceBeforeRangeBasedForLoopColon: true -SpaceInEmptyParentheses: false -SpacesBeforeTrailingComments: 1 -SpacesInAngles: false -SpacesInContainerLiterals: true -SpacesInCStyleCastParentheses: false -SpacesInParentheses: true -SpacesInSquareBrackets: false -Standard: Cpp11 -TabWidth: 3 -UseTab: Never -... diff --git a/src/external/e57/.clang-format-ignore b/src/external/e57/.clang-format-ignore deleted file mode 100644 index da7f5bcd6..000000000 --- a/src/external/e57/.clang-format-ignore +++ /dev/null @@ -1 +0,0 @@ -extern/* diff --git a/src/external/e57/CMakeLists.txt b/src/external/e57/CMakeLists.txt index 4787dc6b1..0315a57fc 100644 --- a/src/external/e57/CMakeLists.txt +++ b/src/external/e57/CMakeLists.txt @@ -95,8 +95,6 @@ add_subdirectory( extern/CRCpp ) add_subdirectory( include ) add_subdirectory( src ) -include( ClangFormat ) - # Target properties set_target_properties( E57Format PROPERTIES diff --git a/src/external/e57/cmake/Modules/ClangFormat.cmake b/src/external/e57/cmake/Modules/ClangFormat.cmake deleted file mode 100644 index 6e793ecf0..000000000 --- a/src/external/e57/cmake/Modules/ClangFormat.cmake +++ /dev/null @@ -1,19 +0,0 @@ -# SPDX-License-Identifier: MIT -# Copyright 2020 Andy Maloney - -find_program( E57_CLANG_FORMAT_EXE NAMES clang-format ) - -if ( E57_CLANG_FORMAT_EXE ) - get_target_property( e57_sources ${PROJECT_NAME} SOURCES ) - - # Remove some files from the list - list( FILTER e57_sources EXCLUDE REGEX ".*/E57Export.h" ) - list( FILTER e57_sources EXCLUDE REGEX ".*/extern/.*" ) - - add_custom_target( format - COMMAND clang-format --style=file -i ${e57_sources} - COMMENT "Running clang-format..." - COMMAND_EXPAND_LISTS - VERBATIM - ) -endif()