Skip to content

clang should accept [[gnu::no_sanitize("...")]] spelling #125760

@frobtech

Description

@frobtech

GCC (AFAICT since version 9.1) accepts the no_sanitize attribute in both __attribute__((no_sanitize("..."))) and [[gnu::no_sanitize("...")]] spellings. Clang doesn't accept [[gnu::no_sanitize(...)]] but only [[clang::no_sanitize("...")]] so it's not possible to use modern C++ attribute syntax in source code compatible with both compilers without #ifdefs. Clang should accept both spellings in C++11 attribute syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"extension:gnu

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions