Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: e814662df5b861245f9dab418c7fce5c0d11bd87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
//!Commented ASMDeclarationTest 1
//%CPP
//TEST 1
asm("movl %1, %%eax;"); //TEST 2

//!Commented ASMDeclarationTest 2
//%CPP
/*TEST 1*/
asm("movl %1, %%eax;"); /*TEST 2*/

//!Commented FunctionDefinitionTest 1
//%CPP
//TEST 1
int foo()
{
    //inner comment
    return 1;
} //TEST 2


//!Commented FunctionDefinitionTest 2
//%CPP
/*TEST 1*/
int foo()
{
    //inner comment
    return 1;
} /*TEST 1*/


//!Commented SimpleDeclarationTest 1
//%CPP
//TEST 1
int i = 2, y = 3; //TEST 2
//TEST 3
int b = 0; //TEST 4

//!Commented NamespaceAlias 1
//%CPP
//TEST 1
namespace kurz = ziemlichlangernamespace; //TEST 2

//!Commented NamespaceAlias 2
//%CPP
/*TEST 1*/
namespace kurz = ziemlichlangernamespace; /*TEST 2*/

//!Commented TemplateDeclaration 1
//%CPP
//TEST 1
template<class T> class vector //TEST 2
{
    //TEST 3
}; //TEST 4

//!Commented TemplateDeclaration 2
//%CPP
/*TEST 1*/
template<class T> class vector /*TEST 2*/
{
    /*TEST 3*/
}; /*TEST 4*/

//!Commented NestedTemplateDeclaration 1
//%CPP
//TEST 1
template<template <class T> class K> class vector //TEST 2
{
    //TEST 3
}; //TEST 4

//!Commented NestedTemplateDeclaration 2
//%CPP
/*TEST 1*/
template<template <class T> class K> class vector /*TEST 2*/
{
    /*TEST 3*/
}; /*TEST 4*/

//!Commented TemplateSpecialization 1
//%CPP
//TEST 1
template<> class MyQueue<double> //TEST 2
{
    //TEST 3
    std::vector<double> data;
public:
    void Add(const double& );
    void Remove();
    void Print();
    //TEST 4
}; //TEST 5

//!Commented TemplateSpecialization 2
//%CPP
/*TEST 1*/
template<> class MyQueue<double> /*TEST 2*/
{
    /*TEST 3*/
    std::vector<double> data;
public:
    void Add(const double& );
    void Remove();
    void Print();
    /*TEST 4*/
}; /*TEST 5*/

//!Commented UsingDeclaration 1
//%CPP
struct A
{
    void f();
    enum E{ e};
    union 
    {
        int u;
    };
};
struct B : A
{
    //TEST 1
    using A::f; //TEST 2
    /*TEST 3*/
    using typename A::e; /*TEST 4*/
    using A::u;
    /*TEST 5*/
};

//!Commented UsingDirective 1
//%CPP
//TEST
using namespace B; //TEST


//!Commented VisibilityLabel 1
//%CPP
class A
{
    //TEST 1
public: //TEST 2
    int hallo();
    /*TEST 3*/
protected: /*TEST 4*/
    int b, c;
private:
    int p;
};

//!Comment BeforeSimpleDeclaration 1
//%CPP
//TEST 1
int i = 2; //TEST 2

//!Comment BeforeSimpleDeclaration 2
//%CPP
/*TEST 1*/
int i = 2; /*TEST 2*/

//!Commented typename qualfier 1
//%CPP
//TEST 1
typename T::A *a6; //TEST 2

//!Commented typename qualfier 2
//%CPP
/*TEST 1*/
typename T::A *a6; /*TEST 2*/

Back to the top