Skip to content

[clang-tidy][CI] Add validation of clang-tidy docs. #165999

@vbvictor

Description

@vbvictor

In clang-tidy, we have some established rules of .rst files formatting: 80-characters limits, trailing white spaces, missing or excessive newline at the end, indentation of lists, etc.
Some files in "alphabetical" format (e.g. there are N entries should be in alphabetical order).
Examples of these files are:
https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/docs/clang-tidy/checks/list.rst?plain=1
https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/docs/ReleaseNotes.rst?plain=1

We need a test or a CI-job that will check our .rst files according to those rules.

I suspect it should be a simple python script that we could run as a lit test, like this: #118154

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-tidyenhancementImproving things as opposed to bug fixing, e.g. new or missing featureinfrastructureBugs about LLVM infrastructure

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions