1 /**
2 Copyright: Copyright (c) 2016, Joakim Brännström. All rights reserved.
3 License: MPL-2
4 Author: Joakim Brännström (joakim.brannstrom@gmx.com)
5 
6 This Source Code Form is subject to the terms of the Mozilla Public License,
7 v.2.0. If a copy of the MPL was not distributed with this file, You can obtain
8 one at http://mozilla.org/MPL/2.0/.
9 
10 DO NOT EDIT. THIS FILE IS GENERATED.
11 See the generator script source/devtool/generator_clang_ast_nodes.d
12 */
13 module libclang_ast.ast.attribute;
14 import libclang_ast.ast.node : Node;
15 
16 abstract class Attribute : Node {
17     import clang.Cursor : Cursor;
18     import libclang_ast.ast : Visitor;
19 
20     private Cursor cursor_;
21 
22     // trusted on the assumption that the node is scope allocated and all access to cursor is via a scoped ref.
23     this(scope Cursor cursor) @trusted {
24         this.cursor_ = cursor;
25     }
26 
27     Cursor cursor() return const @safe {
28         return Cursor(cursor_.cx);
29     }
30 
31     override void accept(scope Visitor v) @safe const scope {
32         static import libclang_ast.ast;
33 
34         libclang_ast.ast.accept(cursor_, v);
35     }
36 }
37 
38 final class UnexposedAttr : Attribute {
39     import clang.Cursor : Cursor;
40 
41     this(scope Cursor cursor) @safe {
42         super(cursor);
43     }
44 
45     override void accept(scope Visitor v) @safe const scope {
46         static import libclang_ast.ast;
47 
48         libclang_ast.ast.accept(cursor, v);
49     }
50 }
51 
52 final class IbActionAttr : Attribute {
53     import clang.Cursor : Cursor;
54 
55     this(scope Cursor cursor) @safe {
56         super(cursor);
57     }
58 
59     override void accept(scope Visitor v) @safe const scope {
60         static import libclang_ast.ast;
61 
62         libclang_ast.ast.accept(cursor, v);
63     }
64 }
65 
66 final class IbOutletAttr : Attribute {
67     import clang.Cursor : Cursor;
68 
69     this(scope Cursor cursor) @safe {
70         super(cursor);
71     }
72 
73     override void accept(scope Visitor v) @safe const scope {
74         static import libclang_ast.ast;
75 
76         libclang_ast.ast.accept(cursor, v);
77     }
78 }
79 
80 final class IbOutletCollectionAttr : Attribute {
81     import clang.Cursor : Cursor;
82 
83     this(scope Cursor cursor) @safe {
84         super(cursor);
85     }
86 
87     override void accept(scope Visitor v) @safe const scope {
88         static import libclang_ast.ast;
89 
90         libclang_ast.ast.accept(cursor, v);
91     }
92 }
93 
94 final class CxxFinalAttr : Attribute {
95     import clang.Cursor : Cursor;
96 
97     this(scope Cursor cursor) @safe {
98         super(cursor);
99     }
100 
101     override void accept(scope Visitor v) @safe const scope {
102         static import libclang_ast.ast;
103 
104         libclang_ast.ast.accept(cursor, v);
105     }
106 }
107 
108 final class CxxOverrideAttr : Attribute {
109     import clang.Cursor : Cursor;
110 
111     this(scope Cursor cursor) @safe {
112         super(cursor);
113     }
114 
115     override void accept(scope Visitor v) @safe const scope {
116         static import libclang_ast.ast;
117 
118         libclang_ast.ast.accept(cursor, v);
119     }
120 }
121 
122 final class AnnotateAttr : Attribute {
123     import clang.Cursor : Cursor;
124 
125     this(scope Cursor cursor) @safe {
126         super(cursor);
127     }
128 
129     override void accept(scope Visitor v) @safe const scope {
130         static import libclang_ast.ast;
131 
132         libclang_ast.ast.accept(cursor, v);
133     }
134 }
135 
136 final class AsmLabelAttr : Attribute {
137     import clang.Cursor : Cursor;
138 
139     this(scope Cursor cursor) @safe {
140         super(cursor);
141     }
142 
143     override void accept(scope Visitor v) @safe const scope {
144         static import libclang_ast.ast;
145 
146         libclang_ast.ast.accept(cursor, v);
147     }
148 }
149 
150 final class PackedAttr : Attribute {
151     import clang.Cursor : Cursor;
152 
153     this(scope Cursor cursor) @safe {
154         super(cursor);
155     }
156 
157     override void accept(scope Visitor v) @safe const scope {
158         static import libclang_ast.ast;
159 
160         libclang_ast.ast.accept(cursor, v);
161     }
162 }
163 
164 final class PureAttr : Attribute {
165     import clang.Cursor : Cursor;
166 
167     this(scope Cursor cursor) @safe {
168         super(cursor);
169     }
170 
171     override void accept(scope Visitor v) @safe const scope {
172         static import libclang_ast.ast;
173 
174         libclang_ast.ast.accept(cursor, v);
175     }
176 }
177 
178 final class ConstAttr : Attribute {
179     import clang.Cursor : Cursor;
180 
181     this(scope Cursor cursor) @safe {
182         super(cursor);
183     }
184 
185     override void accept(scope Visitor v) @safe const scope {
186         static import libclang_ast.ast;
187 
188         libclang_ast.ast.accept(cursor, v);
189     }
190 }
191 
192 final class NoDuplicateAttr : Attribute {
193     import clang.Cursor : Cursor;
194 
195     this(scope Cursor cursor) @safe {
196         super(cursor);
197     }
198 
199     override void accept(scope Visitor v) @safe const scope {
200         static import libclang_ast.ast;
201 
202         libclang_ast.ast.accept(cursor, v);
203     }
204 }
205 
206 final class CudaConstantAttr : Attribute {
207     import clang.Cursor : Cursor;
208 
209     this(scope Cursor cursor) @safe {
210         super(cursor);
211     }
212 
213     override void accept(scope Visitor v) @safe const scope {
214         static import libclang_ast.ast;
215 
216         libclang_ast.ast.accept(cursor, v);
217     }
218 }
219 
220 final class CudaDeviceAttr : Attribute {
221     import clang.Cursor : Cursor;
222 
223     this(scope Cursor cursor) @safe {
224         super(cursor);
225     }
226 
227     override void accept(scope Visitor v) @safe const scope {
228         static import libclang_ast.ast;
229 
230         libclang_ast.ast.accept(cursor, v);
231     }
232 }
233 
234 final class CudaGlobalAttr : Attribute {
235     import clang.Cursor : Cursor;
236 
237     this(scope Cursor cursor) @safe {
238         super(cursor);
239     }
240 
241     override void accept(scope Visitor v) @safe const scope {
242         static import libclang_ast.ast;
243 
244         libclang_ast.ast.accept(cursor, v);
245     }
246 }
247 
248 final class CudaHostAttr : Attribute {
249     import clang.Cursor : Cursor;
250 
251     this(scope Cursor cursor) @safe {
252         super(cursor);
253     }
254 
255     override void accept(scope Visitor v) @safe const scope {
256         static import libclang_ast.ast;
257 
258         libclang_ast.ast.accept(cursor, v);
259     }
260 }
261 
262 final class CudaSharedAttr : Attribute {
263     import clang.Cursor : Cursor;
264 
265     this(scope Cursor cursor) @safe {
266         super(cursor);
267     }
268 
269     override void accept(scope Visitor v) @safe const scope {
270         static import libclang_ast.ast;
271 
272         libclang_ast.ast.accept(cursor, v);
273     }
274 }
275 
276 final class VisibilityAttr : Attribute {
277     import clang.Cursor : Cursor;
278 
279     this(scope Cursor cursor) @safe {
280         super(cursor);
281     }
282 
283     override void accept(scope Visitor v) @safe const scope {
284         static import libclang_ast.ast;
285 
286         libclang_ast.ast.accept(cursor, v);
287     }
288 }
289 
290 final class DllExport : Attribute {
291     import clang.Cursor : Cursor;
292 
293     this(scope Cursor cursor) @safe {
294         super(cursor);
295     }
296 
297     override void accept(scope Visitor v) @safe const scope {
298         static import libclang_ast.ast;
299 
300         libclang_ast.ast.accept(cursor, v);
301     }
302 }
303 
304 final class DllImport : Attribute {
305     import clang.Cursor : Cursor;
306 
307     this(scope Cursor cursor) @safe {
308         super(cursor);
309     }
310 
311     override void accept(scope Visitor v) @safe const scope {
312         static import libclang_ast.ast;
313 
314         libclang_ast.ast.accept(cursor, v);
315     }
316 }