@@ -303,12 +303,11 @@ affectedbymacroexpansion(
303303 int inv: @macroinvocation ref
304304);
305305
306- /*
307- case @macroinvocations.kind of
308- 1 = macro expansion
309- | 2 = other macro reference
310- ;
311- */
306+ case @macroinvocation.kind of
307+ 1 = @macro_expansion
308+ | 2 = @other_macro_reference
309+ ;
310+
312311macroinvocations(
313312 unique int id: @macroinvocation,
314313 int macro_id: @ppd_define ref,
@@ -345,28 +344,37 @@ macro_argument_expanded(
345344);
346345
347346/*
348- case @function.kind of
349- 1 = normal
350- | 2 = constructor
351- | 3 = destructor
352- | 4 = conversion
353- | 5 = operator
354- | 6 = builtin // GCC built-in functions, e.g. __builtin___memcpy_chk
355- ;
347+ case @function.kind of
348+ 1 = @normal_function
349+ | 2 = @ constructor
350+ | 3 = @ destructor
351+ | 4 = @conversion_function
352+ | 5 = @ operator
353+ | 6 = @builtin_function // GCC built-in functions, e.g. __builtin___memcpy_chk
354+ ;
356355*/
356+
357357functions(
358358 unique int id: @function,
359359 string name: string ref,
360360 int kind: int ref
361361);
362362
363- function_entry_point(int id: @function ref, unique int entry_point: @stmt ref);
363+ function_entry_point(
364+ int id: @function ref,
365+ unique int entry_point: @stmt ref
366+ );
364367
365- function_return_type(int id: @function ref, int return_type: @type ref);
368+ function_return_type(
369+ int id: @function ref,
370+ int return_type: @type ref
371+ );
366372
367- /** If `function` is a coroutine, then this gives the
368- std::experimental::resumable_traits instance associated with it,
369- and the variables representing the `handle` and `promise` for it. */
373+ /**
374+ * If `function` is a coroutine, then this gives the `std::experimental::resumable_traits`
375+ * instance associated with it, and the variables representing the `handle` and `promise`
376+ * for it.
377+ */
370378coroutine(
371379 unique int function: @function ref,
372380 int traits: @type ref,
@@ -392,7 +400,10 @@ function_deleted(unique int id: @function ref);
392400
393401function_defaulted(unique int id: @function ref);
394402
395- member_function_this_type(unique int id: @function ref, int this_type: @type ref);
403+ member_function_this_type(
404+ unique int id: @function ref,
405+ int this_type: @type ref
406+ );
396407
397408#keyset[id, type_id]
398409fun_decls(
@@ -495,7 +506,10 @@ params(
495506 int type_id: @type ref
496507);
497508
498- overrides(int new: @function ref, int old: @function ref);
509+ overrides(
510+ int new: @function ref,
511+ int old: @function ref
512+ );
499513
500514#keyset[id, type_id]
501515membervariables(
@@ -541,63 +555,63 @@ enumconstants(
541555
542556@localscopevariable = @localvariable | @parameter;
543557
544- /*
545- Built-in types are the fundamental types, e.g., integral, floating, and void.
546-
547- case @builtintype.kind of
548- 1 = error
549- | 2 = unknown
550- | 3 = void
551- | 4 = boolean
552- | 5 = char
553- | 6 = unsigned_char
554- | 7 = signed_char
555- | 8 = short
556- | 9 = unsigned_short
557- | 10 = signed_short
558- | 11 = int
559- | 12 = unsigned_int
560- | 13 = signed_int
561- | 14 = long
562- | 15 = unsigned_long
563- | 16 = signed_long
564- | 17 = long_long
565- | 18 = unsigned_long_long
566- | 19 = signed_long_long
567- | 20 = __int8 // Microsoft-specific
568- | 21 = __int16 // Microsoft-specific
569- | 22 = __int32 // Microsoft-specific
570- | 23 = __int64 // Microsoft-specific
571- | 24 = float
572- | 25 = double
573- | 26 = long_double
574- | 27 = _Complex_float // C99-specific
575- | 28 = _Complex_double // C99-specific
576- | 29 = _Complex_long double // C99-specific
577- | 30 = _Imaginary_float // C99-specific
578- | 31 = _Imaginary_double // C99-specific
579- | 32 = _Imaginary_long_double // C99-specific
580- | 33 = wchar_t // Microsoft-specific
581- | 34 = decltype_nullptr // C++11
582- | 35 = __int128
583- | 36 = unsigned___int128
584- | 37 = signed___int128
585- | 38 = __float128
586- | 39 = _Complex___float128
587- | 40 = _Decimal32
588- | 41 = _Decimal64
589- | 42 = _Decimal128
590- | 43 = char16_t
591- | 44 = char32_t
592- | 45 = _Float32
593- | 46 = _Float32x
594- | 47 = _Float64
595- | 48 = _Float64x
596- | 49 = _Float128
597- | 50 = _Float128x
598- | 51 = char8_t
599- ;
600- */
558+ /**
559+ * Built-in types are the fundamental types, e.g., integral, floating, and void.
560+ */
561+ case @builtintype.kind of
562+ 1 = @errortype
563+ | 2 = @unknowntype
564+ | 3 = @ void
565+ | 4 = @ boolean
566+ | 5 = @ char
567+ | 6 = @ unsigned_char
568+ | 7 = @ signed_char
569+ | 8 = @ short
570+ | 9 = @ unsigned_short
571+ | 10 = @ signed_short
572+ | 11 = @ int
573+ | 12 = @ unsigned_int
574+ | 13 = @ signed_int
575+ | 14 = @ long
576+ | 15 = @ unsigned_long
577+ | 16 = @ signed_long
578+ | 17 = @ long_long
579+ | 18 = @ unsigned_long_long
580+ | 19 = @ signed_long_long
581+ // ... 20 Microsoft-specific __int8
582+ // ... 21 Microsoft-specific __int16
583+ // ... 22 Microsoft-specific __int32
584+ // ... 23 Microsoft-specific __int64
585+ | 24 = @ float
586+ | 25 = @ double
587+ | 26 = @ long_double
588+ | 27 = @complex_float // C99-specific _Complex float
589+ | 28 = @complex_double // C99-specific _Complex double
590+ | 29 = @complex_long_double // C99-specific _Complex long double
591+ | 30 = @imaginary_float // C99-specific _Imaginary float
592+ | 31 = @imaginary_double // C99-specific _Imaginary double
593+ | 32 = @imaginary_long_double // C99-specific _Imaginary long double
594+ | 33 = @ wchar_t // Microsoft-specific
595+ | 34 = @ decltype_nullptr // C++11
596+ | 35 = @int128 // __int128
597+ | 36 = @unsigned_int128 // unsigned __int128
598+ | 37 = @signed_int128 // signed __int128
599+ | 38 = @float128 // __float128
600+ | 39 = @complex_float128 // _Complex __float128
601+ | 40 = @decimal32 // _Decimal32
602+ | 41 = @decimal64 // _Decimal64
603+ | 42 = @decimal128 // _Decimal128
604+ | 43 = @ char16_t
605+ | 44 = @ char32_t
606+ | 45 = @std_float32 // _Float32
607+ | 46 = @float32x // _Float32x
608+ | 47 = @std_float64 // _Float64
609+ | 48 = @float64x // _Float64x
610+ | 49 = @std_float128 // _Float128
611+ | 50 = @float128x // _Float128x
612+ | 51 = @ char8_t
613+ ;
614+
601615builtintypes(
602616 unique int id: @builtintype,
603617 string name: string ref,
@@ -607,23 +621,23 @@ builtintypes(
607621 int alignment: int ref
608622);
609623
610- /*
611- Derived types are types that are directly derived from existing types and
612- point to, refer to, transform type data to return a new type.
613-
614- case @derivedtype.kind of
615- 1 = pointer
616- | 2 = reference
617- | 3 = type_with_specifiers
618- | 4 = array
619- | 5 = gnu_vector
620- | 6 = routineptr
621- | 7 = routinereference
622- | 8 = rvalue_reference // C++11
624+ /**
625+ * Derived types are types that are directly derived from existing types and
626+ * point to, refer to, transform type data to return a new type.
627+ */
628+ case @derivedtype.kind of
629+ 1 = @ pointer
630+ | 2 = @ reference
631+ | 3 = @ type_with_specifiers
632+ | 4 = @ array
633+ | 5 = @ gnu_vector
634+ | 6 = @ routineptr
635+ | 7 = @ routinereference
636+ | 8 = @ rvalue_reference // C++11
623637// ... 9 type_conforming_to_protocols deprecated
624- | 10 = block
625- ;
626- */
638+ | 10 = @ block
639+ ;
640+
627641derivedtypes(
628642 unique int id: @derivedtype,
629643 string name: string ref,
@@ -675,23 +689,24 @@ decltypes(
675689);
676690
677691/*
678- case @usertype.kind of
679- 1 = struct
680- | 2 = class
681- | 3 = union
682- | 4 = enum
683- | 5 = typedef // classic C: typedef typedef type name
684- | 6 = template
685- | 7 = template_parameter
686- | 8 = template_template_parameter
687- | 9 = proxy_class // a proxy class associated with a template parameter
692+ case @usertype.kind of
693+ 1 = @ struct
694+ | 2 = @ class
695+ | 3 = @ union
696+ | 4 = @ enum
697+ | 5 = @ typedef // classic C: typedef typedef type name
698+ | 6 = @ template
699+ | 7 = @ template_parameter
700+ | 8 = @ template_template_parameter
701+ | 9 = @ proxy_class // a proxy class associated with a template parameter
688702// ... 10 objc_class deprecated
689703// ... 11 objc_protocol deprecated
690704// ... 12 objc_category deprecated
691- | 13 = scoped_enum
692- | 14 = using_alias // a using name = type style typedef
693- ;
705+ | 13 = @ scoped_enum
706+ | 14 = @ using_alias // a using name = type style typedef
707+ ;
694708*/
709+
695710usertypes(
696711 unique int id: @usertype,
697712 string name: string ref,
@@ -1162,7 +1177,10 @@ case @funbindexpr.kind of
11621177| 2 = @adl_call // a call whose target is only found by ADL
11631178;
11641179*/
1165- iscall(unique int caller: @funbindexpr ref, int kind: int ref);
1180+ iscall(
1181+ unique int caller: @funbindexpr ref,
1182+ int kind: int ref
1183+ );
11661184
11671185numtemplatearguments(
11681186 unique int expr_id: @expr ref,
0 commit comments