[PATCH] D68187: [libclang] Use strict prototypes in header
Aaron Puchert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 28 16:09:23 PDT 2019
aaronpuchert created this revision.
aaronpuchert added reviewers: aaron.ballman, arphaman, ddunbar, jkorous.
Herald added subscribers: cfe-commits, dexonsmith.
Herald added a project: clang.
When included in a C program, these function declarations are treated as
K&R declarations, which conveys no information about the number of
arguments of the function. A function with no arguments has to be
declared with parameter-type-list "void".
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D68187
Files:
clang/include/clang-c/FatalErrorHandler.h
Index: clang/include/clang-c/FatalErrorHandler.h
===================================================================
--- clang/include/clang-c/FatalErrorHandler.h
+++ clang/include/clang-c/FatalErrorHandler.h
@@ -18,14 +18,14 @@
* Installs error handler that prints error message to stderr and calls abort().
* Replaces currently installed error handler (if any).
*/
-void clang_install_aborting_llvm_fatal_error_handler();
+void clang_install_aborting_llvm_fatal_error_handler(void);
/**
* Removes currently installed error handler (if any).
* If no error handler is intalled, the default strategy is to print error
* message to stderr and call exit(1).
*/
-void clang_uninstall_llvm_fatal_error_handler();
+void clang_uninstall_llvm_fatal_error_handler(void);
#ifdef __cplusplus
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68187.222307.patch
Type: text/x-patch
Size: 804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190928/3f97c1d2/attachment.bin>
More information about the cfe-commits
mailing list