-
Notifications
You must be signed in to change notification settings - Fork 41
[CPPRuntime] Fix C++ Runtime Clang compilation errors #328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
e9fe91f
clang-tidy for runtime bindings
ethanglaser 5b0c7dc
address gnu/clang-tidy incompatibilities
ethanglaser fb3115e
further faiss alignment
ethanglaser e35a8e8
address errors
ethanglaser 45ec6cf
temporary try pip install of clang-toosl 17
ethanglaser 884219c
pip version tweak
ethanglaser 755ccfe
Merge branch 'main' into dev/eglaser-clang-tidy-solo
ethanglaser bdd955b
conda install instead
ethanglaser 89e842e
back to pip...
ethanglaser cdbdddd
install official clang-tidy 17 binary
ethanglaser 78005d9
use rhel8 tarball instead of ubuntu22
ethanglaser 3891e37
another pip attempt
ethanglaser ce259e7
add openmp extra arg based on review
ethanglaser f027ed8
Merge branch 'main' into dev/eglaser-clang-tidy-solo
ethanglaser ad2d800
drop omp due to absence from clang-tidy
ethanglaser 6e72e56
try pointing clang tidy and gcc headers (omp)
ethanglaser 17a1464
see if clang-tidy 18 fixes bugs
ethanglaser 19b4fda
restore previous
ethanglaser 1149243
remove omp workarounds and add alternative
ethanglaser 0bff75f
Merge branch 'main' into dev/eglaser-clang-tidy-solo
ethanglaser c2a3d21
another attempt at passing gcc omp to clang tidy
ethanglaser 839df4c
remove SVS_ENABLE_OMP toggle
ethanglaser bf283ec
readd fopenmp extra arg
ethanglaser 2ec1475
swap fopenmp arg for no-unknown-pragmas
ethanglaser 8fe9981
Refactor namespace declarations to use SVS_DECLARE_NAMESPACE_VERSION …
rfsaliev 1acbc7d
Fix Clang compilation errors
rfsaliev e67d255
More fixes.
rfsaliev d8aa4e1
Fix unused exeption parameter warning
rfsaliev 9be159b
Address code review comments
rfsaliev 50ed0a3
Finalize clang-tidy and related comments
ethanglaser 66e6f74
Merge branch 'main' into rfsaliev/cpp-runtime-namespace
ethanglaser File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,12 +1,60 @@ | ||
| Checks: "-*, | ||
| bugprone*, | ||
| -bugprone-easily-swappable-parameters, | ||
| -bugprone-macro-parentheses, | ||
| clang-analyzer*, | ||
| readability*, | ||
| -readability-magic-numbers, | ||
| -readability-identifier-length" | ||
| Checks: ' | ||
| -*, | ||
| bugprone-argument-comment, | ||
| bugprone-sizeof-*, | ||
| bugprone-use-after-move, | ||
| clang-diagnostic-*, | ||
| -clang-diagnostic-nrvo, | ||
| -clang-diagnostic-missing-designated-field-initializers, | ||
| cppcoreguidelines-pro-type-member-init, | ||
| cppcoreguidelines-special-member-functions, | ||
| google-build-using-namespace, | ||
| misc-definitions-in-headers, | ||
| modernize-use-emplace, | ||
| modernize-use-using, | ||
| performance-faster-string-find, | ||
| performance-for-range-copy, | ||
| performance-implicit-conversion-in-loop, | ||
| performance-inefficient-algorithm, | ||
| performance-inefficient-string-concatenation, | ||
| performance-inefficient-vector-operation, | ||
| performance-move-const-arg, | ||
| performance-move-constructor-init, | ||
| performance-no-automatic-move, | ||
| performance-no-int-to-ptr, | ||
| performance-noexcept-move-constructor, | ||
| performance-trivially-destructible, | ||
| performance-type-promotion-in-math-fn, | ||
| performance-unnecessary-copy-initialization, | ||
| performance-unnecessary-value-param, | ||
| readability-operators-representation, | ||
| readability-redundant-string-init, | ||
| readability-braces-around-statements, | ||
| ' | ||
|
|
||
| WarningsAsErrors: ' | ||
| bugprone-use-after-move, | ||
| ' | ||
|
|
||
| CheckOptions: | ||
| - key: readability-implicit-bool-conversion.AllowIntegerConditions | ||
| value: '1' | ||
| - key: bugprone-easily-swappable-parameters.MinimumLength | ||
| value: 4 | ||
| - key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor | ||
| value: true | ||
| - key: cppcoreguidelines-special-member-functions.AllowImplicitlyDeletedCopyOrMove | ||
| value: 1 | ||
| - key: modernize-use-using.IgnoreExternC | ||
| value: true | ||
| - key: performance-move-const-arg.CheckTriviallyCopyableMove | ||
| value: false | ||
| - key: performance-unnecessary-value-param.AllowedTypes | ||
| value: '[Pp]ointer$;[Pp]tr$;[Rr]ef(erence)?$' | ||
| - key: performance-unnecessary-copy-initialization.AllowedTypes | ||
| value: '[Pp]ointer$;[Pp]tr$;[Rr]ef(erence)?$' | ||
| - key: readability-operators-representation.BinaryOperators | ||
| value: '&&;&=;&;|;~;!;!=;||;|=;^;^=' | ||
| - key: readability-redundant-string-init.StringNames | ||
| value: '::std::basic_string' | ||
| - key: readability-named-parameter.InsertPlainNamesInForwardDecls | ||
| value: true | ||
| ... |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mnorris11 FYI this is how we are installing clang-tidy for alignment with FAISS, let me know if you'd suggest an alternative way