Skip to content

clang requires quotes around strings in attributes #37932

@llvmbot

Description

@llvmbot
Bugzilla Link 38584
Version unspecified
OS Windows NT
Reporter LLVM Bugzilla Contributor
CC @AaronBallman,@DougGregor

Extended Description

See following PR for discussion:
microsoft/GSL#703

The issue prevents platform-independent suppression of static analysis warnings from CppCoreCheck, for example, i have to define the following macro to use as suppression:

#if defined(_MSC_VER)
#define GSL_SUPPRESS(x) [[gsl::suppress(x)]] 
#else
#if defined(__clang__) 
#define GSL_SUPPRESS(x) [[gsl::suppress("x")]] 
#endif // __clang__

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions