Skip to content

Commit

Permalink
[clang-format][NFC] Use CLANG_SOURCE_DIR in CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
owenca committed Oct 25, 2024
1 parent f1595ec commit 78e7d95
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions clang/lib/Format/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ add_clang_library(clangFormat
file(GLOB_RECURSE files
*.cpp
*.h
../../include/clang/Format/*.h
../../tools/clang-format/*.cpp
../../unittests/Format/*.cpp
../../unittests/Format/*.h
${CLANG_SOURCE_DIR}/include/clang/Format/*.h
${CLANG_SOURCE_DIR}/tools/clang-format/*.cpp
${CLANG_SOURCE_DIR}/unittests/Format/*.cpp
${CLANG_SOURCE_DIR}/unittests/Format/*.h
)

set(check_format_depends)
Expand All @@ -46,8 +46,8 @@ foreach (file IN LISTS files)
COMMAND clang-format ${file} | diff -u ${file} -
VERBATIM
COMMENT "Checking format of ${file}..."
)
list(APPEND check_format_depends "clang-format-check-format${i}")
)
list(APPEND check_format_depends clang-format-check-format${i})

math(EXPR i ${i}+1)
endforeach ()
Expand Down

0 comments on commit 78e7d95

Please sign in to comment.