Skip to main content
summaryrefslogblamecommitdiffstats
blob: c89f4945db98462e05c71760fab8397b98f2a191 (plain) (tree)
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702



















































































































































                                                                              
                          
                           
 







          
                      












                                                                              
 











                           
 

































































































































































































































































































































































































































































































































































































                                                                              
                        























                                                                              
                        























                                                                              
                        




























                                                                              
                        










                  
                    




















                                                                              
                        

















                           
                        


















                                                                              
                        


















                           
                        














                           
                        
















                                                                              
                        





















                           
                        
















                                                                              
                        

















                           
                        


















                                                                              
                        




















                           
                        
















                                                                              
                        



















                           
                        





















                                                                              
                        










                  
                    

















                                                                              
                        










                  
                    

















                                                                              
                        















                           
                        






















                                                                              
                        















                           
                        























                                                                              
                        
















                           
                        























                                                                              
                        
















                           
                        

























                                                                              
                        
















                           
                        























                                                                              
                        
























                                                                              
                        
























                                                                              
                        




























                                                                              
                        





























                                                                              
                        

























                                                                              
                        




























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































                                                                               























                                                                              


              






















































                                                                               
                       





            
                       




            
                       




              
                       







                                                                              
                       













                  
                       






                                                                              
                       














                  
                       




              











































































































                                                                              














                                                                              
                        




















                                                                              


                         





















                                                                              


                         
































                                                                              


                          
          
                            

              



















                                                                              
                            























                           




















                                                                              
                            






















                           





                                                                              
 

































                                      
//!CommentHandlingTest 1 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@test.h
class test
{
public:
    test();
    /*
     * Hallo
     */
    void lala();
    //test
    virtual ~test();
protected:
    class test2
    {
    public:
        test2();
    }; //Komment 1
    //Komment 2
    //Komment 3
};

//=
=>leading
void lala(); = /*
     * Hallo
     */
virtual ~test(); = //test

=>trailing
class test2
    {
    public:
        test2();
    }; = //Komment 1

=>freestanding
test = //Komment 2 , //Komment 3

//!CommentHandlingTest 2 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@test.h
class test
{
public:
    virtual ~test();
    test();
    void lala();
protected:
    class test2
    {
    public:
        test2();
    };
};
//LALA

//=
=>leading

=>trailing

=>freestanding
class test
{
public:
    virtual ~test();
    test();
    void lala();
protected:
    class test2
    {
    public:
        test2();
    };
}; = //LALA

//!CommentHandlingTest 3 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@test.h
//Anfang
class test
{
public:
    test();
    void lala();
    virtual ~test();
protected:
    class test2
    {
    public:
        test2();
    };
};

//=
=>leading
class test
{
public:
    test();
    void lala();
    virtual ~test();
protected:
    class test2
    {
    public:
        test2();
    };
}; = //Anfang

=>trailing

=>freestanding

//!CommentHandlingTest 4 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@test.h
class test
{
    //Klasse...
public:
    test();
    void lala();
    virtual ~test();
protected:
    class test2
    {
    public:
        test2();
    };
};

//=
=>leading
public: = //Klasse...

=>trailing

=>freestanding

//!CommentRecognition00
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse0.h
class Klasse0
{
public:
    Klasse0();   //Comment
    std::string toString();

private:
    int i;
};

//=
=>leading

=>trailing
Klasse0(); = //Comment

=>freestanding

//!CommentRecognition0
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse0.h
//Comment1
class Klasse0
{
    //Comment2
public:
    Klasse1();
    std::string toString();

private:
    int i;
};

//=
=>leading
class Klasse0
{
    //Comment2
public:
    Klasse1();
    std::string toString();

private:
    int i;
}; = //Comment1
public: = //Comment2

=>trailing

=>freestanding

//!DeclarationWithTraillingDoubleComments
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse0.h
int foo = bar; //Comment
 //Zweiteilig

//=
=>leading

=>trailing
int foo = bar; = //Comment

=>freestanding
int foo = bar; = //Zweiteilig

