Skip to content

[CODE HEALTH] clang-tidy reports bugprone-exception-escape warnings in API #3981

@dbarker

Description

@dbarker

clang-tidy reports the following warnings in the API. These methods are all marked noexcept and will result in std::terminate being called if an exception is thrown.


opentelemetry-cpp/api/include/opentelemetry/trace/trace_state.h (4 warnings)

Line Check Message
55 bugprone-exception-escape an exception may be thrown in function 'FromHeader' which should not throw exceptions
118 bugprone-exception-escape an exception may be thrown in function 'Get' which should not throw exceptions
138 bugprone-exception-escape an exception may be thrown in function 'Set' which should not throw exceptions
172 bugprone-exception-escape an exception may be thrown in function 'Delete' which should not throw exceptions

Metadata

Metadata

Assignees

Labels

discussTo discuss in SIG meetingtriage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions