[PATCH] Add checks for MSVC in LLVM_FALLTHROUGH and LLVM_NODISCARD

Thad House via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 7 19:05:16 PDT 2019


MSVC defaults __cplusplus to an old version, which causes the preprocessor
to fallthrough to the clang::xx attribute checks. MSVC see's these and
errors intellisense. This checks for MSVC explicitly, and handles the
attributes for it separately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190407/45a99aef/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-checks-for-MSVC-in-LLVM_FALLTHROUGH-and-LLVM_NOD.patch
Type: application/octet-stream
Size: 1834 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190407/45a99aef/attachment-0001.obj>


More information about the llvm-commits mailing list