//!DeclarationWithLeadingDoubleComments
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse0.h
//Comment
//Zweiteilig
int foo;

//=
=>leading
int foo; = //Comment , //Zweiteilig

=>trailing

=>freestanding

//!DeclarationWithTraillingAndLeadingComments
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse0.h
//Comment1
int foo = bar; //Comment2

//=
=>leading
int foo = bar; = //Comment1

=>trailing
int foo = bar; = //Comment2

=>freestanding

//!DeclarationWithTraillingComments
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse0.h
int foo = bar; //Comment

//=
=>leading

=>trailing
int foo = bar; = //Comment

=>freestanding

//!DeclarationWithTraillingComments
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse0.h
int foo; //Comment

//=
=>leading

=>trailing
int foo; = //Comment

=>freestanding

//!Method with Trailercomment
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse0.h
int foo ()
{
    return 42;
    //return the Answer
}

//=
=>leading

=>trailing

=>freestanding
{
    return 42;
    //return the Answer
} = //return the Answer

//!Method with Trailercomment2
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse0.h
int foo()
{
    return 42; //return the Answer
}

//=
=>leading

=>trailing
return 42; = //return the Answer

=>freestanding

//!Method with Trailercomment3
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse0.h
int foo()
{
    //return the Answer
    return 42;
}

//=
=>leading
return 42; = //return the Answer

=>trailing

=>freestanding

//!ClassCommentTest
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse0.h
class comment
{
    //hallo
};

//=
=>leading

=>trailing

=>freestanding
comment = //hallo

//!CommentRecognition1 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
    //TEST
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading
public: = //TEST

=>trailing

=>freestanding

//!CommentRecognition2 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public: //TEST
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading

=>trailing
public: = //TEST

=>freestanding

//!CommentRecognition3 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    //TEST
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading
Klasse1(); = //TEST

=>trailing

=>freestanding

//!CommentRecognition4 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading

=>trailing

=>freestanding

//!CommentRecognition5 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{   //TEST
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading
public: = //TEST

=>trailing

=>freestanding

//!CommentRecognition6 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1{    //TEST
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading
public: = //TEST

=>trailing

=>freestanding

//!CommentRecognition7 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{//TEST
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading
public: = //TEST

=>trailing

=>freestanding

//!CommentRecognition8 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
private:
    int i;
    int i = 5; //lala
};

//=
=>leading

=>trailing
int i = 5; = //lala

=>freestanding

//!CommentRecognition9 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
    /*TEST*/
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading
public: = /*TEST*/

=>trailing

=>freestanding

//!CommentRecognition10 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1{    /*TEST*/
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading
public: = /*TEST*/

=>trailing

=>freestanding

//!CommentRecognition11 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public: /*TEST*/
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading

=>trailing
public: = /*TEST*/

=>freestanding

//!CommentRecognition11b - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public: /*TEST*/ Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading

=>trailing
public: = /*TEST*/

=>freestanding

//!CommentRecognition12 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
private:
    int i;
    int i = 5; /*TEST*/
};

//=
=>leading

=>trailing
int i = 5; = /*TEST*/

=>freestanding

//!CommentRecognition13 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
    /*
     * TEST
     */
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading
public: = /*
     * TEST
     */

=>trailing

=>freestanding

//!CommentRecognition14 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
private:
    int i;
    int i = 5; /*
                * TEST
                */
};

//=
=>leading

=>trailing
int i = 5; = /*
                * TEST
                */

=>freestanding

//!CommentRecognition15 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public: /*
         * TEST
         */
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading

=>trailing
public: = /*
         * TEST
         */

=>freestanding

//!CommentRecognition16 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1{  //Test mit
                //2 Zeilen
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading
public: = //Test mit , //2 Zeilen

=>trailing

=>freestanding

//!CommentRecognition17 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
private:
    int i;
    int i = 5; //Test mit
    //2 Zeilen
};

//=
=>leading

=>trailing
int i = 5; = //Test mit

