2017-10-28 05:12:28 +08:00
|
|
|
add_definitions(-DGTEST_LANG_CXX11=1)
|
|
|
|
add_definitions(-DGTEST_HAS_TR1_TUPLE=0)
|
|
|
|
|
2017-06-15 00:41:50 +08:00
|
|
|
add_llvm_library(LLVMTestingSupport
|
[Testing] Move clangd::Annotations to llvm testing support
Summary:
Annotations allow writing nice-looking unit test code when one needs
access to locations from the source code, e.g. running code completion
at particular offsets in a file. See comments in Annotations.cpp for
more details on the API.
Also got rid of a duplicate annotations parsing code in clang's code
complete tests.
Reviewers: gribozavr, sammccall
Reviewed By: gribozavr
Subscribers: mgorny, hiraditya, ioeric, MaskRay, jkorous, arphaman, kadircet, jdoerfert, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D59814
llvm-svn: 359179
2019-04-25 18:08:31 +08:00
|
|
|
Annotations.cpp
|
2017-06-15 00:41:50 +08:00
|
|
|
Error.cpp
|
2018-09-06 07:30:17 +08:00
|
|
|
SupportHelpers.cpp
|
2017-06-15 00:41:50 +08:00
|
|
|
|
|
|
|
BUILDTREE_ONLY
|
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/Testing/Support
|
2018-04-08 14:49:17 +08:00
|
|
|
|
|
|
|
LINK_COMPONENTS
|
|
|
|
Support
|
2017-06-15 00:41:50 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include)
|
|
|
|
include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googlemock/include)
|
2018-04-08 14:49:17 +08:00
|
|
|
target_link_libraries(LLVMTestingSupport PRIVATE gtest)
|