forked from qt-creator/qt-creator
CppEditor: Tweak test infrastructure
... so we can re-use the "follow symbol" test cases with clangd. Call Creator like this (clangd needs to be version 12 or later): $ QTC_CLANGD=<path to clangd> qtcreator -test 'CppEditor,*Follow*,*Switch*' -test 'ClangCodeModel,*dummy*' During testing, some invalid code in the test cases was uncovered and fixed. Change-Id: I9dc650fdba2a27600e6a550420ee873f6fb31d23 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -7185,7 +7185,7 @@ void CppEditorPlugin::test_quickfix_ExtractFunction_data()
|
||||
"}\n"
|
||||
"void NS::C::f(NS::C &c)\n"
|
||||
"{\n"
|
||||
" @{start}C *c = &c;@{end}\n"
|
||||
" @{start}C *c2 = &c;@{end}\n"
|
||||
"}\n")
|
||||
<< _("namespace NS {\n"
|
||||
"class C {\n"
|
||||
@@ -7197,7 +7197,7 @@ void CppEditorPlugin::test_quickfix_ExtractFunction_data()
|
||||
"}\n"
|
||||
"inline void NS::C::extracted(NS::C &c)\n"
|
||||
"{\n"
|
||||
" C *c = &c;\n"
|
||||
" C *c2 = &c;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"void NS::C::f(NS::C &c)\n"
|
||||
|
||||
Reference in New Issue
Block a user