r227465 - Reverting r227453, which adds back the fuzzer library. Now excluding the clang-format fuzzer functionality based on LLVM_USE_SANITIZE_COVERAGE being set or unset.

Aaron Ballman aaron at aaronballman.com
Thu Jan 29 08:58:53 PST 2015


Author: aaronballman
Date: Thu Jan 29 10:58:53 2015
New Revision: 227465

URL: http://llvm.org/viewvc/llvm-project?rev=227465&view=rev
Log:
Reverting r227453, which adds back the fuzzer library. Now excluding the clang-format fuzzer functionality based on LLVM_USE_SANITIZE_COVERAGE being set or unset.

Added:
    cfe/trunk/tools/clang-format/fuzzer/
      - copied from r227452, cfe/trunk/tools/clang-format/fuzzer/
Modified:
    cfe/trunk/tools/clang-format/CMakeLists.txt

Modified: cfe/trunk/tools/clang-format/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-format/CMakeLists.txt?rev=227465&r1=227464&r2=227465&view=diff
==============================================================================
--- cfe/trunk/tools/clang-format/CMakeLists.txt (original)
+++ cfe/trunk/tools/clang-format/CMakeLists.txt Thu Jan 29 10:58:53 2015
@@ -4,13 +4,21 @@ add_clang_executable(clang-format
   ClangFormat.cpp
   )
 
-target_link_libraries(clang-format
+set(CLANG_FORMAT_LIB_DEPS
   clangBasic
   clangFormat
   clangRewrite
   clangToolingCore
   )
 
+target_link_libraries(clang-format
+  ${CLANG_FORMAT_LIB_DEPS}
+  )
+
+if( LLVM_USE_SANITIZE_COVERAGE )
+  add_subdirectory(fuzzer)
+endif()
+
 install(TARGETS clang-format RUNTIME DESTINATION bin)
 install(PROGRAMS clang-format-bbedit.applescript DESTINATION share/clang)
 install(PROGRAMS clang-format-diff.py DESTINATION share/clang)





More information about the cfe-commits mailing list