=>freestanding
Klasse1 = //2 Zeilen

//!CommentRecognition18 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1{
    //Test mit
    //2 Zeilen
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading
public: = //Test mit , //2 Zeilen

=>trailing

=>freestanding

//!CommentRecognition19 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
    //Test mit
    //2 Zeilen
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading
public: = //Test mit , //2 Zeilen

=>trailing

=>freestanding

//!CommentRecognition20 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
};

//=
=>leading

=>trailing

=>freestanding

//!CommentRecognition21 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0; //TEST
        i++;
    }

    int i;
};

//=
=>leading

=>trailing
int i = 0; = //TEST

=>freestanding

//!CommentRecognition22 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    } //TEST

private:
    int i;
};

//=
=>leading

=>trailing
{
        int i = 0;
        i++;
    } = //TEST

=>freestanding

//!CommentRecognition23 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    //KommentarDavor
    void inlineMethode()
    {
        int i = 0;
        i++;
    } //TEST

private:
    int i;
};

//=
=>leading
void inlineMethode()
    {
        int i = 0;
        i++;
    } = //KommentarDavor

=>trailing
{
        int i = 0;
        i++;
    } = //TEST

=>freestanding

//!CommentRecognition24 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; //SCHLUSS

//=
=>leading

=>trailing
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; = //SCHLUSS

=>freestanding

//!CommentRecognition25 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; //SCHLUSS
 //2. teil

//=
=>leading

=>trailing
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; = //SCHLUSS

=>freestanding
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; = //2. teil

//!CommentRecognition26 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
};
    //SCHLUSS
    //2. teil

//=
=>leading

=>trailing

=>freestanding
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; = //SCHLUSS , //2. teil

//!CommentRecognition27 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; /*SCHLUSS*/

//=
=>leading

=>trailing
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; = /*SCHLUSS*/

=>freestanding

//!CommentRecognition28 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
};    
/*SCHLUSS*/

//=
=>leading

=>trailing

=>freestanding
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; = /*SCHLUSS*/

//!CommentRecognition29 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; /*
    * SCHLUSS
    */

//=
=>leading

=>trailing
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; = /*
    * SCHLUSS
    */

=>freestanding

//!CommentRecognition30 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    //TEST
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
};

//=
=>leading
void inlineMethode()
    {
        int i = 0;
        i++;
    } = //TEST

=>trailing

=>freestanding

//!CommentRecognition31 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    /*TEST*/
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
};

//=
=>leading
void inlineMethode()
    {
        int i = 0;
        i++;
    } = /*TEST*/

=>trailing

=>freestanding

//!CommentRecognition32 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
//Vorher
class Klasse1 //Nachher
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
};

//=
=>leading
class Klasse1 //Nachher
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; = //Vorher

=>trailing
Klasse1 = //Nachher

=>freestanding

//!CommentRecognition33 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
//Vorher
class Klasse1 /*Nachher*/
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
};

//=
=>leading
class Klasse1 /*Nachher*/
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; = //Vorher

=>trailing
Klasse1 = /*Nachher*/

=>freestanding

//!CommentRecognition34 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
/*Vorher*/
class Klasse1
{
    /*Nachher*/
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
};

//=
=>leading
class Klasse1
{
    /*Nachher*/
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; = /*Vorher*/
public: = /*Nachher*/

=>trailing

=>freestanding

//!CommentRecognition35 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
/*Vorher*/
class Klasse1
{
    //Nachher
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
};

//=
=>leading
class Klasse1
{
    //Nachher
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; = /*Vorher*/
public: = //Nachher

=>trailing

=>freestanding

//!CommentRecognition36 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
/*
 * Vorher
 */
class Klasse1
{
    //Nachher
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
};

//=
=>leading
class Klasse1
{
    //Nachher
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
}; = /*
 * Vorher
 */
public: = //Nachher

=>trailing

=>freestanding

//!CommentRecognition37 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i; //Test
};

//=
=>leading

=>trailing
int i; = //Test

=>freestanding

//!CommentRecognition38 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i; /*Test*/
};

