• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1set(LLVM_LINK_COMPONENTS support)
2
3if(LLVM_USE_SANITIZE_COVERAGE)
4  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=fuzzer")
5endif()
6
7add_clang_executable(clang-format-fuzzer
8  EXCLUDE_FROM_ALL
9  ClangFormatFuzzer.cpp
10  )
11
12target_link_libraries(clang-format-fuzzer
13  PRIVATE
14  ${CLANG_FORMAT_LIB_DEPS}
15  ${LLVM_LIB_FUZZING_ENGINE}
16  )
17