[PATCH] D41475: [sanitizer] Make function declarations C-compatible

Roland McGrath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 20 18:32:00 PST 2017


mcgrathr created this revision.
mcgrathr added a reviewer: phosek.
mcgrathr added a project: Sanitizers.
Herald added subscribers: Sanitizers, cryptoad.

The public sanitizer headers are intended to be usable from either
C++ or C, but they declare no-argument functions with the syntax that
is not a proper prototype declaration in C.  This goes unnoticed until
someone uses -Wsystem-headers.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D41475

Files:
  include/sanitizer/allocator_interface.h
  include/sanitizer/asan_interface.h
  include/sanitizer/common_interface_defs.h
  include/sanitizer/coverage_interface.h
  include/sanitizer/esan_interface.h
  include/sanitizer/hwasan_interface.h
  include/sanitizer/lsan_interface.h
  include/sanitizer/msan_interface.h
  include/sanitizer/scudo_interface.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41475.127813.patch
Type: text/x-patch
Size: 11578 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171221/94829878/attachment.bin>


More information about the llvm-commits mailing list