[llvm-bugs] [Bug 38584] New: clang requires quotes around strings in attributes

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 15 14:28:30 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38584

            Bug ID: 38584
           Summary: clang requires quotes around strings in attributes
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: annagrin at microsoft.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

See following PR for discussion:
https://github.com/Microsoft/GSL/pull/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__

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180815/aea208f9/attachment.html>


More information about the llvm-bugs mailing list