Is it possible to analyze a C/C++ file in clang-tidy
, while ignoring its syntax/compilation errors?
I have a very big file that has several compilation errors, but I still want to analyze it with clang-tidy
.
I'm getting the following error message:
20 warnings and 20 errors generated.
Error while processing <myfile.c>
error: too many errors emitted, stopping now [clang-diagnostic-error]
I saw that in a smaller file, it is possible to have some syntax errors, but still, issues like index past the end of the array are displayed.
Is there a way to still have my file to be analyzed, despite the errors (like increasing the number of possible errors)?