-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Code Health] clang-tidy cleanup, part 1 (#2990)
- Loading branch information
Showing
97 changed files
with
759 additions
and
661 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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Copyright The OpenTelemetry Authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
Checks: > | ||
-*, | ||
abseil-*, | ||
-abseil-string-find-str-contains, | ||
bugprone-*, | ||
-bugprone-easily-swappable-parameters, | ||
-bugprone-implicit-widening-of-multiplication-result, | ||
-bugprone-inc-dec-in-conditions, | ||
-bugprone-narrowing-conversions, | ||
-bugprone-unchecked-optional-access, | ||
-bugprone-unhandled-exception-at-new, | ||
-bugprone-unused-local-non-trivial-variable, | ||
-bugprone-unused-return-value, | ||
google-*, | ||
-google-build-using-namespace, | ||
-google-default-arguments, | ||
-google-explicit-constructor, | ||
-google-readability-avoid-underscore-in-googletest-name, | ||
-google-readability-braces-around-statements, | ||
-google-readability-namespace-comments, | ||
-google-readability-todo, | ||
-google-runtime-references, | ||
misc-*, | ||
-misc-const-correctness, | ||
-misc-include-cleaner, | ||
-misc-non-private-member-variables-in-classes, | ||
-misc-unused-alias-decls, | ||
-misc-use-anonymous-namespace, | ||
performance-*, | ||
-performance-move-const-arg, | ||
portability-* | ||
# readability-*, | ||
# -readability-convert-member-functions-to-static, | ||
# -readability-else-after-return, | ||
# -readability-function-cognitive-complexity, | ||
# -readability-identifier-length, | ||
# -readability-implicit-bool-conversion, | ||
# -readability-isolate-declaration, | ||
# -readability-magic-numbers, | ||
# -readability-named-parameter, | ||
# -readability-redundant-*, | ||
# -readability-string-compare, | ||
# cppcoreguidelines-*, | ||
# -cppcoreguidelines-avoid-c-arrays, | ||
# -cppcoreguidelines-avoid-magic-numbers, | ||
# -cppcoreguidelines-init-variables, | ||
# -cppcoreguidelines-macro-usage, | ||
# -cppcoreguidelines-non-private-member-variables-in-classes, | ||
# -cppcoreguidelines-pro-*, | ||
# modernize-*, | ||
# -modernize-use-default-member-init, | ||
# -modernize-use-nodiscard, | ||
# -modernize-use-trailing-return-type, | ||
# -modernize-avoid-c-arrays, | ||
# -modernize-use-using | ||
|
||
# Use existing clang-format for formatting the code | ||
# FormatStyle: 'file' | ||
|
||
# TODO: include checks: readability, cppcoreguidelines, modernize , google-readability-namespace-comments, google-readability-avoid-underscore-in-googletest-name, performance-move-const-arg | ||
|
||
|
||
|
||
|
||
|
||
|
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
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
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
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
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
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
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
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
Oops, something went wrong.
eb2b975
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.
Possible performance regression was detected for benchmark 'OpenTelemetry-cpp sdk Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.BM_AlwaysOnSamplerConstruction
1.5710502941561162
ns/iter0.7291755621672381
ns/iter2.15
This comment was automatically generated by workflow using github-action-benchmark.
eb2b975
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.
Possible performance regression was detected for benchmark 'OpenTelemetry-cpp api Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.BM_SpinLockThrashing/2/process_time/real_time
0.5392551422119141
ms/iter0.18038204212728073
ms/iter2.99
BM_SpinLockThrashing/4/process_time/real_time
1.8541870578642814
ms/iter0.5630573618068616
ms/iter3.29
BM_ProcYieldSpinLockThrashing/1/process_time/real_time
0.6742159525553385
ms/iter0.09031698538999337
ms/iter7.46
BM_ProcYieldSpinLockThrashing/2/process_time/real_time
0.6826788650275512
ms/iter0.18150689769593217
ms/iter3.76
This comment was automatically generated by workflow using github-action-benchmark.