open-telemetry / opentelemetry-dotnet-instrumentation

OpenTelemetry .NET Automatic Instrumentation
https://opentelemetry.io
Apache License 2.0
352 stars 90 forks source link

Add static analysis tool for native code #1641

Open pjanotti opened 1 year ago

pjanotti commented 1 year ago

Add a static analysis tool for native code. It will be beneficial to add a tool like clang-tidy or CppCheck to inspect our native code.

Relatest to #1356 which handles the formatting of native code.

pellared commented 1 year ago

We probably could run even both. I remember using CppCheck many years ago and it found serious bugs.

There is also Clang Static Analyzer (usage: here)