File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -53,3 +53,19 @@ foreach (file IN LISTS files)
53
53
endforeach ()
54
54
55
55
add_custom_target (clang-format-check-format DEPENDS ${check_format_depends} )
56
+
57
+ if (CLANG_INCLUDE_DOCS )
58
+ set (style_options_depends ${CMAKE_CURRENT_BINARY_DIR} /dummy_output )
59
+ set (docs_tools_dir ${CLANG_SOURCE_DIR} /docs/tools )
60
+ add_custom_command (OUTPUT ${style_options_depends}
61
+ COMMAND ${Python3_EXECUTABLE} dump_format_style.py &&
62
+ touch ${style_options_depends}
63
+ WORKING_DIRECTORY ${docs_tools_dir}
64
+ DEPENDS ${CLANG_SOURCE_DIR} /include/clang/Format/Format.h
65
+ ${CLANG_SOURCE_DIR} /include/clang/Tooling/Inclusions/IncludeStyle.h
66
+ ${CLANG_SOURCE_DIR} /docs/ClangFormatStyleOptions.rst
67
+ ${docs_tools_dir} /plurals.txt
68
+ ${docs_tools_dir} /dump_format_style.py
69
+ )
70
+ add_custom_target (clang-format-style-options DEPENDS ${style_options_depends} )
71
+ endif ()
You can’t perform that action at this time.
0 commit comments