@@ -459,36 +459,31 @@ void ansi_c_scanner_init()
459
459
return make_identifier ();
460
460
}
461
461
462
- " _Float16" { // clang doesn't have it
463
- if (PARSER.mode ==configt::ansi_ct::flavourt::GCC)
462
+ " _Float16" { if (PARSER.Floatn )
464
463
{ loc (); return TOK_GCC_FLOAT16; }
465
464
else
466
465
return make_identifier ();
467
466
}
468
467
469
- " _Float32" { // clang doesn't have it
470
- if (PARSER.mode ==configt::ansi_ct::flavourt::GCC)
468
+ " _Float32" { if (PARSER.Floatn )
471
469
{ loc (); return TOK_GCC_FLOAT32; }
472
470
else
473
471
return make_identifier ();
474
472
}
475
473
476
- " _Float32x" { // clang doesn't have it
477
- if (PARSER.mode ==configt::ansi_ct::flavourt::GCC)
474
+ " _Float32x" { if (PARSER.Floatn )
478
475
{ loc (); return TOK_GCC_FLOAT32X; }
479
476
else
480
477
return make_identifier ();
481
478
}
482
479
483
- " _Float64" { // clang doesn't have it
484
- if (PARSER.mode ==configt::ansi_ct::flavourt::GCC)
480
+ " _Float64" { if (PARSER.Floatn )
485
481
{ loc (); return TOK_GCC_FLOAT64; }
486
482
else
487
483
return make_identifier ();
488
484
}
489
485
490
- " _Float64x" { // clang doesn't have it
491
- if (PARSER.mode ==configt::ansi_ct::flavourt::GCC)
486
+ " _Float64x" { if (PARSER.Floatn )
492
487
{ loc (); return TOK_GCC_FLOAT64X; }
493
488
else
494
489
return make_identifier ();
@@ -501,16 +496,20 @@ void ansi_c_scanner_init()
501
496
return make_identifier ();
502
497
}
503
498
504
- " __float128" |
505
- " _Float128" { // clang doesn't have it
499
+ " __float128" { // clang doesn't have it
506
500
if (PARSER.mode ==configt::ansi_ct::flavourt::GCC)
507
501
{ loc (); return TOK_GCC_FLOAT128; }
508
502
else
509
503
return make_identifier ();
510
504
}
511
505
512
- " _Float128x" { // clang doesn't have it
513
- if (PARSER.mode ==configt::ansi_ct::flavourt::GCC)
506
+ " _Float128" { if (PARSER.Floatn )
507
+ { loc (); return TOK_GCC_FLOAT128; }
508
+ else
509
+ return make_identifier ();
510
+ }
511
+
512
+ " _Float128x" { if (PARSER.Floatn )
514
513
{ loc (); return TOK_GCC_FLOAT128X; }
515
514
else
516
515
return make_identifier ();
0 commit comments