Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e58a159

Browse filesBrowse files
committed
Changed tidy to actually parse include dirs
1 parent abb2a0e commit e58a159
Copy full SHA for e58a159

File tree

2 files changed

+3
-4
lines changed
Filter options

2 files changed

+3
-4
lines changed

‎CMakeLists.txt

Copy file name to clipboardExpand all lines: CMakeLists.txt
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ file(GLOB_RECURSE ALL_CXX_SOURCE_FILES
1313

1414
_Cxx11()
1515
_ClangFormat(UnicodeHpp ${ALL_CXX_SOURCE_FILES})
16-
_ClangTidy(UnicodeHpp ${ALL_CXX_SOURCE_FILES})
16+
_ClangTidy(UnicodeHpp ${ALL_CXX_SOURCE_FILES} "-I${PROJECT_SOURCE_DIR}/ext")
1717

1818
# GCC
19-
if(CMAKE_COMPILER_IS_GNUCXX AND NOT COMPILER_FLAGS_SET)
20-
set(COMPILER_FLAGS_SET ON)
19+
if(CMAKE_COMPILER_IS_GNUCXX)
2120
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Weffc++")
2221
endif()
2322

‎cmake/clang-tools.cmake

Copy file name to clipboardExpand all lines: cmake/clang-tools.cmake
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ macro(_ClangTidy TIDY_TARGET_NAME)
7272
# Go through the parameters and figure out which are code files and which are include directories
7373
set(params "${ARGN}")
7474
foreach(param IN LISTS params)
75-
string(SUBSTRING param 0 2 TIDY_TEMP_STRING)
75+
string(SUBSTRING ${param} 0 2 TIDY_TEMP_STRING)
7676
if(TIDY_TEMP_STRING STREQUAL "-I")
7777
set(TIDY_INCLUDE_DIRS "${TIDY_INCLUDE_DIRS}" "${param}")
7878
else()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.