File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -848,6 +848,7 @@ class Field:
848
848
constexpr : bool = False
849
849
mutable : bool = False
850
850
static : bool = False
851
+ inline : bool = False
851
852
852
853
doxygen : typing .Optional [str ] = None
853
854
Original file line number Diff line number Diff line change @@ -3336,3 +3336,40 @@ def test_constructor_outside_class() -> None:
3336
3336
]
3337
3337
)
3338
3338
)
3339
+
3340
+
3341
+ def test_class_inline_static () -> None :
3342
+ content = """
3343
+ struct X {
3344
+ inline static bool Foo = 1;
3345
+ };
3346
+ """
3347
+ data = parse_string (content , cleandoc = True )
3348
+
3349
+ assert data == ParsedData (
3350
+ namespace = NamespaceScope (
3351
+ classes = [
3352
+ ClassScope (
3353
+ class_decl = ClassDecl (
3354
+ typename = PQName (
3355
+ segments = [NameSpecifier (name = "X" )], classkey = "struct"
3356
+ )
3357
+ ),
3358
+ fields = [
3359
+ Field (
3360
+ access = "public" ,
3361
+ type = Type (
3362
+ typename = PQName (
3363
+ segments = [FundamentalSpecifier (name = "bool" )]
3364
+ )
3365
+ ),
3366
+ name = "Foo" ,
3367
+ value = Value (tokens = [Token (value = "1" )]),
3368
+ static = True ,
3369
+ inline = True ,
3370
+ )
3371
+ ],
3372
+ )
3373
+ ]
3374
+ )
3375
+ )
You can’t perform that action at this time.
0 commit comments