//=
=>leading

=>trailing
int i; = /*Test*/

=>freestanding

//!CommentRecognition39 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i; /*
            * Test
            */
};

//=
=>leading

=>trailing
int i; = /*
            * Test
            */

=>freestanding

//!CommentRecognition40 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    int i;
    /*
     * Test
     */
};

//=
=>leading

=>trailing

=>freestanding
Klasse1 = /*
     * Test
     */

//!CommentRecognition41 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    //TEST
    int i;
};

//=
=>leading
int i; = //TEST

=>trailing

=>freestanding

//!CommentRecognition42 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
    void inlineMethode()
    {
        int i = 0;
        i++;
    }

private:
    /*TEST*/
    int i;
};

//=
=>leading
int i; = /*TEST*/

=>trailing

=>freestanding

//!CommentRecognition43 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
private:
    int i;
};

//=
=>leading

=>trailing

=>freestanding

//!CommentRecognition44 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
private:
    int i;
    //TEST
};

//=
=>leading

=>trailing

=>freestanding
Klasse1 = //TEST

//!CommentRecognition44b - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
private:
    int i; //TEST
};

//=
=>leading

=>trailing
int i; = //TEST

=>freestanding

//!CommentRecognition44c - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
private:
    int i;
    //TEST
}; //Add

//=
=>leading

=>trailing
class Klasse1
{
private:
    int i;
    //TEST
}; = //Add

=>freestanding
Klasse1 = //TEST

//!CommentRecognition45 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
private:
    //TEST
    int i;
};

//=
=>leading
int i; = //TEST

=>trailing

=>freestanding

//!CommentRecognition46 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
    //TEST
private:
    int i;
};

//=
=>leading
private: = //TEST

=>trailing

=>freestanding

//!CommentRecognition47 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1();
    std::string toString();
private: //TEST
    int i;
};

//=
=>leading

=>trailing
private: = //TEST

=>freestanding

//!CommentRecognition48 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
    //TEST
public: /*TEST*/
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading
public: = //TEST

=>trailing
public: = /*TEST*/

=>freestanding

//!CommentRecognition48b - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
    //TEST
public: /*TEST*/
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading
public: = //TEST

=>trailing
public: = /*TEST*/

=>freestanding

//!CommentRecognition49 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1(); //TEST1
    //TEST2
    std::string toString();
private:
    int i;
};

//=
=>leading
std::string toString(); = //TEST2

=>trailing
Klasse1(); = //TEST1

=>freestanding

//!CommentRecognition50 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1(); /*TEST1*/
    /*TEST2*/
    std::string toString();
private:
    int i;
};

//=
=>leading
std::string toString(); = /*TEST2*/

=>trailing
Klasse1(); = /*TEST1*/

=>freestanding

//!CommentRecognition51 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1(); //TEST1
    /*TEST2*/
    std::string toString();
private:
    int i;
};

//=
=>leading
std::string toString(); = /*TEST2*/

=>trailing
Klasse1(); = //TEST1

=>freestanding

//!CommentRecognition52 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1(); /*TEST1*/
    //TEST2
    std::string toString();
private:
    int i;
};
//=
=>leading
std::string toString(); = //TEST2

=>trailing
Klasse1(); = /*TEST1*/

=>freestanding

//!CommentRecognition53 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1(); /*TEST1*/
    //TEST3
    //TEST2
    std::string toString();
private:
    int i;
};

//=
=>leading
std::string toString(); = //TEST3 , //TEST2

=>trailing
Klasse1(); = /*TEST1*/

=>freestanding

//!CommentRecognition54 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1(); /*TEST1*/
    /*TEST3*/
    //TEST2
    std::string toString();
private:
    int i;
};

//=
=>leading
std::string toString(); = /*TEST3*/ , //TEST2

=>trailing
Klasse1(); = /*TEST1*/

=>freestanding

//!CommentRecognition55 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1(); //TEST1
    /*
     * TEST3
     */
    std::string toString();
