Skip to content

Commit

Permalink
try to fix remaining annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Van Bortel <[email protected]>
  • Loading branch information
cebtenzzre committed Dec 6, 2024
1 parent f1025be commit e7ee341
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Checks:
- '-cppcoreguidelines-pro-type-member-init'
- '-cppcoreguidelines-pro-type-reinterpret-cast'
- '-cppcoreguidelines-pro-type-static-cast-downcast'
- '-cppcoreguidelines-pro-type-union-access'
- '-cppcoreguidelines-pro-type-vararg'
- '-cppcoreguidelines-rvalue-reference-param-not-moved'
- '-cppcoreguidelines-special-member-functions'
Expand All @@ -71,6 +72,7 @@ Checks:
- '-modernize-avoid-bind'
- '-modernize-deprecated-headers'
- '-modernize-loop-convert'
- '-modernize-pass-by-value'
- '-modernize-raw-string-literal'
- '-modernize-return-braced-init-list'
- '-modernize-use-auto'
Expand Down Expand Up @@ -103,6 +105,7 @@ Checks:
- '-readability-identifier-length'
- '-readability-implicit-bool-conversion'
- '-readability-inconsistent-declaration-parameter-name'
- '-readability-isolate-declaration'
- '-readability-math-missing-parentheses'
- '-readability-named-parameter'
- '-readability-non-const-parameter'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cpp-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ jobs:
id: linter
with:
style: '' # no clang-format
extensions: 'c,cpp,h,inl'
extensions: 'c,cpp'
tidy-checks: '' # use .clang-tidy config
database: gpt4all-chat/build
version: 18
files-changed-only: false # TODO: set this back to true
ignore: 'gpt4all-chat/build/_deps'
files-changed-only: false
ignore: 'gpt4all-chat/build/_deps|gpt4all-bindings'
- name: Fail Fast
if: steps.linter.outputs.clang-tidy-checks-failed > 0
run: exit 1
3 changes: 2 additions & 1 deletion gpt4all-backend/src/llamamodel_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@

#include "llmodel.h"

#include <expected>
#include <memory>
#include <span>
#include <string>
#include <string_view>
#include <vector>
#include <unordered_map>
#include <vector>

struct LLamaPrivate;
struct EmbModelSpec;
Expand Down

0 comments on commit e7ee341

Please sign in to comment.