mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-16 13:00:40 +00:00

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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359179 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
503 B
CMake
21 lines
503 B
CMake
add_definitions(-DGTEST_LANG_CXX11=1)
|
|
add_definitions(-DGTEST_HAS_TR1_TUPLE=0)
|
|
|
|
add_llvm_library(LLVMTestingSupport
|
|
Annotations.cpp
|
|
Error.cpp
|
|
SupportHelpers.cpp
|
|
|
|
BUILDTREE_ONLY
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/Testing/Support
|
|
|
|
LINK_COMPONENTS
|
|
Support
|
|
)
|
|
|
|
include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include)
|
|
include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googlemock/include)
|
|
target_link_libraries(LLVMTestingSupport PRIVATE gtest)
|