Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests/resources/formatter/complex/After.cpp')
-rw-r--r--core/org.eclipse.cdt.ui.tests/resources/formatter/complex/After.cpp26
1 files changed, 26 insertions, 0 deletions
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
new file mode 100644
index 00000000000..8c3235d3a91
--- /dev/null
+++ b/core/org.eclipse.cdt.ui.tests/resources/formatter/complex/After.cpp
@@ -0,0 +1,26 @@
+
+/* This is sample code to test the formatter */
+
+class Complex {
+private:
+ float re;
+ float im;
+public:
+ Complex(float re, float im) :
+ re(re), im(im) {
+ }
+ float GetRe() {
+ return re;
+ }
+ float GetIm() {
+ return im;
+ }
+ void Set(float r, float i);
+ /* Set real part */
+ void SetRe(float r);
+ /*
+ * Set imaginary part
+ */
+ void SetIm(float i);
+ void Print();
+};

Back to the top