File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,11 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_LIST_DIR})
70
70
71
71
target_link_libraries (test -argo PRIVATE GTest::gtest GTest::gtest_main
72
72
GTest::gmock Argo)
73
+ if (${ARGO_CLANG_TIDY_ENABLE} )
74
+ set_target_properties (
75
+ test -argo PROPERTIES CXX_CLANG_TIDY
76
+ "${CLANG_TIDY_EXE} ;-p;${CMAKE_BINARY_DIR} " )
77
+ endif ()
73
78
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug" )
74
79
message ("Debug build" )
75
80
target_compile_options (test -argo PRIVATE -fprofile-instr-generate
Original file line number Diff line number Diff line change 6
6
template <typename ... Args>
7
7
auto createArgcArgv (Args... args) -> std::tuple<int, std::unique_ptr<char*[]>> {
8
8
const size_t N = sizeof ...(Args);
9
- // char** array = new char*[N];
10
9
auto array = std::make_unique<char *[]>(N);
11
10
size_t i = 0 ;
12
11
(..., (array[i++] = strdup (args)));
You can’t perform that action at this time.
0 commit comments