Skip to content

Commit 78e7d95

Browse files
committed
[clang-format][NFC] Use CLANG_SOURCE_DIR in CMakeLists
1 parent f1595ec commit 78e7d95

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

clang/lib/Format/CMakeLists.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ add_clang_library(clangFormat
3333
file(GLOB_RECURSE files
3434
*.cpp
3535
*.h
36-
../../include/clang/Format/*.h
37-
../../tools/clang-format/*.cpp
38-
../../unittests/Format/*.cpp
39-
../../unittests/Format/*.h
36+
${CLANG_SOURCE_DIR}/include/clang/Format/*.h
37+
${CLANG_SOURCE_DIR}/tools/clang-format/*.cpp
38+
${CLANG_SOURCE_DIR}/unittests/Format/*.cpp
39+
${CLANG_SOURCE_DIR}/unittests/Format/*.h
4040
)
4141

4242
set(check_format_depends)
@@ -46,8 +46,8 @@ foreach (file IN LISTS files)
4646
COMMAND clang-format ${file} | diff -u ${file} -
4747
VERBATIM
4848
COMMENT "Checking format of ${file}..."
49-
)
50-
list(APPEND check_format_depends "clang-format-check-format${i}")
49+
)
50+
list(APPEND check_format_depends clang-format-check-format${i})
5151

5252
math(EXPR i ${i}+1)
5353
endforeach ()

0 commit comments

Comments
 (0)