[PATCH] D70285: Wrap C APIs with pragmas enforcing -Werror=strict-prototypes
Duncan P. N. Exon Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 14 17:58:28 PST 2019
dexonsmith created this revision.
dexonsmith added reviewers: aaron.ballman, Bigcheese, jkorous-apple.
Herald added subscribers: ributzka, arphaman, steven_wu, hiraditya, mehdi_amini.
Herald added a reviewer: deadalnix.
Herald added a project: LLVM.
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
Files:
clang/include/clang-c/BuildSystem.h
clang/include/clang-c/CXCompilationDatabase.h
clang/include/clang-c/CXErrorCode.h
clang/include/clang-c/CXString.h
clang/include/clang-c/Documentation.h
clang/include/clang-c/ExternC.h
clang/include/clang-c/FatalErrorHandler.h
clang/include/clang-c/Index.h
clang/include/clang-c/Platform.h
llvm/include/llvm-c/Analysis.h
llvm/include/llvm-c/BitReader.h
llvm/include/llvm-c/BitWriter.h
llvm/include/llvm-c/Comdat.h
llvm/include/llvm-c/Core.h
llvm/include/llvm-c/DebugInfo.h
llvm/include/llvm-c/Disassembler.h
llvm/include/llvm-c/Error.h
llvm/include/llvm-c/ErrorHandling.h
llvm/include/llvm-c/ExecutionEngine.h
llvm/include/llvm-c/ExternC.h
llvm/include/llvm-c/IRReader.h
llvm/include/llvm-c/Initialization.h
llvm/include/llvm-c/LinkTimeOptimizer.h
llvm/include/llvm-c/Linker.h
llvm/include/llvm-c/Object.h
llvm/include/llvm-c/OrcBindings.h
llvm/include/llvm-c/Remarks.h
llvm/include/llvm-c/Support.h
llvm/include/llvm-c/Target.h
llvm/include/llvm-c/TargetMachine.h
llvm/include/llvm-c/Transforms/AggressiveInstCombine.h
llvm/include/llvm-c/Transforms/Coroutines.h
llvm/include/llvm-c/Transforms/IPO.h
llvm/include/llvm-c/Transforms/InstCombine.h
llvm/include/llvm-c/Transforms/PassManagerBuilder.h
llvm/include/llvm-c/Transforms/Scalar.h
llvm/include/llvm-c/Transforms/Utils.h
llvm/include/llvm-c/Transforms/Vectorize.h
llvm/include/llvm-c/Types.h
llvm/include/llvm-c/lto.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70285.229431.patch
Type: text/x-patch
Size: 27843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191115/677b8ae8/attachment.bin>
More information about the llvm-commits
mailing list