1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-01 05:15:43 +02:00

Fixed a broken test.

This commit is contained in:
Sergey Prigogin 2013-03-15 15:44:52 -07:00
parent 7c31b952e3
commit 20d1ecd441
2 changed files with 4 additions and 7 deletions

View file

@ -771,11 +771,6 @@ public class Scribe {
printComment(); printComment();
currentPosition= scanner.getCurrentPosition(); currentPosition= scanner.getCurrentPosition();
} }
if (pendingSpace) {
addInsertEdit(currentPosition, SPACE);
pendingSpace= false;
needSpace= false;
}
if (startOffset + length < currentPosition) { if (startOffset + length < currentPosition) {
return; // Don't move backwards return; // Don't move backwards
} }

View file

@ -24,13 +24,15 @@ const SimpleStruct simpleStruct = { 1, "mySimple", 0.1232 };
\ \
} }
const SimpleStruct array[] = { { SIZEOF( simpleStruct, num ), const SimpleStruct array[] = { {
SIZEOF( simpleStruct, num ),
#if FOO #if FOO
"foo" "foo"
# else # else
"bar" "bar"
#endif #endif
, 0.5 }, { SIZEOF( simpleStruct, floatNum ), "name", 1.1 } }; , 0.5 }, {
SIZEOF( simpleStruct, floatNum ), "name", 1.1 } };
// single line outside scope // single line outside scope