Skip to content

Commit 7290ef3

Browse files
committed
check tests by clang-tidy
1 parent 4b5064c commit 7290ef3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_LIST_DIR})
7070

7171
target_link_libraries(test-argo PRIVATE GTest::gtest GTest::gtest_main
7272
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()
7378
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
7479
message("Debug build")
7580
target_compile_options(test-argo PRIVATE -fprofile-instr-generate

tests/TestHelper.h

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
template <typename... Args>
77
auto createArgcArgv(Args... args) -> std::tuple<int, std::unique_ptr<char*[]>> {
88
const size_t N = sizeof...(Args);
9-
// char** array = new char*[N];
109
auto array = std::make_unique<char*[]>(N);
1110
size_t i = 0;
1211
(..., (array[i++] = strdup(args)));

0 commit comments

Comments
 (0)