summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/Remarks.h
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2019-11-14 13:57:57 -0800
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2019-11-19 13:18:43 -0800
commit8c48405069085a2c8b6b80816eda99e5dad31fc1 (patch)
treeaf6a315cb0f8eecea89547b692c07964b0238ba1 /llvm/include/llvm-c/Remarks.h
parent3a8104a9ea3d88fb4d0ef17185e420c814757bfd (diff)
downloadbcm5719-llvm-8c48405069085a2c8b6b80816eda99e5dad31fc1.tar.gz
bcm5719-llvm-8c48405069085a2c8b6b80816eda99e5dad31fc1.zip
Wrap C APIs with pragmas enforcing -Werror=strict-prototypes
Force `-Werror=strict-prototypes` so that C API tests fail to compile if we add a non-prototype declaration. This should help avoid regressions like bddecba4b333f7772029b4937d2c34f9f2fda6ca was fixing. https://reviews.llvm.org/D70285 rdar://problem/57203137
Diffstat (limited to 'llvm/include/llvm-c/Remarks.h')
-rw-r--r--llvm/include/llvm-c/Remarks.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm-c/Remarks.h b/llvm/include/llvm-c/Remarks.h
index 5444aebddd6..ffe647a6554 100644
--- a/llvm/include/llvm-c/Remarks.h
+++ b/llvm/include/llvm-c/Remarks.h
@@ -15,14 +15,16 @@
#ifndef LLVM_C_REMARKS_H
#define LLVM_C_REMARKS_H
+#include "llvm-c/ExternC.h"
#include "llvm-c/Types.h"
#ifdef __cplusplus
#include <cstddef>
-extern "C" {
#else
#include <stddef.h>
#endif /* !defined(__cplusplus) */
+LLVM_C_EXTERN_C_BEGIN
+
/**
* @defgroup LLVMCREMARKS Remarks
* @ingroup LLVMC
@@ -337,8 +339,6 @@ extern uint32_t LLVMRemarkVersion(void);
* @} // endgoup LLVMCREMARKS
*/
-#ifdef __cplusplus
-}
-#endif /* !defined(__cplusplus) */
+LLVM_C_EXTERN_C_END
#endif /* LLVM_C_REMARKS_H */
OpenPOWER on IntegriCloud