Open Quuxplusone opened 4 years ago
Attached source-file-cpp11.cpp
(934700 bytes, text/x-c++src): Preprocessed C++ input
I've narrowed the crash down to enabling of three rules:
- clang-analyzer-osx.cocoa.RetainCount,
- clang-analyzer-osx.cocoa.RetainCountBase, and
- clang-analyzer-osx.OSObjectRetainCount.
When all three rules are disabled, the crash does not occur.
To reproduce, download the attached source file and run either clang-tidy v9 or
v10 like so...
clang-tidy Downloads/source-file-cpp11.cpp
... and observe that Clang-Tidy crashes.
To show that excluding three of the clang-analyzer-osx rules circumvents the
crash, amend the command...
clang-tidy Downloads/source-file-cpp11.cpp --checks="*,-clang-analyzer-osx.cocoa.RetainCount,-clang-analyzer-osx.cocoa.RetainCountBase,-clang-analyzer-osx.OSObjectRetainCount"
...and observe that Clang-Tidy completes without crashing.
I've updated the name of the issue accordingly.
source-file-cpp11.cpp
(934700 bytes, text/x-c++src)