diff options
author | Azat Khuzhin <a3at.mail@gmail.com> | 2020-12-17 16:19:50 -0500 |
---|---|---|
committer | Louis Dionne <ldionne.2@gmail.com> | 2020-12-17 16:20:24 -0500 |
commit | 6340f890bb86b6ec1e72047d4c4560ee0dfe6d90 (patch) | |
tree | bd36640653cc9d9e0e8de132b7a0c6eb37a9f87f /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | f710bb7063b232be1cffc7a0f0f56606d7bff2ad (diff) | |
download | llvm-6340f890bb86b6ec1e72047d4c4560ee0dfe6d90.zip llvm-6340f890bb86b6ec1e72047d4c4560ee0dfe6d90.tar.gz llvm-6340f890bb86b6ec1e72047d4c4560ee0dfe6d90.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions