Skip to content

Add all possible UndefinedBehaviorSanitizer flags in Clang #2863

@mathbunnyru

Description

@mathbunnyru

There are additional flags for Clang when running with UndefinedBehaviorSanitizer

https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html

-fsanitize=undefined: All of the checks listed above other than float-divide-by-zero, unsigned-integer-overflow, implicit-conversion, local-bounds, vptr and the nullability-* group of checks.

We should:

  • either enable all additional flags, all comment why we didn't add them-
  • add a link to docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions