[clang-tidy] Fix minor bug in add_new_check.py
authorChris Cotter <ccotter14@bloomberg.net>
Thu, 5 Jan 2023 15:28:43 +0000 (15:28 +0000)
committerCarlos Galvez <carlosgalvezp@gmail.com>
Thu, 5 Jan 2023 15:28:57 +0000 (15:28 +0000)
commit210b731c01b020693aa8f53231c659ff5f60149e
tree84c0bb85127964d69e1ba91bf385a1522413440f
parent53075f8f4ef03905fed6db86841361621a02a9be
[clang-tidy] Fix minor bug in add_new_check.py

While rebuilding the list of checks in add_new_check.py,
check is a file is a subdirectory before traversing it.

Test plan: Ran `./add_new_check.py --update-docs` and confirmed the list.rst file was unchanged.

Reviewed By: carlosgalvezp

Differential Revision: https://reviews.llvm.org/D140772
clang-tools-extra/clang-tidy/add_new_check.py
clang-tools-extra/docs/ReleaseNotes.rst