Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2011-02-05 15:33:05 -0500
committerSergey Prigogin2011-02-05 15:33:05 -0500
commit7ce55b165bf76bd2c0c9c60137528446e9b7d78d (patch)
tree1710bbb5470b64aa5ccb12508ffa92883a37d14f /core/org.eclipse.cdt.ui.tests/resources/formatter
parentd034f60b19e5559f6aa7fa94ff3839bd03a692de (diff)
downloadorg.eclipse.cdt-7ce55b165bf76bd2c0c9c60137528446e9b7d78d.tar.gz
org.eclipse.cdt-7ce55b165bf76bd2c0c9c60137528446e9b7d78d.tar.xz
org.eclipse.cdt-7ce55b165bf76bd2c0c9c60137528446e9b7d78d.zip
Corrected indentation of constructor initializer lists.
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests/resources/formatter')
-rw-r--r--core/org.eclipse.cdt.ui.tests/resources/formatter/bugs/After.cpp2
-rw-r--r--core/org.eclipse.cdt.ui.tests/resources/formatter/complex/After.cpp4
-rw-r--r--core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp4
-rw-r--r--core/org.eclipse.cdt.ui.tests/resources/formatter/preview/Before.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/resources/formatter/bugs/After.cpp b/core/org.eclipse.cdt.ui.tests/resources/formatter/bugs/After.cpp
index 10b657596f0..171b1c8c6c4 100644
--- a/core/org.eclipse.cdt.ui.tests/resources/formatter/bugs/After.cpp
+++ b/core/org.eclipse.cdt.ui.tests/resources/formatter/bugs/After.cpp
@@ -16,7 +16,7 @@ class AClass: public ABaseClass {
void test2() throw ();
};
AClass::AClass(int x) throw (int) :
- ABaseClass(x) {
+ ABaseClass(x) {
for (int i = 0; i < 12; i++) {
}
}
diff --git a/core/org.eclipse.cdt.ui.tests/resources/formatter/complex/After.cpp b/core/org.eclipse.cdt.ui.tests/resources/formatter/complex/After.cpp
index 6b105eb5244..b393f432023 100644
--- a/core/org.eclipse.cdt.ui.tests/resources/formatter/complex/After.cpp
+++ b/core/org.eclipse.cdt.ui.tests/resources/formatter/complex/After.cpp
@@ -15,8 +15,8 @@ private:
public:
// comment
Complex(float re, float im) :
- // comment
- re(re), im(im) {
+ // comment
+ re(re), im(im) {
}
// comment
float GetRe() {
diff --git a/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp b/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp
index 07d43c21b4d..6560d515aee 100644
--- a/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp
+++ b/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp
@@ -4,8 +4,8 @@
#include <math.h>
class Point {
public:
- Point(double xc, double yc) :
- x(xc), y(yc) {
+ Point(double x, double y) :
+ x(x), y(y) {
}
double distance(const Point& other) const;
int compareX(const Point& other) const;
diff --git a/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/Before.cpp b/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/Before.cpp
index 461ecc0a9cc..e7c206204c9 100644
--- a/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/Before.cpp
+++ b/core/org.eclipse.cdt.ui.tests/resources/formatter/preview/Before.cpp
@@ -2,7 +2,7 @@
* Indentation
*/
#include <math.h>
-class Point {public:Point(double xc, double yc) : x(xc), y(yc) {}double distance(const Point& other) const;int compareX(const Point& other) const;double x;double y;};double Point::distance(const Point& other) const {double dx = x - other.x;double dy = y - other.y;return sqrt(dx * dx + dy * dy);}int Point::compareX(const Point& other) const {if (x < other.x) {return -1;} else if (x > other.x) {return 1;} else {return 0;}}namespace FOO {int foo(int bar) const {switch (bar) {case 0:++bar;break;case 1:--bar;default: {bar += bar;break;}}}} // end namespace FOO
+class Point {public:Point(double x, double y) : x(x), y(y) {}double distance(const Point& other) const;int compareX(const Point& other) const;double x;double y;};double Point::distance(const Point& other) const {double dx = x - other.x;double dy = y - other.y;return sqrt(dx * dx + dy * dy);}int Point::compareX(const Point& other) const {if (x < other.x) {return -1;} else if (x > other.x) {return 1;} else {return 0;}}namespace FOO {int foo(int bar) const {switch (bar) {case 0:++bar;break;case 1:--bar;default: {bar += bar;break;}}}} // end namespace FOO
/*
* Line Wrapping
*/

Back to the top