Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests/resources/formatter/bugs/After.cpp')
-rw-r--r--core/org.eclipse.cdt.ui.tests/resources/formatter/bugs/After.cpp23
1 files changed, 11 insertions, 12 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 986e6c031db..f6cb5823fd8 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
@@ -4,28 +4,28 @@ struct x {
struct x getX() {
}
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=171520
-int bug=sizeof(int);
+int bug = sizeof(int);
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=173837
class ABaseClass {
protected:
ABaseClass(int x);
};
-class AClass : public ABaseClass {
+class AClass: public ABaseClass {
AClass(int x) throw(int);
void test1() const throw(int);
void test2() throw();
};
AClass::AClass(int x) throw(int) :
ABaseClass(x) {
- for (int i=0; i < 12; i++) {
+ for (int i = 0; i < 12; i++) {
}
}
// keep space between decl spec and declarator
int main(int argc, char **argv) {
}
// handling of string concat
-char* s1= "this " "is " "one " "string.";
-char* s2= "this " "is "
+char* s1 = "this " "is " "one " "string.";
+char* s2 = "this " "is "
"one " "string.";
// macro definition with line comment
#define ID(x) x // identity
@@ -34,7 +34,7 @@ int main() {
}
// semicolons inside for
void g() {
- for (int i=0; i<10; ++i) {
+ for (int i = 0; i < 10; ++i) {
}
}
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=183220
@@ -43,18 +43,17 @@ void bug183220() {
rtc_s2000_src_pending, rtc_s2000_cr_sync_pending,
rtc_hdw_cr_sync_next, rtc_hdw_current_clock;
int rtc_s2000_clock_source_state, RTC_CLOCK_PLL;
- if (( ( rtc_hdw_cr_sync_next != rtc_hdw_cr_sync )
- || rtc_hdw_cr_resync_enable )&& !rtc_s2000_src_pending
- && !rtc_s2000_cr_sync_pending) {
+ if (((rtc_hdw_cr_sync_next != rtc_hdw_cr_sync) || rtc_hdw_cr_resync_enable)
+ && !rtc_s2000_src_pending && !rtc_s2000_cr_sync_pending) {
if (!identify_hdw_fvr_master() || !rtc_hdw_current_clock->external
- || !rtc_hdw_cr_sync_next ||( ( rtc_hdw_current_clock->external
+ || !rtc_hdw_cr_sync_next || ((rtc_hdw_current_clock->external
&& rtc_hdw_cr_sync_next && rtc_s2000_clock_source_state
- != RTC_CLOCK_PLL ) )) {
+ != RTC_CLOCK_PLL))) {
}
}
}
// declaration with array initializer
-long dummy[]= { 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
+long dummy[] = { 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,

Back to the top