[clang-tidy] Support SystemHeaders in .clang-tidy
authorCarlos Galvez <carlosgalvezp@gmail.com>
Thu, 4 May 2023 19:47:41 +0000 (19:47 +0000)
committerCarlos Galvez <carlosgalvezp@gmail.com>
Sun, 7 May 2023 16:36:30 +0000 (16:36 +0000)
commit26f476286fbcb5cde51176abb2d3c6c0986bc410
treeec364da0c266e3b9ce6dae9d4b322e9a42f46eb3
parentbd89b1f1eab2897aafb00980874326003637c18e
[clang-tidy] Support SystemHeaders in .clang-tidy

A previous patch update the clang-tidy documentation
incorrectly claiming that SystemHeaders can be provided
in the .clang-tidy configuration file.

This patch adds support for it, together with tests.

Differential Revision: https://reviews.llvm.org/D149899
clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/index.rst
clang-tools-extra/test/clang-tidy/infrastructure/Inputs/system-headers/system_header.h [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/infrastructure/system-headers.cpp [new file with mode: 0644]
clang-tools-extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp