summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-selectany.c
Commit message (Collapse)AuthorAgeFilesLines
* Enable __declspec(selectany) on any platformPiotr Padlewski2017-09-141-0/+2
| | | | | | | | | | | | | | Summary: This feature was disabled probably by mistake in rL300562 This fixes bug https://bugs.llvm.org/show_bug.cgi?id=33285 Reviewers: davide, rnk Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D33852 llvm-svn: 313278
* mingw-w64: enable support for __declspec(selectany)Martell Malone2017-04-181-1/+2
| | | | | | | | | | Add selectany as a GCC spelling for mingw-w64 Reviewers: rnk Differential revision: https://reviews.llvm.org/D32083 llvm-svn: 300562
* [MS] Silence -Wextern-init on const selectany variablesReid Kleckner2016-08-181-0/+8
In C, 'extern' is typically used to avoid tentative definitions when declaring variables in headers, but adding an intializer makes it a defintion. This is somewhat confusing, so GCC and Clang both warn on it. In C++, 'extern' is often used to give implictly static 'const' variables external linkage, so don't warn in that case. If selectany is present, this might be header code intended for C and C++ inclusion, so apply the C++ rules. llvm-svn: 279116
OpenPOWER on IntegriCloud