[clang-tidy] Improve check cert-dcl58-cpp.
authorBalázs Kéri <1.int32@gmail.com>
Thu, 14 Jul 2022 06:37:21 +0000 (08:37 +0200)
committerBalázs Kéri <1.int32@gmail.com>
Thu, 14 Jul 2022 07:04:03 +0000 (09:04 +0200)
commit0e95921bc303a206cc6ae1c21ee90ec223bf9e78
treec83558769dcc63c490fd6b524e296499472681aa
parentcb2c8f694db15c488f46de6db5a7db444a189fc4
[clang-tidy] Improve check cert-dcl58-cpp.

Detect template specializations that should be handled specially.
In some cases it is allowed to extend the `std` namespace with
template specializations.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D129353
clang-tools-extra/clang-tidy/cert/DontModifyStdNamespaceCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/cert/dcl58-cpp.rst
clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/system-header-simulation.h
clang-tools-extra/test/clang-tidy/checkers/cert/dcl58-cpp.cpp