-
Notifications
You must be signed in to change notification settings - Fork 600
[REVIEW] Enable clang tidy on cuML c++ sources #1945
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 63 commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
3e7c2aa
initial version of clang-tidy wrapper script
teju85 5492263
minor fixes/hacks to make clang-tidy command run
teju85 0fa695c
making PEP8 format fixes
teju85 3ef6616
removed an unnecessary break statement + added initial .clang-tidy
teju85 210f1a5
removed google-* clang tidy rules for now
teju85 671d5d6
added a select option to only check for certain source files
teju85 8e5176d
disabled most clang tidy checks for now
teju85 8519b5a
made warnings as errors
teju85 477aae2
suppressed switch-case warning too
teju85 f305336
enabled warnings/errors in the included header files too
teju85 8b9ef20
fixed correct option for clang gpu-arch
teju85 f3e065d
optimal packing order for cumlHandle_impl members based on clang-tidy
teju85 59a9c03
removed other unknown options to clang
teju85 3f687ed
disabled checks on cuda files for now
teju85 23cbab3
filter diagnostics for headers from cuml only
teju85 546946f
fixed clang-tidy error in holtwinters C code
teju85 1fb02ad
currently do not consider examples/ folder for clang tidy checks
teju85 60f54a0
fixed clang tidy errors
teju85 1f9d330
removed google clang-tidy rules, for now
teju85 a3705ee
use clang-based system headers instead of the ones from gcc toolchain
teju85 cfae269
updated the location of latest clang headers
teju85 b1956e9
enabled compilation database generation in cmake for clang-tidy purposes
teju85 4869ad7
removed nocudalib option
teju85 344f4ac
-j option for parallel compilation
teju85 ffc5825
relaxed the ignore regex slightly
teju85 e58e2b8
parallel processing of clang-tidy targets for runtime reduction
teju85 1f6d9c3
by default do parallel clang-tidy processing
teju85 c2f79dc
Merge branch 'branch-0.14' of https://github.com/rapidsai/cuml into f…
teju85 6350ecd
Merge branch 'branch-0.14' of https://github.com/rapidsai/cuml into f…
teju85 b06171b
update changelog
teju85 4d25d0d
clang format updates
teju85 9161a0e
install clang and clang-tools needed for clang-tidy checker
teju85 d356642
updated clang-tidy expected version to 8.0.1
teju85 d4d3429
explicit code paths to run tidy checks sequentially and parallely
teju85 e2fbee4
usage of subprocess.run in order to capture clang-tidy output accurately
teju85 689c192
added run-clang-tidy command inside ci/gpu/build.sh
teju85 40cedc1
Merge branch 'branch-0.14' of https://github.com/rapidsai/cuml into f…
teju85 c1a43ab
Merge branch 'branch-0.14' of https://github.com/rapidsai/cuml into f…
teju85 a7ef858
ENH removed clang and clang-tools installation as they are already in…
teju85 bc335a9
ENH removed code duplication between parallel and sequential paths
teju85 131e0cd
Merge branch 'branch-0.14' of https://github.com/rapidsai/cuml into f…
teju85 d56ced1
FIX do not lint spdlog headers
teju85 4c2c1a5
FIX clang-format fixes
teju85 395aee8
CI moved tidy checker logic from gpu/build.sh to checks/style.sh
teju85 56e2362
FIX help discover nvcc during the check-style CI
teju85 932de36
FIX do not evaluate_gpu_archs in check-style CI
teju85 9a7f9cf
FIX download all dependencies in check-styl CI before starting clang-…
teju85 f0fb06f
FIX added faiss blas libaries option to cmake command in style.sh
teju85 fe4a10c
FIX reordered dependencies to simplify clang-tidy check setup in styl…
teju85 2423a5c
FIX download all dependencies for clang-tidy to run correctly in styl…
teju85 57a8969
FIX install ucx-py dependency in style.sh
teju85 0548880
FIX install more dependencies
teju85 0803f67
FIX install openblas needed for faiss build
teju85 c46fb0e
Merge branch 'branch-0.14' of https://github.com/rapidsai/cuml into f…
teju85 52d46ea
FIX use anaconda channel for installing openblas
teju85 152976c
FIX update LD_LIBRARY_PATH to be able to use openblas library success…
teju85 f86b7ea
DOC copyright year update
teju85 00aa3fe
FIX ignore tidy for the 3rd-party headers
teju85 2cb30cf
FIX updated clang-tidy header-filter to only look at cuml source/head…
teju85 fd0fca5
Merge branch 'branch-0.14' of https://github.com/rapidsai/cuml into f…
teju85 ab16823
Merge branch 'branch-0.14' of https://github.com/rapidsai/cuml into f…
teju85 5a2d6a8
Merge branch 'branch-0.14' of https://github.com/rapidsai/cuml into f…
teju85 6c88a6d
CI only install latest ucx-py inside style.sh
teju85 440aa31
Merge branch 'branch-0.15' of https://github.com/rapidsai/cuml into f…
teju85 7acbf99
DOC update changelog
teju85 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
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 |
|---|---|---|
| @@ -0,0 +1,145 @@ | ||
| --- | ||
| Checks: 'clang-diagnostic-*,clang-analyzer-*,-modernize-*,-clang-diagnostic-#pragma-messages,-readability-identifier-naming,-clang-diagnostic-switch' | ||
| WarningsAsErrors: '*' | ||
| HeaderFilterRegex: '' | ||
| AnalyzeTemporaryDtors: false | ||
| FormatStyle: none | ||
| CheckOptions: | ||
| - key: cert-dcl16-c.NewSuffixes | ||
| value: 'L;LL;LU;LLU' | ||
| - key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic | ||
| value: '1' | ||
| - key: modernize-loop-convert.MaxCopySize | ||
| value: '16' | ||
| - key: modernize-loop-convert.MinConfidence | ||
| value: reasonable | ||
| - key: modernize-loop-convert.NamingStyle | ||
| value: CamelCase | ||
| - key: modernize-pass-by-value.IncludeStyle | ||
| value: llvm | ||
| - key: modernize-pass-by-value.ValuesOnly | ||
| value: '0' | ||
| - key: modernize-replace-auto-ptr.IncludeStyle | ||
| value: llvm | ||
| - key: modernize-replace-random-shuffle.IncludeStyle | ||
| value: llvm | ||
| - key: modernize-use-auto.MinTypeNameLength | ||
| value: '5' | ||
| - key: modernize-use-auto.RemoveStars | ||
| value: '0' | ||
| - key: modernize-use-default-member-init.IgnoreMacros | ||
| value: '1' | ||
| - key: modernize-use-default-member-init.UseAssignment | ||
| value: '0' | ||
| - key: modernize-use-emplace.ContainersWithPushBack | ||
| value: '::std::vector;::std::list;::std::deque' | ||
| - key: modernize-use-emplace.SmartPointers | ||
| value: '::std::shared_ptr;::std::unique_ptr;::std::auto_ptr;::std::weak_ptr' | ||
| - key: modernize-use-emplace.TupleMakeFunctions | ||
| value: '::std::make_pair;::std::make_tuple' | ||
| - key: modernize-use-emplace.TupleTypes | ||
| value: '::std::pair;::std::tuple' | ||
| - key: modernize-use-equals-default.IgnoreMacros | ||
| value: '1' | ||
| - key: modernize-use-equals-delete.IgnoreMacros | ||
| value: '1' | ||
| - key: modernize-use-nodiscard.ReplacementString | ||
| value: '[[nodiscard]]' | ||
| - key: modernize-use-noexcept.ReplacementString | ||
| value: '' | ||
| - key: modernize-use-noexcept.UseNoexceptFalse | ||
| value: '1' | ||
| - key: modernize-use-nullptr.NullMacros | ||
| value: 'NULL' | ||
| - key: modernize-use-transparent-functors.SafeMode | ||
| value: '0' | ||
| - key: modernize-use-using.IgnoreMacros | ||
| value: '1' | ||
| - key: readability-identifier-naming.ClassCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.ClassPrefix | ||
| value: '' | ||
| - key: readability-identifier-naming.ClassSuffix | ||
| value: '' | ||
| - key: readability-identifier-naming.ConstexprVariableCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.ConstexprVariablePrefix | ||
| value: k | ||
| - key: readability-identifier-naming.ConstexprVariableSuffix | ||
| value: '' | ||
| - key: readability-identifier-naming.EnumCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.EnumConstantPrefix | ||
| value: k | ||
| - key: readability-identifier-naming.EnumConstantSuffix | ||
| value: '' | ||
| - key: readability-identifier-naming.EnumPrefix | ||
| value: '' | ||
| - key: readability-identifier-naming.EnumSuffix | ||
| value: '' | ||
| - key: readability-identifier-naming.FunctionCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.FunctionPrefix | ||
| value: '' | ||
| - key: readability-identifier-naming.FunctionSuffix | ||
| value: '' | ||
| - key: readability-identifier-naming.GlobalConstantCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.GlobalConstantPrefix | ||
| value: k | ||
| - key: readability-identifier-naming.GlobalConstantSuffix | ||
| value: '' | ||
| - key: readability-identifier-naming.IgnoreFailedSplit | ||
| value: '0' | ||
| - key: readability-identifier-naming.MemberCase | ||
| value: lower_case | ||
| - key: readability-identifier-naming.MemberPrefix | ||
| value: '' | ||
| - key: readability-identifier-naming.MemberSuffix | ||
| value: '' | ||
| - key: readability-identifier-naming.NamespaceCase | ||
| value: lower_case | ||
| - key: readability-identifier-naming.NamespacePrefix | ||
| value: '' | ||
| - key: readability-identifier-naming.NamespaceSuffix | ||
| value: '' | ||
| - key: readability-identifier-naming.PrivateMemberPrefix | ||
| value: '' | ||
| - key: readability-identifier-naming.PrivateMemberSuffix | ||
| value: _ | ||
| - key: readability-identifier-naming.ProtectedMemberPrefix | ||
| value: '' | ||
| - key: readability-identifier-naming.ProtectedMemberSuffix | ||
| value: _ | ||
| - key: readability-identifier-naming.StaticConstantCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.StaticConstantPrefix | ||
| value: k | ||
| - key: readability-identifier-naming.StaticConstantSuffix | ||
| value: '' | ||
| - key: readability-identifier-naming.StructCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.StructPrefix | ||
| value: '' | ||
| - key: readability-identifier-naming.StructSuffix | ||
| value: '' | ||
| - key: readability-identifier-naming.TypeAliasCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.TypeAliasPrefix | ||
| value: '' | ||
| - key: readability-identifier-naming.TypeAliasSuffix | ||
| value: '' | ||
| - key: readability-identifier-naming.TypeTemplateParameterCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.TypeTemplateParameterPrefix | ||
| value: '' | ||
| - key: readability-identifier-naming.TypeTemplateParameterSuffix | ||
| value: '' | ||
| - key: readability-identifier-naming.TypedefCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.TypedefPrefix | ||
| value: '' | ||
| - key: readability-identifier-naming.TypedefSuffix | ||
| value: '' | ||
| ... | ||
|
|
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.
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.
Uh oh!
There was an error while loading. Please reload this page.