| Issue |
107846
|
| Summary |
[clang-tidy] add_new_check.py fails with "TypeError: 'type' object is not subscriptable"
|
| Labels |
clang-tidy
|
| Assignees |
|
| Reporter |
carlosgalvezp
|
```cpp
$ ./clang-tools-extra/clang-tidy/add_new_check.py bugprone bit-cast-pointers --standard=c++20
Updating ./clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt...
Creating ./clang-tools-extra/clang-tidy/bugprone/BitCastPointersCheck.h...
Creating ./clang-tools-extra/clang-tidy/bugprone/BitCastPointersCheck.cpp...
Updating ./clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp...
Updating clang-tools-extra/docs/ReleaseNotes.rst...
Creating clang-tools-extra/test/clang-tidy/checkers/bugprone/bit-cast-pointers.cpp...
Creating clang-tools-extra/docs/clang-tidy/checks/bugprone/bit-cast-pointers.rst...
Traceback (most recent call last):
File "./clang-tools-extra/clang-tidy/add_new_check.py", line 795, in <module>
main()
File "./clang-tools-extra/clang-tidy/add_new_check.py", line 790, in main
update_checks_list(clang_tidy_path)
File "./clang-tools-extra/clang-tidy/add_new_check.py", line 514, in update_checks_list
def process_doc(doc_file: Tuple[str, str]) -> Tuple[str, Optional[re.Match[str]]]:
TypeError: 'type' object is not subscriptable
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs