-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ks/bazel-enable-incompatible_disallow_empty_…
…glob
- Loading branch information
Showing
176 changed files
with
16,480 additions
and
1,159 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
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
|
||
name: cppcheck | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
cppcheck: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Set up dependencies | ||
run: | | ||
sudo apt update -y | ||
sudo apt install -y cppcheck | ||
- name: Run cppcheck | ||
run: | | ||
cppcheck --version | tee cppcheck.log | ||
cppcheck \ | ||
--force \ | ||
--enable=warning,performance,portability \ | ||
--inline-suppr \ | ||
--suppress=unknownMacro:exporters/etw/include/opentelemetry/exporters/etw/TraceLoggingDynamic.h \ | ||
--language=c++ \ | ||
--std=c++14 \ | ||
-I api/include \ | ||
-I exporters/elasticsearch/include \ | ||
-I exporters/etw/include \ | ||
-I exporters/memory/include \ | ||
-I exporters/ostream/include \ | ||
-I exporters/otlp/include \ | ||
-I exporters/prometheus/include \ | ||
-I exporters/zipkin/include \ | ||
-I ext/include \ | ||
-I opentracing-shim/include \ | ||
-I sdk/include \ | ||
-i build \ | ||
-i test \ | ||
-i third_party \ | ||
-j $(nproc) \ | ||
. 2>&1 | tee --append cppcheck.log | ||
- uses: actions/upload-artifact@v4 | ||
if: success() || failure() | ||
with: | ||
name: Logs (cppcheck) | ||
path: ./cppcheck.log | ||
|
||
- name: Count warnings | ||
run: | | ||
set +e | ||
COUNT=`grep -c -E "\[.+\]" cppcheck.log` | ||
echo "cppcheck reported ${COUNT} warning(s)" | ||
# TODO: uncomment to enforce failing the build | ||
# if [ $COUNT -ne 0 ] ; then exit 1 ; fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Notes on Abseil Variant implementation | ||
|
||
This is a snapshot of Abseil Variant `absl::variant` from Abseil | ||
`v2020-03-03#8`. | ||
This is a snapshot of Abseil Variant | ||
`absl::OTABSL_OPTION_NAMESPACE_NAME::variant` from Abseil `v2020-03-03#8`. |
Oops, something went wrong.