Created attachment 24575
Visual Studio Call Stack
I'm building clang-tidy 11.1.0 on Windows using VS2017, 32-bit and with enabled
LTCG.
clang-tidy crashes with an access violation on almost any file as soon as
"modernize-pass-by-value" is enabled. This happens even with a totally empty
file:
clang-tidy "-config={Checks: '-*,modernize-pass-by-value'}" empty.cpp
The crash only occurs in Release configuration with LTCG enabled. I know LTCG
is not enabled in the repository, my guess is there is some bug that only
happens to be detected in this specific configuration.
Find attached the best call stack I could get from Visual Studio.
The "cxxCtorInitializer" matcher is used in the method
"PassByValueCheck::registerMatchers" (clang-
tidy\modernize\PassByValueCheck.cpp). If I remove all the nested matchers from
this expression, the access violation disappears. So it is somehow related to
this code, but I don't see any obvious errors in there.
CallStack.txt
(2900 bytes, text/plain)