Skip to content

Commit c5364ac

Browse files
committed
Fix Kirk comments
1 parent 889fef8 commit c5364ac

File tree

3 files changed

+33
-22
lines changed

3 files changed

+33
-22
lines changed

taskfiles/deps.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ tasks:
7777
cmds:
7878
- task: ":utils:cmake:install-remote-tar"
7979
vars:
80-
CMAKE_PACKAGE_NAME: "{{.G_OUTCOME_LIB_NAME}}"
81-
WORK_DIR: "{{.G_OUTCOME_WORK_DIR}}"
82-
TAR_SHA256: "0382248cbb00806ce4b5f3ce6939797dc3b597c85fd3531614959e31ef488b39"
83-
TAR_URL: "https://github.com/ned14/outcome/archive/refs/tags/v2.2.11.tar.gz"
8480
CMAKE_GEN_ARGS:
8581
- "-C {{.G_DEPS_CMAKE_SETTINGS_DIR}}/{{.G_QUICKCPPLIB_LIB_NAME}}.cmake"
8682
- "-DBUILD_TESTING=OFF"
8783
- "-DCMAKE_BUILD_TYPE=Release"
8884
- "-DCMAKE_POLICY_DEFAULT_CMP0074=NEW"
85+
CMAKE_PACKAGE_NAME: "{{.G_OUTCOME_LIB_NAME}}"
86+
TAR_SHA256: "0382248cbb00806ce4b5f3ce6939797dc3b597c85fd3531614959e31ef488b39"
87+
TAR_URL: "https://github.com/ned14/outcome/archive/refs/tags/v2.2.11.tar.gz"
88+
WORK_DIR: "{{.G_OUTCOME_WORK_DIR}}"
8989
- task: "add-package-root-to-cmake-settings"
9090
vars:
9191
NAME: "{{.G_OUTCOME_LIB_NAME}}"
@@ -97,13 +97,13 @@ tasks:
9797
cmds:
9898
- task: ":utils:cmake:install-remote-tar"
9999
vars:
100-
CMAKE_PACKAGE_NAME: "{{.G_QUICKCPPLIB_LIB_NAME}}"
101-
WORK_DIR: "{{.G_QUICKCPPLIB_WORK_DIR}}"
102-
TAR_SHA256: "5d4c9b2d6fa177d3fb14f3fe3086867e43b44f4a7a944eb10ee4616b2b0f3c05"
103-
TAR_URL: "https://github.com/ned14/quickcpplib/archive/f3e452e.tar.gz"
104100
CMAKE_GEN_ARGS:
105101
- "-DBUILD_TESTING=OFF"
106102
- "-DCMAKE_BUILD_TYPE=Release"
103+
CMAKE_PACKAGE_NAME: "{{.G_QUICKCPPLIB_LIB_NAME}}"
104+
TAR_SHA256: "5d4c9b2d6fa177d3fb14f3fe3086867e43b44f4a7a944eb10ee4616b2b0f3c05"
105+
TAR_URL: "https://github.com/ned14/quickcpplib/archive/f3e452e.tar.gz"
106+
WORK_DIR: "{{.G_QUICKCPPLIB_WORK_DIR}}"
107107
- task: "add-package-root-to-cmake-settings"
108108
vars:
109109
NAME: "{{.G_QUICKCPPLIB_LIB_NAME}}"

taskfiles/lint-cpp.yaml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ tasks:
1717
desc: "Runs the C++ linters that identify formatting issues."
1818
sources: &cpp_format_src_files
1919
- "{{.G_LINT_VENV_CHECKSUM_FILE}}"
20-
- "{{.G_CPP_SRC_DIR}}"
20+
- "{{.G_CPP_SRC_DIR}}/**/*.cpp"
21+
- "{{.G_CPP_SRC_DIR}}/**/*.h"
22+
- "{{.G_CPP_SRC_DIR}}/**/*.hpp"
2123
- "{{.ROOT_DIR}}/.clang-format"
2224
- "{{.TASKFILE}}"
2325
deps:
@@ -27,8 +29,8 @@ tasks:
2729
- task: ":utils:cpp-lint:clang-format"
2830
vars:
2931
FLAGS: ["--dry-run"]
30-
INCLUDE_FILENAME_PATTERNS: ["*.cpp", "*.h", "*.hpp", "*.inc"]
31-
ROOT_PATHS: *cpp_format_src_files
32+
INCLUDE_FILENAME_PATTERNS: ["*.cpp", "*.h", "*.hpp"]
33+
ROOT_PATHS: ["{{.G_CPP_SRC_DIR}}"]
3234
VENV_DIR: "{{.G_LINT_VENV_DIR}}"
3335

