forked from qt-creator/qt-creator
CppEditor: Respect whitespace in operator names for more quick fixes
* Affected quick fixes: InsertDefFromDecl, MoveFuncDefOutside * Fix also reformating pointer declaration of operator functions for qualified name ids Change-Id: I6a7578f496221557d103f5fdbb5dacc9540ee779 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -349,9 +349,13 @@ void CppToolsPlugin::test_format_pointerdeclaration_in_simpledeclarations_data()
|
||||
<< source << stripCursor(source);
|
||||
|
||||
// Respect white space within operator names
|
||||
QTest::newRow("operators")
|
||||
QTest::newRow("operators1")
|
||||
<< "class C { C@&operator = (const C &); };"
|
||||
<< "class C { C & operator = (const C &); };";
|
||||
|
||||
QTest::newRow("operators2")
|
||||
<< "C &C::operator = (const C &) {}"
|
||||
<< "C & C::operator = (const C &) {}";
|
||||
}
|
||||
|
||||
void CppToolsPlugin::test_format_pointerdeclaration_in_controlflowstatements()
|
||||
|
||||
Reference in New Issue
Block a user