Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
fe35f17
add cpp linter workflow
hendrikmuhs Oct 17, 2025
9937c73
trigger on workflow itself
hendrikmuhs Oct 17, 2025
075ed3a
pin version
hendrikmuhs Oct 17, 2025
0009b24
add some files for testing
hendrikmuhs Oct 17, 2025
7e9de88
add content read permission
hendrikmuhs Oct 17, 2025
d4e4006
no thread comments
hendrikmuhs Oct 17, 2025
95e5bac
use database
hendrikmuhs Oct 17, 2025
992548d
add more files to see output
hendrikmuhs Oct 17, 2025
f2e9daf
try again with thread comments
hendrikmuhs Oct 18, 2025
e59c326
try step-summary
hendrikmuhs Oct 18, 2025
3349025
test clang tidy review as alternative
hendrikmuhs Oct 18, 2025
ff146d7
comma separation
hendrikmuhs Oct 18, 2025
a4c7bf7
zstd
hendrikmuhs Oct 18, 2025
7650d95
comma
hendrikmuhs Oct 18, 2025
723574d
update
hendrikmuhs Oct 21, 2025
0e60c82
apply suggestions
hendrikmuhs Oct 21, 2025
c58b95b
revert some changes
hendrikmuhs Oct 21, 2025
1363c0b
Apply suggestion from @github-actions[bot]
hendrikmuhs Oct 21, 2025
17ae0d0
Apply suggestion from @github-actions[bot]
hendrikmuhs Oct 21, 2025
35aa836
Merge branch 'master' of github.com:KeyviDev/keyvi into clang-tidy-wo…
hendrikmuhs Oct 24, 2025
ec0090c
add clang tidy config
hendrikmuhs Oct 24, 2025
1077674
improve comments
hendrikmuhs Oct 24, 2025
161097b
Merge branch 'master' into clang-tidy-workflow-2
hendrikmuhs Oct 24, 2025
d78de95
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 24, 2025
c1bf32c
Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks"
hendrikmuhs Oct 24, 2025
f4027ef
Merge branch 'master' into clang-tidy-workflow-2
hendrikmuhs Oct 24, 2025
ab9a617
Merge branch 'master' into clang-tidy-workflow-2
hendrikmuhs Oct 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/clang-tidy-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ jobs:
lgtm_comment_body: ''
annotations: false
max_comments: 10
num_comments_as_exitcode: false
29 changes: 29 additions & 0 deletions .github/workflows/clang-tidy-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: clang-tidy-review

# Runs clang-tidy on the changed files and uploads the result as artifact
# clang-tidy-post takes the artifact and posts the comments
on:
pull_request:
paths: ['**.cpp', '**.h', '**.hpp', '**CMakeLists.txt', '**.cmake', '.github/workflows/clang*.yml', '**.clang-tidy']

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5

- uses: ZedThree/[email protected]
id: review
with:
split_workflow: true
build_dir: build
apt_packages: "libsnappy-dev, libzzip-dev, zlib1g-dev, libboost-all-dev, libzstd-dev"
clang_tidy_checks: ''
cmake_command: "cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ."

- uses: ZedThree/clang-tidy-review/[email protected]

# If there are any comments, fail the check
- if: steps.review.outputs.total_comments > 0
run: exit 1
16 changes: 4 additions & 12 deletions keyvi/include/keyvi/dictionary/fsa/automata.h
Original file line number Diff line number Diff line change
Expand Up @@ -406,17 +406,11 @@ class Automata final {
return value_store_reader_->GetMsgPackedValueAsString(state_value, compression_algorithm);
}

std::string GetStatistics() const {
return dictionary_properties_->GetStatistics();
}
[[nodiscard]] std::string GetStatistics() const { return dictionary_properties_->GetStatistics(); }

const std::string& GetManifest() const {
return dictionary_properties_->GetManifest();
}
[[nodiscard]] const std::string& GetManifest() const { return dictionary_properties_->GetManifest(); }

const uint64_t GetVersion() const {
return dictionary_properties_->GetVersion();
}
[[nodiscard]] uint64_t GetVersion() const { return dictionary_properties_->GetVersion(); }

private:
dictionary_properties_t dictionary_properties_;
Expand Down Expand Up @@ -478,9 +472,7 @@ class Automata final {

friend class keyvi::dictionary::SecondaryKeyDictionary;

const dictionary_properties_t& GetDictionaryProperties() const {
return dictionary_properties_;
}
[[nodiscard]] const dictionary_properties_t& GetDictionaryProperties() const { return dictionary_properties_; }
};

// shared pointer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,7 @@ class SparseArrayPersistence final {
TRACE("Wrote Transitions, stream at %d", stream.tellp());
}

size_t GetChunkSizeExternalTransitions() const {
return transitions_extern_->GetChunkSize();
}
[[nodiscard]] size_t GetChunkSizeExternalTransitions() const { return transitions_extern_->GetChunkSize(); }

uint32_t GetVersion() const;

Expand Down
Loading