[all-commits] [llvm/llvm-project] 931d20: [docs][clang-format] warn on \code block indentati...
Ludovic J via All-commits
all-commits at lists.llvm.org
Sat Oct 30 09:50:49 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 931d20c5db05fc2e2f4071cc086fa3ff1b4aebdd
https://github.com/llvm/llvm-project/commit/931d20c5db05fc2e2f4071cc086fa3ff1b4aebdd
Author: Ludovic Jozeau <federandink at gmail.com>
Date: 2021-10-30 (Sat, 30 Oct 2021)
Changed paths:
M clang/docs/ClangFormatStyleOptions.rst
M clang/docs/tools/dump_format_style.py
M clang/include/clang/Format/Format.h
Log Message:
-----------
[docs][clang-format] warn on \code block indentation error
There is an indentation issue in Format.h causing the html to not render correctly
It's a `\code` block in the documentation of SpacesInLineComment
- fix intentation of `SpacesInLineComment`
- warn on indentation error
- also warn on `\code` `\endcode` mismatch
- generate precise warnings
- fix some minor and style issues:
- avoid confusion with the built-in `type` function
- fix wrong print on `os.sys.stderr` (instead of `sys.stderr`)
- use `with as` pattern for files
Reviewed By: MyDeveloperDay, HazardyKnusperkeks
Differential Revision: https://reviews.llvm.org/D112572
More information about the All-commits
mailing list