mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-07-06 03:56:45 +00:00
try to fix remaining annotations
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
f1025be542
commit
e7ee341e28
@ -49,6 +49,7 @@ Checks:
|
|||||||
- '-cppcoreguidelines-pro-type-member-init'
|
- '-cppcoreguidelines-pro-type-member-init'
|
||||||
- '-cppcoreguidelines-pro-type-reinterpret-cast'
|
- '-cppcoreguidelines-pro-type-reinterpret-cast'
|
||||||
- '-cppcoreguidelines-pro-type-static-cast-downcast'
|
- '-cppcoreguidelines-pro-type-static-cast-downcast'
|
||||||
|
- '-cppcoreguidelines-pro-type-union-access'
|
||||||
- '-cppcoreguidelines-pro-type-vararg'
|
- '-cppcoreguidelines-pro-type-vararg'
|
||||||
- '-cppcoreguidelines-rvalue-reference-param-not-moved'
|
- '-cppcoreguidelines-rvalue-reference-param-not-moved'
|
||||||
- '-cppcoreguidelines-special-member-functions'
|
- '-cppcoreguidelines-special-member-functions'
|
||||||
@ -71,6 +72,7 @@ Checks:
|
|||||||
- '-modernize-avoid-bind'
|
- '-modernize-avoid-bind'
|
||||||
- '-modernize-deprecated-headers'
|
- '-modernize-deprecated-headers'
|
||||||
- '-modernize-loop-convert'
|
- '-modernize-loop-convert'
|
||||||
|
- '-modernize-pass-by-value'
|
||||||
- '-modernize-raw-string-literal'
|
- '-modernize-raw-string-literal'
|
||||||
- '-modernize-return-braced-init-list'
|
- '-modernize-return-braced-init-list'
|
||||||
- '-modernize-use-auto'
|
- '-modernize-use-auto'
|
||||||
@ -103,6 +105,7 @@ Checks:
|
|||||||
- '-readability-identifier-length'
|
- '-readability-identifier-length'
|
||||||
- '-readability-implicit-bool-conversion'
|
- '-readability-implicit-bool-conversion'
|
||||||
- '-readability-inconsistent-declaration-parameter-name'
|
- '-readability-inconsistent-declaration-parameter-name'
|
||||||
|
- '-readability-isolate-declaration'
|
||||||
- '-readability-math-missing-parentheses'
|
- '-readability-math-missing-parentheses'
|
||||||
- '-readability-named-parameter'
|
- '-readability-named-parameter'
|
||||||
- '-readability-non-const-parameter'
|
- '-readability-non-const-parameter'
|
||||||
|
6
.github/workflows/cpp-linter.yml
vendored
6
.github/workflows/cpp-linter.yml
vendored
@ -51,12 +51,12 @@ jobs:
|
|||||||
id: linter
|
id: linter
|
||||||
with:
|
with:
|
||||||
style: '' # no clang-format
|
style: '' # no clang-format
|
||||||
extensions: 'c,cpp,h,inl'
|
extensions: 'c,cpp'
|
||||||
tidy-checks: '' # use .clang-tidy config
|
tidy-checks: '' # use .clang-tidy config
|
||||||
database: gpt4all-chat/build
|
database: gpt4all-chat/build
|
||||||
version: 18
|
version: 18
|
||||||
files-changed-only: false # TODO: set this back to true
|
files-changed-only: false
|
||||||
ignore: 'gpt4all-chat/build/_deps'
|
ignore: 'gpt4all-chat/build/_deps|gpt4all-bindings'
|
||||||
- name: Fail Fast
|
- name: Fail Fast
|
||||||
if: steps.linter.outputs.clang-tidy-checks-failed > 0
|
if: steps.linter.outputs.clang-tidy-checks-failed > 0
|
||||||
run: exit 1
|
run: exit 1
|
||||||
|
@ -6,12 +6,13 @@
|
|||||||
|
|
||||||
#include "llmodel.h"
|
#include "llmodel.h"
|
||||||
|
|
||||||
|
#include <expected>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <span>
|
#include <span>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#include <vector>
|
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
struct LLamaPrivate;
|
struct LLamaPrivate;
|
||||||
struct EmbModelSpec;
|
struct EmbModelSpec;
|
||||||
|
Loading…
Reference in New Issue
Block a user