Skip to content

[-Wunsafe-buffer-usage] Do not warn of unsafe buffers in consteval functions #129091

Open
@tsepez

Description

@tsepez

Since such a function is guaranteed to be evaluated at compile time, there should not be a possibility of a run-time buffer overflow. Adding annotations to these functions would thus not improve security.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerconstevalC++20 consteval

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions