-
Notifications
You must be signed in to change notification settings - Fork 12.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clang-tidy crash #53177
Comments
@llvm/issue-subscribers-clang-tidy |
@llvm/issue-subscribers-bug |
Update: Running: Does not fail, hence it seems that readability-static-accessed-through-instance causes the issue. |
Using that check would it be possible to create a minimal reproducer. If you can't would you be able to build a debug clang-tidy potentially with sanatizers and provide a stack trace when it crashes |
Ok, I will try if I will have some free time. Hmm... after running
where will I find the clang-tidy binary? Can't find it anywhere... :D Btw. The aforementioned file also crashes clang-tidy-14 and adding
at beginning and the end of the problematic file does not solve the issue either. (the crash report is exactly the same) |
Unfortunately I cannot include the code files as they are propertialy. I found a exact line that causes the problem.
Crash is caused by a line in a file "ProblematicFile.cpp" (I obfuscated the names because the code is propertialy):
class1 is defined in an included header file "Header.h" that as a standalone file was parsed by clang-tidy successfully:
However I was unable to reproduce the crash just from the code I provided here... base_class1 and base_class2 are quite large classes.
P.S.: It crashes with clang-tidy-13 as well... (tested via clangd)
The text was updated successfully, but these errors were encountered: