Commit Graph

8 Commits

Author SHA1 Message Date
Marc Alff 6dbfdb52eb
[Code health] include-what-you-use cleanup, part 2 (#2704) 2024-07-06 17:16:02 +02:00
Marc Alff c42dcca9f8
[CI] Upgrade to clang-format 18 (#2684) 2024-05-29 22:01:06 +02:00
Marc Alff 1dc810d882
Fix #1649 (#1658)
Fixed some warnings reported by clang.

-Wnewline-eof
  no newline at end of file

-Wc++98-compat-extra-semi
  extra ';' outside of a function is incompatible with C++98

-Winconsistent-missing-destructor-override
  '~XXX' overrides a destructor but is not marked 'override'

-Wheader-hygiene
  using namespace directive in global context in header

-Wunused-parameter
  unused parameter

Fixed some warnings reported by gcc.

-Werror=missing-field-initializers
  missing initializer for member ‘opentelemetry::v1::sdk::trace::SamplingResult::trace_state’

-Werror=unused-variable
  unused variable

-Werror=unused-parameter
  unused parameter
2022-10-05 11:41:58 -07:00
Max Golovanov 8bf9bbcb62
Improve C++20 detection with CMake 3.12+ and gcc-9/c++20 support fixes (#860) 2021-06-16 23:00:15 +05:30
Max Golovanov d0e73c87c4
Switch from MPark variant to `absl::variant` as default (#771) 2021-06-04 23:59:02 +05:30
Lalit Kumar Bhasin 3fa6525f40
Add missing Copyright headers (#754) 2021-05-25 11:37:08 +05:30
Tom Tan 414a7314f7
Make ContextValue default constructible with monostate (#731) 2021-05-13 22:38:35 +05:30
Max Golovanov 1e7b9d8a95
Using STD library for API surface (#374) 2020-12-22 11:27:48 +05:30