-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clang-tidy improvements, recreate documentation (#83)
* Lots of clang-tidy fixes This enables a bunch of clang-tidy rules, and fixes nanobench.h wherever possible, and otherwise disables the warning at that line. * Updated documentation, adding missing files Also update highlighting locations * only use W4 warnings for MSVC
- Loading branch information
Showing
57 changed files
with
2,586 additions
and
1,542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,36 @@ | ||
--- | ||
Checks: "*,\ | ||
-google-runtime-int,\ | ||
-google-explicit-constructor,\ | ||
-hicpp-no-malloc,\ | ||
-hicpp-vararg,\ | ||
-hicpp-invalid-access-moved,\ | ||
-hicpp-no-array-decay,\ | ||
-llvm-header-guard,\ | ||
-readability-magic-numbers,\ | ||
-cppcoreguidelines-avoid-magic-numbers,\ | ||
-cppcoreguidelines-pro-bounds-constant-array-index,\ | ||
-cppcoreguidelines-pro-bounds-pointer-arithmetic,\ | ||
-cppcoreguidelines-pro-type-reinterpret-cast,\ | ||
-cppcoreguidelines-no-malloc,\ | ||
-cppcoreguidelines-owning-memory,\ | ||
-cppcoreguidelines-macro-usage,\ | ||
-cppcoreguidelines-pro-type-vararg,\ | ||
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,\ | ||
-fuchsia-overloaded-operator,\ | ||
-fuchsia-default-arguments,\ | ||
-fuchsia-multiple-inheritance,\ | ||
-fuchsia-default-arguments-calls,\ | ||
-fuchsia-trailing-return,\ | ||
-modernize-use-trailing-return-type,\ | ||
-misc-definitions-in-headers,\ | ||
-cert-err58-cpp,\ | ||
-clang-diagnostic-padded,\ | ||
-modernize-concat-nested-namespaces | ||
WarningsAsErrors: "*" | ||
Checks: '*, | ||
-altera-id-dependent-backward-branch, | ||
-altera-struct-pack-align, | ||
-altera-unroll-loops, | ||
-bugprone-easily-swappable-parameters, | ||
-cert-err58-cpp, | ||
-clang-diagnostic-padded, | ||
-cppcoreguidelines-avoid-magic-numbers, | ||
-cppcoreguidelines-macro-usage, | ||
-fuchsia-default-arguments-calls, | ||
-fuchsia-default-arguments, | ||
-fuchsia-multiple-inheritance, | ||
-fuchsia-overloaded-operator, | ||
-fuchsia-trailing-return, | ||
-google-explicit-constructor, | ||
-google-runtime-int, | ||
-hicpp-invalid-access-moved, | ||
-hicpp-no-array-decay, | ||
-hicpp-no-malloc, | ||
-hicpp-vararg, | ||
-llvm-header-guard, | ||
-llvmlibc-callee-namespace, | ||
-llvmlibc-implementation-in-namespace, | ||
-llvmlibc-restrict-system-libc-headers, | ||
-misc-definitions-in-headers, | ||
-modernize-concat-nested-namespaces, | ||
-modernize-macro-to-enum, | ||
-modernize-use-trailing-return-type, | ||
-readability-identifier-length, | ||
-readability-magic-numbers, | ||
' | ||
WarningsAsErrors: '*' | ||
HeaderFilterRegex: 'nanobench\.h' | ||
... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
build/x/compile_commands.json | ||
build/compile_commands.json |
Oops, something went wrong.