Skip to content

Commit 1aa97ef

Browse files
Address feedback
1 parent 22cdeaf commit 1aa97ef

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

clang/docs/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,13 @@ if (LLVM_ENABLE_SPHINX)
143143
gen_rst_file_from_td(DiagnosticsReference.rst -gen-diag-docs ../include/clang/Basic/Diagnostic.td "${docs_targets}")
144144
gen_rst_file_from_td(ClangCommandLineReference.rst -gen-opt-docs ../include/clang/Driver/ClangOptionDocs.td "${docs_targets}")
145145

146+
set (dump_format_style ${CLANG_SOURCE_DIR}/docs/tools/dump_format_style.py)
146147
add_custom_target(clang-format-style-options
147-
COMMAND "${Python3_EXECUTABLE}" "${CLANG_SOURCE_DIR}/docs/tools/dump_format_style.py"
148+
COMMAND "${Python3_EXECUTABLE}" "${dump_format_style}"
148149
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
149150
DEPENDS "${CLANG_SOURCE_DIR}/include/clang/Format/Format.h"
150151
"${CLANG_SOURCE_DIR}/include/clang/Tooling/Inclusions/IncludeStyle.h"
151-
"${CLANG_SOURCE_DIR}/docs/tools/dump_format_style.py"
152+
"${dump_format_style}"
152153
copy-clang-rst-docs
153154
)
154155

clang/docs/ClangFormatStyleOptions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ the configuration (without a prefix: ``Auto``).
179179
subdirectories. This is also possible through the command line, e.g.:
180180
``--style={BasedOnStyle: InheritParentConfig, ColumnLimit: 20}``
181181

182-
.. This section of the file is automatically generated by the
183-
dump_format_style.py tool and should be updated manually.
184182
.. START_FORMAT_STYLE_OPTIONS
185-
183+
..
184+
This section of the file is automatically generated by the
185+
dump_format_style.py tool and should be updated manually.
186186
.. END_FORMAT_STYLE_OPTIONS
187187
188188
Adding additional style options

0 commit comments

Comments
 (0)