llvm-project/libcxx
Martin Storsjö c793f68d9b [libcxx] Don't use dllimport for a static member in a template
This fixes clang warnings (that are treated as errors when running
the test suite):

libcxx/include/string:4409:59: error: definition of dllimport static field [-Werror,-Wdllimport-static-field-def]
               basic_string<_CharT, _Traits, _Allocator>::npos;

The warning is normally not visible as long as the libc++ headers
are treated as system headers.

The same construct is always an error in MSVC.

(One _LIBCPP_FUNC_VIS was added in
2d8f23f571, which broke DLL builds.
59919c4d6b fixed this by adding another
_LIBCPP_FUNC_VIS on the declaration for consistency, but the underlying
issue remained, that one can't use dllimport here.)

Differential Revision: https://reviews.llvm.org/D97168
2021-03-04 08:55:27 +02:00
..
benchmarks Revert "[libc++] Require C++20 to build the benchmarks." 2021-02-09 19:59:34 +01:00
cmake [SystemZ][ZOS] Prefer -nostdlib++ as opposed to -nodefaultlibs when building c++ libraries 2021-02-16 18:42:14 +00:00
docs [libc++] Add bind_front function (P0356R5). 2021-03-02 16:18:06 -08:00
include [libcxx] Don't use dllimport for a static member in a template 2021-03-04 08:55:27 +02:00
lib [libc++] Implement format_error. 2021-01-28 18:02:53 +01:00
src [libc++] Use generator expression to simplify the CMake code 2021-03-03 12:59:51 -05:00
test [libcxx] adds concept `std::assignable_from` 2021-03-03 22:41:55 -08:00
utils [libc++] Temporary hack: disable Apple back-deployment testing 2021-03-03 17:02:48 -05:00
www [Branch-Rename] Fix some links 2021-02-01 16:43:21 +05:30
.clang-format
.gitignore [libcxx] Fix .gitignore to not exclude test directories 2020-03-25 17:52:23 -07:00
CMakeLists.txt [libcxx] Enable filesystem by default for mingw targets 2021-02-20 01:09:10 +02:00
CREDITS.TXT [libcxx] Adds [concept.same] 2020-04-08 18:00:13 -04:00
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
TODO.TXT [libc++][NFC] Remove outdated TODO item 2020-07-08 13:04:33 -04:00
appveyor-reqs-install.cmd Attempt to upgrade compiler used by appveyor builds 2019-04-03 20:40:01 +00:00
appveyor.yml disable appveyor config for MSVC 2015 2019-04-03 20:36:51 +00:00