From 093ee73d54ae277e9d58e95003556119b6fb26e8 Mon Sep 17 00:00:00 2001 From: Derek Christ Date: Tue, 16 May 2023 09:49:47 +0200 Subject: [PATCH] Add .clang-tidy and .clang-format configurations --- .clang-format | 12 ++++++++++++ .clang-tidy | 7 +++++++ extensions/apps/traceAnalyzer/.clang-format | 13 ------------- 3 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 .clang-format create mode 100644 .clang-tidy delete mode 100644 extensions/apps/traceAnalyzer/.clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..1dd7cebc --- /dev/null +++ b/.clang-format @@ -0,0 +1,12 @@ +--- +AccessModifierOffset: '-4' +AllowShortFunctionsOnASingleLine: InlineOnly +AllowShortIfStatementsOnASingleLine: Never +BinPackArguments: 'false' +BinPackParameters: 'false' +BreakBeforeBraces: Allman +ColumnLimit: '100' +ConstructorInitializerAllOnOneLineOrOnePerLine: 'true' +IndentWidth: '4' + +... diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 00000000..33ff78e5 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,7 @@ +--- +Checks: 'clang-diagnostic-*,clang-analyzer-*,modernize-*,bugprone-*,concurrency-*,cppcoreguidelines-*,performance-*,portability-*,readability-*,-modernize-use-trailing-return-type,-readability-braces-around-statements,-readability-identifier-length' +WarningsAsErrors: '' +HeaderFilterRegex: '' +AnalyzeTemporaryDtors: false +FormatStyle: file +... diff --git a/extensions/apps/traceAnalyzer/.clang-format b/extensions/apps/traceAnalyzer/.clang-format deleted file mode 100644 index 950e9ea8..00000000 --- a/extensions/apps/traceAnalyzer/.clang-format +++ /dev/null @@ -1,13 +0,0 @@ ---- -BasedOnStyle: LLVM -AccessModifierOffset: '-4' -AllowShortFunctionsOnASingleLine: None -AllowShortIfStatementsOnASingleLine: Never -AllowShortLoopsOnASingleLine: 'false' -AlwaysBreakTemplateDeclarations: 'true' -BreakBeforeBraces: Allman -ColumnLimit: '120' -IndentWidth: '4' -PointerAlignment: Right - -...