private:
    int i;
};

//=
=>leading
std::string toString(); = /*
     * TEST3
     */

=>trailing
Klasse1(); = //TEST1

=>freestanding

//!CommentRecognition56 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
class Klasse1
{
public:
    Klasse1(); /*
                * TEST1
                */
    //TEST2
    std::string toString();
private:
    int i;
};

//=
=>leading
std::string toString(); = //TEST2

=>trailing
Klasse1(); = /*
                * TEST1
                */

=>freestanding

//!CommentRecognition57 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
namespace testNamespace
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
}

//=
=>leading

=>trailing

=>freestanding

//!CommentRecognition58 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
//Kommentar
namespace testNamespace
{

class Klasse1
{
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

}

//=
=>leading
namespace testNamespace
{

class Klasse1
{
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

} = //Kommentar

=>trailing

=>freestanding

//!CommentRecognition59 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
namespace testNamespace //Kommentar
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
}

//=
=>leading

=>trailing
testNamespace = //Kommentar

=>freestanding

//!CommentRecognition60 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
/*Kommentar*/
namespace testNamespace
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
}

//=
=>leading
namespace testNamespace
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
} = /*Kommentar*/

=>trailing

=>freestanding

//!CommentRecognition61 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
namespace testNamespace /*Kommentar*/
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
}

//=
=>leading

=>trailing
testNamespace = /*Kommentar*/

=>freestanding

//!CommentRecognition62 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
/*
 * Kommentar
 */
namespace testNamespace
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
}

//=
=>leading
namespace testNamespace
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
} = /*
 * Kommentar
 */

=>trailing

=>freestanding

//!CommentRecognition63 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
namespace testNamespace /*
                         * Kommentar
                         */
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
}

//=
=>leading

=>trailing
testNamespace = /*
                         * Kommentar
                         */

=>freestanding

//!CommentRecognition64 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
namespace testNamespace
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
} //Kommentar

//=
=>leading

=>trailing
namespace testNamespace
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
} = //Kommentar

=>freestanding

//!CommentRecognition65 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
namespace testNamespace
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
} /*Kommentar*/

//=
=>leading

=>trailing
namespace testNamespace
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
} = /*Kommentar*/

=>freestanding

//!CommentRecognition66 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
namespace testNamespace
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
} /*
   * Kommentar
   */

//=
=>leading

=>trailing
namespace testNamespace
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
} = /*
   * Kommentar
   */

=>freestanding

//!CommentRecognition67 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
namespace testNamespace
{
    class Klasse1 //TEST
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
}

//=
=>leading

=>trailing
Klasse1 = //TEST

=>freestanding

//!CommentRecognition68 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
namespace testNamespace
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i; //TEST
    };
}

//=
=>leading

=>trailing
int i; = //TEST

=>freestanding

//!CommentRecognition69 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
namespace testNamespace
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    }; //TEST
}

//=
=>leading

=>trailing
class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    }; = //TEST

=>freestanding

//!CommentRecognition70 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
namespace testNamespace
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
    //TEST
}

//=
=>leading

=>trailing

=>freestanding
namespace testNamespace
{
    class Klasse1
    {
    public:
        Klasse1();
        std::string toString();
    private:
        int i;
    };
    //TEST
} = //TEST

