You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix some hangs in daca from uninstantiated template classes derived f… (#3133)
* fix some hangs in daca from uninstantiated template classes derived from itself
* remove assertions
* fix another simplifyUsing hang
Co-authored-by: Robert Reif <reif@FX6840>
Copy file name to clipboardExpand all lines: test/testclass.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5546,20 +5546,20 @@ class TestClass : public TestFixture {
5546
5546
}
5547
5547
5548
5548
voidconst61() { // ticket #5606 - don't crash
5549
+
// this code is invalid so a false negative is OK
5549
5550
checkConst("class MixerParticipant : public MixerParticipant {\n"
5550
5551
" int GetAudioFrame();\n"
5551
5552
"};\n"
5552
5553
"int MixerParticipant::GetAudioFrame() {\n"
5553
5554
" return 0;\n"
5554
5555
"}");
5555
-
ASSERT_EQUALS("[test.cpp:4] -> [test.cpp:2]: (performance, inconclusive) Technically the member function 'MixerParticipant::GetAudioFrame' can be static (but you may consider moving to unnamed namespace).\n", errout.str());
5556
5556
5557
+
// this code is invalid so a false negative is OK
5557
5558
checkConst("class MixerParticipant : public MixerParticipant {\n"
5558
5559
" bool InitializeFileReader() {\n"
5559
5560
" printf(\"music\");\n"
5560
5561
" }\n"
5561
5562
"};");
5562
-
ASSERT_EQUALS("[test.cpp:2]: (performance, inconclusive) Technically the member function 'MixerParticipant::InitializeFileReader' can be static (but you may consider moving to unnamed namespace).\n", errout.str());
5563
5563
5564
5564
// Based on an example from SVN source code causing an endless recursion within CheckClass::isConstMemberFunc()
5565
5565
// A more complete example including a template declaration like
0 commit comments