Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2011-03-30 22:15:52 -0400
committerSergey Prigogin2011-03-30 22:15:52 -0400
commitae4651ac31c67a97313220ed79476c3cf51d9d5f (patch)
treef59b1fb5b688901192141ebe5eb8e9d60c5697aa /core/org.eclipse.cdt.ui.tests/resources/formatter/preview
parentbe1a78cd90002aa3ad267505dac984389c638bec (diff)
downloadorg.eclipse.cdt-ae4651ac31c67a97313220ed79476c3cf51d9d5f.tar.gz
org.eclipse.cdt-ae4651ac31c67a97313220ed79476c3cf51d9d5f.tar.xz
org.eclipse.cdt-ae4651ac31c67a97313220ed79476c3cf51d9d5f.zip
Formatting of conditional expressions.
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests/resources/formatter/preview')
-rw-r--r--core/org.eclipse.cdt.ui.tests/resources/formatter/preview/After.cpp4
1 files changed, 2 insertions, 2 deletions
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 853c365b125..4f07ae9de88 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
@@ -47,8 +47,8 @@ int foo(int bar) const {
int array[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 1000,
2000, 3000, 4000, 5000 };
int compare(int argument, int otherArg) {
- return argument + otherArg > argument * otherArg + 1000000 ? 100000 + 50000
- : 200000 - 30000;
+ return argument + otherArg > argument * otherArg + 1000000 ?
+ 100000 + 50000 : 200000 - 30000;
}
class Other {
static void bar(int arg1, int arg2, int arg3, int arg4, int arg5, int arg6,

Back to the top