3436
cpp-format-fix:
@@ -41,8 +43,8 @@ tasks:
4143
- task: ":utils:cpp-lint:clang-format"
4244
vars:
4345
FLAGS: ["-i"]
44-
INCLUDE_FILENAME_PATTERNS: ["*.cpp", "*.h", "*.hpp", "*.inc"]
45-
ROOT_PATHS: *cpp_format_src_files
46+
INCLUDE_FILENAME_PATTERNS: ["*.cpp", "*.h", "*.hpp"]
47+
ROOT_PATHS: ["{{.G_CPP_SRC_DIR}}"]
4648
VENV_DIR: "{{.G_LINT_VENV_DIR}}"
4749

4850
cpp-static-check:
@@ -53,11 +55,13 @@ tasks:
5355
aliases:
5456
- "cpp-static-fix"
5557
desc: "Runs the C++ static analyzers. Only checks for warnings and violations."
56-
sources: &cpp_static_src_files
58+
sources:
5759
- "{{.G_CMAKE_CACHE}}"
5860
- "{{.G_COMPILE_COMMANDS_DB}}"
5961
- "{{.G_LINT_VENV_CHECKSUM_FILE}}"
60-
- "{{.G_CPP_SRC_DIR}}"
62+
- "{{.G_CPP_SRC_DIR}}/**/*.cpp"
63+
- "{{.G_CPP_SRC_DIR}}/**/*.h"
64+
- "{{.G_CPP_SRC_DIR}}/**/*.hpp"
6165
- "{{.ROOT_DIR}}/.clang-tidy"
6266
- "{{.TASKFILE}}"
6367
deps:
@@ -70,9 +74,8 @@ tasks:
7074
FLAGS:
7175
- "--config-file '{{.ROOT_DIR}}/.clang-tidy'"
7276
- "-p '{{.G_COMPILE_COMMANDS_DB}}'"
73-
INCLUDE_PATTERNS: ["*.cpp", "*.h", "*.hpp", "*.inc"]
74-
OUTPUT_DIR: "{{.G_LINT_CLANG_TIDY_DIR}}"
75-
ROOT_PATHS: *cpp_static_src_files
77+
INCLUDE_FILENAME_PATTERNS: ["*.cpp", "*.h", "*.hpp"]
78+
ROOT_PATHS: ["{{.G_CPP_SRC_DIR}}"]
7679
VENV_DIR: "{{.G_LINT_VENV_DIR}}"
7780

7881
cpp-configs:

taskfiles/lint-yaml.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,24 @@ tasks:
1313
- "{{.TASKFILE}}"
1414
- exclude: "{{.ROOT_DIR}}/**/build/*"
1515
- exclude: "{{.ROOT_DIR}}/**/tools/*"
16+
# The following are for Clion's default generated build dirs
17+
- exclude: "{{.ROOT_DIR}}/cmake-build-debug/*"
18+
- exclude: "{{.ROOT_DIR}}/cmake-build-release/*"
1619
dir: "{{.ROOT_DIR}}"
1720
deps:
1821
- "venv"
1922
cmds:
2023
- |-
2124
. "{{.G_LINT_VENV_DIR}}/bin/activate"
2225
find . \
23-
\( -path '**/build' -o -path '**/tools' \) -prune -o \
26+
\( \
27+
-path '**/build' \
28+
-o -path '**/tools' \
29+
-o -path '**/cmake-build-debug' \
30+
-o -path '**/cmake-build-release' \
31+
\) -prune -o \
2432
\( -iname "*.yaml" -o -iname "*.yml" \) \
2533
-print0 | \
26-
xargs -0 yamllint \
27-
--config-file "tools/yscope-dev-utils/exports/lint-configs/.yamllint.yml" \
28-
--strict
34+
xargs -0 yamllint \
35+
--config-file "tools/yscope-dev-utils/exports/lint-configs/.yamllint.yml" \
36+
--strict

0 commit comments

Comments
 (0)