//!CommentRecognition100
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
struct Klasse1
{
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading

=>trailing

=>freestanding

//!CommentRecognition101
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
//Kommentar
struct Klasse1
{
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading
struct Klasse1
{
public:
    Klasse1();
    std::string toString();
private:
    int i;
}; = //Kommentar

=>trailing

=>freestanding

//!CommentRecognition102
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
struct Klasse1
{
    //Kommentar
public:
    Klasse1();
    std::string toString();
private:
    int i;
};

//=
=>leading
public: = //Kommentar

=>trailing

=>freestanding

//!CommentRecognition103
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
struct Klasse1
{
    //Kommentar
private:
    Klasse1();
    std::string toString();
protected:
    int i;
};

//=
=>leading
private: = //Kommentar

=>trailing

=>freestanding

//!CommentRecognition104
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
/*Davor*/
struct Klasse1 //Kommentar
{
private:
    Klasse1();
    std::string toString();
protected:
    int i;
};

//=
=>leading
struct Klasse1 //Kommentar
{
private:
    Klasse1();
    std::string toString();
protected:
    int i;
}; = /*Davor*/

=>trailing
Klasse1 = //Kommentar

=>freestanding

//!CommentRecognition200 - von ASTWriter
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
//comment a
void tree(int a)
{
    //comment b
    a = 1; //comment c
} //comment d

//=
=>leading
void tree(int a)
{
    //comment b
    a = 1; //comment c
} = //comment a
a = 1; = //comment b

=>trailing
{
    //comment b
    a = 1; //comment c
} = //comment d
a = 1; = //comment c

=>freestanding

//!CommentRecognition201 - von ASTWriter
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
void tree(int a)
{
    a = 1;
} //comment d

//=
=>leading

=>trailing
{
    a = 1;
} = //comment d

=>freestanding

//!CommentRecognition202 - von ASTWriter DeclarationStatement
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
void foo()
{
    //TEST 1
    int i = 2; //TEST 2
    //TEST 3
    int a; //TEST 4
    //TEST 5
}

//=
=>leading
int i = 2; = //TEST 1
int a; = //TEST 3

=>trailing
int i = 2; = //TEST 2
int a; = //TEST 4

=>freestanding
{
    //TEST 1
    int i = 2; //TEST 2
    //TEST 3
    int a; //TEST 4
    //TEST 5
} = //TEST 5

//!CommentRecognition203 - von ASTWriter ForStatement
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
void foo()
{
    //TEST 1
    for(int i = 0;i < 1;++i){
        //TEST 2
        break; //TEST 3
    } //TEST 4
}

//=
=>leading
for(int i = 0;i < 1;++i){
        //TEST 2
        break; //TEST 3
    } = //TEST 1
break; = //TEST 2

=>trailing
{
        //TEST 2
        break; //TEST 3
    } = //TEST 4
break; = //TEST 3

=>freestanding

//!CommentRecognition204 - von ASTWriter LabelStatement
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
void foo()
{
    start:
    bar(); //Test
    goto start;
}


//=
=>leading

=>trailing
bar(); = //Test

=>freestanding

//!CommentRecognition205 - von ASTWriter IfStatement
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
int f()
{
    if(int c = f()){
        c++;
    } //TEST 1
    return i;
}

//=
=>leading

=>trailing
{
        c++;
    } = //TEST 1

=>freestanding

//!CommentRecognition206 - von ASTWriter SwitchStatement
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
void foo()
{
    //TEST 1
    switch (1){
        //TEST 2
        case 1: //TEST 3
            return 1; //TEST 4
        case 2:
            return 2;
        default: //TEST 5
            return 3;
            //TEST 6
    } //TEST 7
}
//=
=>leading
switch (1){
        //TEST 2
        case 1: //TEST 3
            return 1; //TEST 4
        case 2:
            return 2;
        default: //TEST 5
            return 3;
            //TEST 6
    } = //TEST 1
case 1: = //TEST 2

=>trailing
{
        //TEST 2
        case 1: //TEST 3
            return 1; //TEST 4
        case 2:
            return 2;
        default: //TEST 5
            return 3;
            //TEST 6
    } = //TEST 7
case 1: = //TEST 3
return 1; = //TEST 4
default: = //TEST 5

=>freestanding
{
        //TEST 2
        case 1: //TEST 3
            return 1; //TEST 4
        case 2:
            return 2;
        default: //TEST 5
            return 3;
            //TEST 6
    } = //TEST 6

//!CommentRecognition207 - von ASTWriter WhileStatement
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
void foo()
{
    while(true){
        break;
    } /*TEST 6*/
}

//=
=>leading

=>trailing
{
        break;
    } = /*TEST 6*/

=>freestanding

//!CommentRecognition208 - von ASTWriter ExplicitTemplateInstantiationStatement
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
//TEST 1
template class vector<int>; //TEST 2

//=
=>leading
template class vector<int>; = //TEST 1

=>trailing
class vector<int>; = //TEST 2

=>freestanding

//!CommentRecognition209 - von ASTWriter GPPExplicitTemplateInstantitation
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
//TEST 1
static template class vector<int>; //TEST 2
//TEST 3
inline template class vector<int>; //TEST 4
//TEST 5
inline template class vector<int>; //TEST 6

//=
=>leading
static template class vector<int>; = //TEST 1
inline template class vector<int>; = //TEST 3
inline template class vector<int>; = //TEST 5

=>trailing
class vector<int>; = //TEST 2
class vector<int>; = //TEST 4
class vector<int>; = //TEST 6

=>freestanding

//!CommentRecognition210 - von ASTWriter LinkageSpecification
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
//TEST 1
extern "C" typedef void FUNC(); //TEST 2

//=
=>leading
extern "C" typedef void FUNC(); = //TEST 1

=>trailing
typedef void FUNC(); = //TEST 2

=>freestanding

//!CommentRecognition212 - von ASTWriter TemplateFunction
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
template<typename T> int tempFunct(T p)
{
    ++p;
    p + 4;
    return 0;
} //Kommentar

//=
=>leading

=>trailing
{
    ++p;
    p + 4;
    return 0;
} = //Kommentar

=>freestanding

//!CommentRecognition213 - von ASTWriter DeclarationWithTraillingDoubleComments
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
int foo = bar; //Comment
 //Zweiteilig
//=
=>leading

=>trailing
int foo = bar; = //Comment

=>freestanding
int foo = bar; = //Zweiteilig

//!CommentRecognition214 - von ASTWriter NamesapceDefinition
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
//TEST 1
namespace somenamespace
{
    //TEST 2
} //TEST 3

//=
=>leading
namespace somenamespace
{
    //TEST 2
} = //TEST 1

=>trailing
namespace somenamespace
{
    //TEST 2
} = //TEST 3

=>freestanding
namespace somenamespace
{
    //TEST 2
} = //TEST 2


//!CommentRecognition215 - von ASTWriter NamesapceDefinition
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
namespace somenamespace
{
    //TEST
}

void doIt(){
	int i = 0;
}

//=
=>leading

=>trailing

=>freestanding
namespace somenamespace
{
    //TEST
} = //TEST

//!CommentRecognition216 - von ASTWriter NamesapceDefinition
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
namespace somenamespace
{
    int i = 0;
    //TEST
}

void doIt(){
	int i = 0;
}

//=
=>leading

=>trailing

=>freestanding
namespace somenamespace
{
    int i = 0;
    //TEST
} = //TEST

//!ImplementationFileCommentRecognition1 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
void Demo::methode1()
{
}

void Demo::methode2()
{
}

void Demo::methode3()
{
}

//=
=>leading

=>trailing

=>freestanding

//!ImplementationFileCommentRecognition2 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
//Zuvorderst


void Demo::methode1()
{
    //Test
}

void Demo::methode2()
{
}
//Davor

void Demo::methode3()
{
} //Danach

//Am Schluss
//=
=>leading
void Demo::methode1()
{
    //Test
} = //Zuvorderst
void Demo::methode3()
{
} = //Davor

=>trailing
{
} = //Danach

=>freestanding
{
    //Test
} = //Test
void Demo::methode3()
{
} = //Am Schluss

//!ImplementationFileCommentRecognition3 - von CERP
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@Klasse1.h
/*Zuvorderst*/
void Demo::methode1()
{
    /*Test*/
}

void Demo::methode2()
{
}

/*Davor*/
void Demo::methode3()
{
} /*Danach*/


/*Am Schluss*/

//=
=>leading
void Demo::methode1()
{
    /*Test*/
} = /*Zuvorderst*/
void Demo::methode3()
{
} = /*Davor*/

=>trailing
{
} = /*Danach*/

=>freestanding
{
    /*Test*/
} = /*Test*/
void Demo::methode3()
{
} = /*Am Schluss*/

//!CommentRecognitionAtTheBeginningBeforePreprocessorStatement 1
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@test.h
//TEST
#ifndef TEST_H_
#define TEST_H_

class test
{
};

#endif

//=
=>leading
#ifndef TEST_H_ = //TEST
=>trailing
=>freestanding

//!CommentRecognitionAtTheBeginningBeforePreprocessorStatement 2
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@test.h
/*
 * Licence information...
 */

#ifndef TEST_H_
#define TEST_H_

class test
{
};

#endif

//=
=>leading
#ifndef TEST_H_ = /*
 * Licence information...
 */
=>trailing
=>freestanding

//!CommentRecognitionAtTheBeginningBeforePreprocessorStatement 3
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@test.h
/*
 * Licence information...
 */

#ifndef TEST_H_
#define TEST_H_

//test
class test
{
};

#endif

//=
=>leading
#ifndef TEST_H_ = /*
 * Licence information...
 */
class test
{
}; = //test
=>trailing
=>freestanding

//!CommentRecognitionAtTheBeginningBeforePreprocessorStatement 4
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@test.h
/*
 * HideMethod.h
 */

#ifndef HIDEMETHOD_H_
#define HIDEMETHOD_H_


class HideMethod {
public:
    HideMethod();
    virtual ~HideMethod();
    void methode2();
    void methode3();

private:
	int i;
	bool isOk;
};

#endif /* HIDEMETHOD_H_ */

//=
=>leading
#ifndef HIDEMETHOD_H_ = /*
 * HideMethod.h
 */
=>trailing
#endif = /* HIDEMETHOD_H_ */
=>freestanding

//!CommentRecognition Bug 233438
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@test.h
#ifndef HIDEMETHOD_H_
#define HIDEMETHOD_H_

class HideMethod {
public:
    HideMethod();
    virtual ~HideMethod();
    int methode2();
private:
	int i;
};

#endif /* HIDEMETHOD_H_ */

//=
=>leading
=>trailing
#endif = /* HIDEMETHOD_H_ */
=>freestanding

//@test.cpp
#include "test.h"

HideMethod::HideMethod()
{
}

HideMethod::~HideMethod()
{
}

int HideMethod::methode2(){
	i++;
	//comment
	return i;
}

//=
=>leading
return i; = //comment
=>trailing
=>freestanding

//!CommentRecognition Bug 234786
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@test.h
#ifndef HIDEMETHOD_H_
#define HIDEMETHOD_H_

class HideMethod {
public:
    HideMethod();
    virtual ~HideMethod();
    int methode2();
private:
	int i;
};

#endif /* HIDEMETHOD_H_ */

//=
=>leading
=>trailing
#endif = /* HIDEMETHOD_H_ */
=>freestanding

//@test.cpp
#include "test.h"

HideMethod::HideMethod()
{
}

HideMethod::~HideMethod()
{
}

int HideMethod::methode2(){
	i++;     //comment
	return i;
}

//=
=>leading
=>trailing
i++; = //comment
=>freestanding
//!CommentRecognition preprocessor directives comment recognition
//#org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTest
//@main.cpp
//c1
int i;//c2
//inc1

//inc2

#include "foo.h" /*inc3*/ /*inc4*/
//main
int main() {
	return 0;
	//block1
}
//ifdef1
#ifdef X //ifdef2
//=
=>leading
int i; = //c1
#include "foo.h" = //inc1 , //inc2
int main() {
	return 0;
	//block1
} = //main
#ifdef X = //ifdef1
=>trailing
int i; = //c2
#include "foo.h" = /*inc3*/ , /*inc4*/
#ifdef X = //ifdef2
=>freestanding
{
	return 0;
	//block1
} = //block1
//@foo.h
void foo();
//=
=>leading
=>trailing
=>freestanding

Back to the top