llvm-project/compiler-rt/lib/interception
George Karpenkov 769124dc5e [sanitizers CMake] NFC Refactor the logic for compiling and generating tests
into a function.

Most CMake configuration under compiler-rt/lib/*/tests have
almost-the-same-but-not-quite functions of the form add_X_[unit]tests
for compiling and running the tests.
Much of the logic is duplicated with minor variations across different
sub-folders.
This can harm productivity for multiple reasons:

For newcomers, resulting CMake files are very large, hard to understand,
and hide the intention of the code.
Changes for enabling certain architectures end up being unnecessarily
large, as they get duplicated across multiple folders.
Adding new sub-projects requires more effort than it should, as a
developer has to again copy-n-paste the configuration, and it's not even
clear from which sub-project it should be copy-n-pasted.
With this change the logic of compile-and-generate-a-set-of-tests is
extracted into a function, which hopefully makes writing and reading
CMake much easier.

Differential Revision: https://reviews.llvm.org/D36116

llvm-svn: 310971
2017-08-15 22:56:10 +00:00
..
tests [sanitizers CMake] NFC Refactor the logic for compiling and generating tests 2017-08-15 22:56:10 +00:00
.clang-format Tell clang-format that (most) sanitizers are written using Google style guide. 2015-11-19 22:11:10 +00:00
CMakeLists.txt [compilter-rt] Add unittests for interception library 2016-07-06 19:15:11 +00:00
interception.h Add NetBSD support in interception.h 2017-08-04 22:27:01 +00:00
interception_linux.cc Reuse interception_linux for NetBSD 2017-08-08 12:10:08 +00:00
interception_linux.h Reuse interception_linux for NetBSD 2017-08-08 12:10:08 +00:00
interception_mac.cc
interception_mac.h Make some pthread_mutex_* and pthread_cond_* interceptors common. 2013-10-16 08:20:31 +00:00
interception_type_test.cc PR16532: work around old GCC bug in interception_type_test.cc 2013-12-05 13:29:46 +00:00
interception_win.cc [winasan] Fix hotpatching ntdll!strcpy for Win10 creators edition 2017-08-08 21:18:36 +00:00
interception_win.h [compiler-rt] Refactor the interception code on windows. 2016-07-11 23:02:18 +00:00