Convert CRLF to LF.

I accidentally let some Windows line endings slip in.  This is a
good reminder for me to use core.eol=lf.

llvm-svn: 232560
This commit is contained in:
Zachary Turner 2015-03-17 22:51:21 +00:00
parent 0729afa4a6
commit 85bc48ca74
8 changed files with 95 additions and 95 deletions

View File

@ -1,23 +1,23 @@
add_custom_target(LLDBUnitTests)
set_target_properties(LLDBUnitTests PROPERTIES FOLDER "LLDB tests")
include_directories(${LLDB_SOURCE_ROOT})
set(LLDB_GTEST_COMMON_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/gtest_common.h)
if (MSVC)
list(APPEND LLVM_COMPILE_FLAGS /FI ${LLDB_GTEST_COMMON_INCLUDE})
else ()
list(APPEND LLVM_COMPILE_FLAGS -include ${LLDB_GTEST_COMMON_INCLUDE})
endif ()
# add_lldb_unittest(test_dirname file1.cpp file2.cpp)
#
# Will compile the list of files together and link against
function(add_lldb_unittest test_name)
add_unittest(LLDBUnitTests ${test_name} ${ARGN})
endfunction()
add_subdirectory(Host)
add_subdirectory(Interpreter)
add_subdirectory(Plugins)
add_subdirectory(Utility)
add_custom_target(LLDBUnitTests)
set_target_properties(LLDBUnitTests PROPERTIES FOLDER "LLDB tests")
include_directories(${LLDB_SOURCE_ROOT})
set(LLDB_GTEST_COMMON_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/gtest_common.h)
if (MSVC)
list(APPEND LLVM_COMPILE_FLAGS /FI ${LLDB_GTEST_COMMON_INCLUDE})
else ()
list(APPEND LLVM_COMPILE_FLAGS -include ${LLDB_GTEST_COMMON_INCLUDE})
endif ()
# add_lldb_unittest(test_dirname file1.cpp file2.cpp)
#
# Will compile the list of files together and link against
function(add_lldb_unittest test_name)
add_unittest(LLDBUnitTests ${test_name} ${ARGN})
endfunction()
add_subdirectory(Host)
add_subdirectory(Interpreter)
add_subdirectory(Plugins)
add_subdirectory(Utility)

View File

@ -1,10 +1,10 @@
add_lldb_unittest(HostTests
SocketAddressTest.cpp
SocketTest.cpp
SocketTestMock.cpp
)
target_link_libraries(HostTests
lldbBase
${PYTHON_LIBRARY}
)
add_lldb_unittest(HostTests
SocketAddressTest.cpp
SocketTest.cpp
SocketTestMock.cpp
)
target_link_libraries(HostTests
lldbBase
${PYTHON_LIBRARY}
)

View File

@ -1,8 +1,8 @@
add_lldb_unittest(InterpreterTests
TestArgs.cpp
)
target_link_libraries(InterpreterTests
lldbInterpreter
${PYTHON_LIBRARY}
)
add_lldb_unittest(InterpreterTests
TestArgs.cpp
)
target_link_libraries(InterpreterTests
lldbInterpreter
${PYTHON_LIBRARY}
)

View File

@ -1 +1 @@
add_subdirectory(Process)
add_subdirectory(Process)

View File

@ -1,3 +1,3 @@
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
add_subdirectory(Linux)
endif()
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
add_subdirectory(Linux)
endif()

View File

@ -1,9 +1,9 @@
add_lldb_unittest(ProcessLinuxTests
ThreadStateCoordinatorTest.cpp
ThreadStateCoordinatorTestMock.cpp
)
target_link_libraries(ProcessLinuxTests
lldbBase
${PYTHON_LIBRARY}
)
add_lldb_unittest(ProcessLinuxTests
ThreadStateCoordinatorTest.cpp
ThreadStateCoordinatorTestMock.cpp
)
target_link_libraries(ProcessLinuxTests
lldbBase
${PYTHON_LIBRARY}
)

View File

@ -1,9 +1,9 @@
add_lldb_unittest(UtilityTests
StringExtractorTest.cpp
UriParserTest.cpp
)
target_link_libraries(UtilityTests
lldbBase
${PYTHON_LIBRARY}
)
add_lldb_unittest(UtilityTests
StringExtractorTest.cpp
UriParserTest.cpp
)
target_link_libraries(UtilityTests
lldbBase
${PYTHON_LIBRARY}
)

View File

@ -1,32 +1,32 @@
//===-- gtest_common.h ------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#if defined(LLDB_GTEST_COMMON_H)
#error "gtest_common.h should not be included manually."
#else
#define LLDB_GTEST_COMMON_H
#endif
// This header file is force included by all of LLDB's unittest compilation
// units. Be very leary about putting anything in this file.
#if defined(_MSC_VER) && (_HAS_EXCEPTIONS == 0)
// MSVC's STL implementation tries to work well with /EHs-c- and
// _HAS_EXCEPTIONS=0. But <thread> in particular doesn't work with it, because
// it relies on <concrt.h> which tries to throw an exception without checking
// for _HAS_EXCEPTIONS=0. This causes the linker to require a definition of
// __uncaught_exception(), but the STL doesn't define this function when
// _HAS_EXCEPTIONS=0. The workaround here is to just provide a stub
// implementation to get it to link.
inline bool
__uncaught_exception()
{
return true;
}
#endif
//===-- gtest_common.h ------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#if defined(LLDB_GTEST_COMMON_H)
#error "gtest_common.h should not be included manually."
#else
#define LLDB_GTEST_COMMON_H
#endif
// This header file is force included by all of LLDB's unittest compilation
// units. Be very leary about putting anything in this file.
#if defined(_MSC_VER) && (_HAS_EXCEPTIONS == 0)
// MSVC's STL implementation tries to work well with /EHs-c- and
// _HAS_EXCEPTIONS=0. But <thread> in particular doesn't work with it, because
// it relies on <concrt.h> which tries to throw an exception without checking
// for _HAS_EXCEPTIONS=0. This causes the linker to require a definition of
// __uncaught_exception(), but the STL doesn't define this function when
// _HAS_EXCEPTIONS=0. The workaround here is to just provide a stub
// implementation to get it to link.
inline bool
__uncaught_exception()
{
return true;
}
#endif