llvm-project/libcxx
Azat Khuzhin 6340f890bb [libc++] Fix extern C for __sanitizer_annotate_contiguous_container() (for gcc)
gcc supports it only at the beginning:

    $ g++ -o /dev/null -c /tmp/test_extern.cpp
    $ cat /tmp/test_extern.cpp
    extern "C" __attribute__ ((__visibility__("default"))) int foo();

Otherwise:

    $ g++ -o /dev/null -c /tmp/test_extern.cpp
    /tmp/test_extern.cpp:1:52: error: expected unqualified-id before string constant
        1 | __attribute__ ((__visibility__("default"))) extern "C" int foo();
          |                                                    ^~~
    $ cat /tmp/test_extern.cpp
    __attribute__ ((__visibility__("default"))) extern "C" int foo();

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D93316
2020-12-17 16:20:24 -05:00
..
benchmarks [runtimes] Revert the libc++ __config_site change 2020-10-23 09:41:48 -04:00
cmake [libc++] Clarify how we pick the typeinfo comparison 2020-11-18 16:58:45 -05:00
docs [libc++] [P1164] [C++20] Make fs::create_directory() error if there is already a non-directory. 2020-12-10 08:40:27 +01:00
include [libc++] Fix extern C for __sanitizer_annotate_contiguous_container() (for gcc) 2020-12-17 16:20:24 -05:00
lib [libc++] Use TARGET_FILE instead of TARGET_SONAME_FILE when generating ABI lists 2020-12-11 12:12:40 -05:00
src [libc++] [P1164] [C++20] Make fs::create_directory() error if there is already a non-directory. 2020-12-10 08:40:27 +01:00
test [libc++] Use consistent declaration for main() in test 2020-12-15 17:34:06 -05:00
utils [libc++] Fix CI Dockerfile 2020-12-16 17:01:21 -05:00
www [libc++] [docs] Migrate C++ status pages to RestructuredText (RST). 2020-11-26 10:01:09 +01:00
.clang-format
.gitignore [libcxx] Fix .gitignore to not exclude test directories 2020-03-25 17:52:23 -07:00
CMakeLists.txt [libc++] [libc++abi] Use C++20 standard. 2020-11-22 15:57:25 +01: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