projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe30eb6
)
[libc++abi] NFC: Simplify extern C declaration
author
Louis Dionne
<ldionne@apple.com>
Wed, 11 Mar 2020 21:21:40 +0000
(17:21 -0400)
committer
Louis Dionne
<ldionne@apple.com>
Wed, 11 Mar 2020 21:56:12 +0000
(17:56 -0400)
It seems to me that abort_message.h is always included in a C++ file, so
it's fine to assume that it's C++ code.
Differential Revision: https://reviews.llvm.org/D76027
libcxxabi/src/abort_message.h
patch
|
blob
|
history
diff --git
a/libcxxabi/src/abort_message.h
b/libcxxabi/src/abort_message.h
index
7cb11f4
..
83f956f
100644
(file)
--- a/
libcxxabi/src/abort_message.h
+++ b/
libcxxabi/src/abort_message.h
@@
-11,16
+11,7
@@
#include "cxxabi.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-_LIBCXXABI_HIDDEN _LIBCXXABI_NORETURN void
+extern "C" _LIBCXXABI_HIDDEN _LIBCXXABI_NORETURN void
abort_message(const char *format, ...) __attribute__((format(printf, 1, 2)));
-#ifdef __cplusplus
-}
#endif
-
-#endif
-