From 47ac261bb7f824f64e37356bb9577def53eb97a8 Mon Sep 17 00:00:00 2001 From: Marcus10110 Date: Wed, 30 Sep 2020 20:41:50 -0700 Subject: [PATCH] automatic template update of JTAG Analyzer --- .clang-format | 32 ++++++++++++++++++++++++++++++++ CMakeLists.txt | 5 +++++ azure-pipelines.yml | 4 +++- 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..9acbd6a --- /dev/null +++ b/.clang-format @@ -0,0 +1,32 @@ +# Logic style +Language: Cpp +# manually added flags +FixNamespaceComments: 'false' +SortIncludes: 'false' + + +# flags copied from web editor, https://zed0.co.uk/clang-format-configurator/ +AllowShortBlocksOnASingleLine: 'false' +AllowShortCaseLabelsOnASingleLine: 'false' +AllowShortFunctionsOnASingleLine: None +AllowShortIfStatementsOnASingleLine: 'false' +AllowShortLoopsOnASingleLine: 'false' +AlwaysBreakAfterReturnType: None +AlwaysBreakTemplateDeclarations: 'true' +BreakBeforeBraces: Allman +ColumnLimit: '140' +ConstructorInitializerAllOnOneLineOrOnePerLine: 'true' +ContinuationIndentWidth: '4' +Cpp11BracedListStyle: 'false' +IndentWidth: '4' +KeepEmptyLinesAtTheStartOfBlocks: 'false' +MaxEmptyLinesToKeep: '2' +NamespaceIndentation: All +PointerAlignment: Left +SpaceBeforeParens: Never +SpaceInEmptyParentheses: 'false' +SpacesInCStyleCastParentheses: 'true' +SpacesInParentheses: 'true' +SpacesInSquareBrackets: 'true' +TabWidth: '4' +UseTab: Never diff --git a/CMakeLists.txt b/CMakeLists.txt index 980cff4..797e3ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,11 @@ cmake_minimum_required (VERSION 3.11) project(jtag_analyzer) + + +# enable generation of compile_commands.json, helpful for IDEs to locate include files. +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + # custom CMake Modules are located in the cmake directory. set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 13aaacd..3c74c5d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -82,7 +82,9 @@ jobs: artifact: AnalyzerLibLinux - download: current artifact: AnalyzerLibWin - patterns: '*.dll' + patterns: | + *.dll + *.pdb - download: current artifact: AnalyzerLibMac - script: |