diff options
author | Anton Leherbauer | 2008-02-28 16:12:09 +0000 |
---|---|---|
committer | Anton Leherbauer | 2008-02-28 16:12:09 +0000 |
commit | 40e3f39a27319db4b5e3c38de6310c0ac823afc3 (patch) | |
tree | 3212d2931bce026b9a081af6673f0c59199e797b /core/org.eclipse.cdt.ui.tests | |
parent | e7eaa2fb9325dd15a27b7c52586a1ba59ba966e0 (diff) | |
download | org.eclipse.cdt-40e3f39a27319db4b5e3c38de6310c0ac823afc3.tar.gz org.eclipse.cdt-40e3f39a27319db4b5e3c38de6310c0ac823afc3.tar.xz org.eclipse.cdt-40e3f39a27319db4b5e3c38de6310c0ac823afc3.zip |
Fix for 192764: [Formatter] Improve GNU coding style compliance
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests')
-rw-r--r-- | core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java index 12a1d383952..4335d6d62e3 100644 --- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java +++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java @@ -531,4 +531,34 @@ public class CodeFormatterTest extends BaseUITestCase { Integer.toString(Alignment.M_ONE_PER_LINE_SPLIT | Alignment.M_FORCE | Alignment.M_INDENT_BY_ONE)); assertFormatterResult(); } + + //int foo(){try{}catch(...){}} + //float* bar(); + //template<typename _CharT, typename _Traits>class basic_ios : public ios_base{public: + // // Types: + //}; + + //int + //foo() + //{ + // try + // { + // } + // catch (...) + // { + // } + //} + //float* + //bar(); + //template<typename _CharT, typename _Traits> + // class basic_ios : public ios_base + // { + // public: + // // Types: + // }; + public void testGNUCodingStyleConformance_Bug192764() throws Exception { + fOptions= DefaultCodeFormatterOptions.getGNUSettings().getMap(); + assertFormatterResult(); + } + } |