JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.0p0 Hot Tips | CONFIDENTIAL | CodeSecure Inc |
These are the enums for normalized and unnormalized C/C++ ASTs.
Some of these enums describe the values that might be stored in a specific AST field. The following table decribes how the various API implementation handles such cases.
| API implementation | Handling for enum-valued AST fields |
|---|---|
| C++ | The value is stored in a cs::ast_field of type cs::ast_field_type::ENUMERATION. Get its symbolic name with cs::ast_field::as_enum_value_string; its numerical value with cs::ast_field::as_enum_value_int32. |
| Python | The value is stored in a cs.ast_field of type cs.ast_field_type.ENUMERATION. Get its symbolic name with cs.ast_field.as_enum_value_string; its numerical value with cs.ast_field.as_enum_value_int32. |
| C | A cs_ast_enum_value object encapsulates the enum value and its corresponding string representation, within a cs_ast_field of type csft_enumeration |
| C++ | cs::ast_field of type cs::ast_field_type::ABS_LOC |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.ABS_LOC |
| C | cs_ast_field of type csft_abs_loc |
| C++ | cs::ast_field of type cs::ast_field_type::BOOLEAN |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.BOOLEAN |
| C | cs_ast_field of type csft_boolean. |
| C++ | cs::ast_field of type cs::ast_field_type::BYTES |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.BYTES |
| C | cs_ast_field of type csft_bytes |
| C++ | cs::ast_field of type cs::ast_field_type::FLT128 |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.FLT128 |
| C | cs_ast_field of type csft_flt128. |
| C++ | cs::ast_field of type cs::ast_field_type::FLT32 |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.FLT32 |
| C | cs_ast_field of type csft_flt32. |
| C++ | cs::ast_field of type cs::ast_field_type::FLT64 |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.FLT64 |
| C | cs_ast_field of type csft_flt64. |
| C++ | cs::ast_field of type cs::ast_field_type::FLT96 |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.FLT96 |
| C | cs_ast_field of type csft_flt96. |
| C++ | cs::ast_field of type cs::ast_field_type::CONST_STR or cs::ast_field_type::CONST_STR64 |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.CONST_STR or cs.ast_field_type.CONST_STR64 |
| C | cs_ast_field of type csft_const_str64 |
| C++ | cs::ast_field of type cs::ast_field_type::INT128 |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.INT128 |
| C | cs_ast_field of type csft_int128. |
| C++ | cs::ast_field of type cs::ast_field_type::INT32 |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.INT32 |
| C | cs_ast_field of type csft_int32. |
| C++ | cs::ast_field of type cs::ast_field_type::INT64 |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.INT64 |
| C | cs_ast_field of type csft_csft_int64. |
| C++ | cs::ast_field of type cs::ast_field_type::NULL_ |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.NULL_ |
| C | cs_ast_field of type csft_null. |
| C++ | cs::ast_field of type cs::ast_field_type::SFID |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.SFID |
| C | cs_ast_field of type csft_sfid |
| C++ | cs::ast_field of type cs::ast_field_type::UINT128 |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.UINT128 |
| C | cs_ast_field of type csft_uint128. |
| C++ | cs::ast_field of type cs::ast_field_type::UINT32 |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.UINT32 |
| C | cs_ast_field of type csft_uint32. |
| C++ | cs::ast_field of type cs::ast_field_type::UINT64 |
|---|---|
| Python | cs.ast_field of type cs.ast_field_type.UINT64 |
| C | cs_ast_field of type csft_uint64. |
| csae_c_ik_first | = csae_c_first | |
| csae_c_ik_plain_char_signed | = csae_c_ik_first | plain_char_signed |
| csae_c_ik_plain_char_unsigned | plain_char_unsigned | |
| csae_c_ik_signed_char | signed_char | |
| csae_c_ik_unsigned_char | unsigned_char | |
| csae_c_ik_short | short | |
| csae_c_ik_unsigned_short | unsigned_short | |
| csae_c_ik_int | int | |
| csae_c_ik_unsigned_int | unsigned_int | |
| csae_c_ik_long | long | |
| csae_c_ik_unsigned_long | unsigned_long | |
| csae_c_ik_long_long | long_long | |
| csae_c_ik_unsigned_long_long | unsigned_long_long | |
| csae_c_ik_int128 | int128 | |
| csae_c_ik_unsigned_int128 | unsigned_int128 | |
| csae_c_ik_last |
| csae_c_chk_first | = csae_c_ik_last | |
| csae_c_chk_default_char | = csae_c_chk_first | default_char |
| csae_c_chk_wchar_t | wchar_t | |
| csae_c_chk_char8_t | char8_t | |
| csae_c_chk_char16_t | char16_t | |
| csae_c_chk_char32_t | char32_t | |
| csae_c_chk_last |
| csae_c_fk_first | = csae_c_chk_last | |
| csae_c_fk_float16 | = csae_c_fk_first | float16 |
| csae_c_fk_stdfloat16 | stdfloat16 | |
| csae_c_fk_float | float | |
| csae_c_fk_stdfloat32 | stdfloat32 | |
| csae_c_fk_double | double | |
| csae_c_fk_stdfloat64 | stdfloat64 | |
| csae_c_fk_long_double | long_double | |
| csae_c_fk_float80 | float80 | |
| csae_c_fk_float128 | float128 | |
| csae_c_fk_stdfloat128 | stdfloat128 | |
| csae_c_fk_stdbfloat16 | stdbfloat16 | |
| csae_c_fk_stdfloat32x | stdfloat32x | |
| csae_c_fk_stdfloat64x | stdfloat64x | |
| csae_c_fk_last |
| csae_c_fxpt_first | = csae_c_fk_last | |
| csae_c_fxpt_signed_short_fract | = csae_c_fxpt_first | signed_short_fract |
| csae_c_fxpt_unsigned_short_fract | unsigned_short_fract | |
| csae_c_fxpt_signed_fract | signed_fract | |
| csae_c_fxpt_unsigned_fract | unsigned_fract | |
| csae_c_fxpt_signed_long_fract | signed_long_fract | |
| csae_c_fxpt_unsigned_long_fract | unsigned_long_fract | |
| csae_c_fxpt_signed_short_accum | signed_short_accum | |
| csae_c_fxpt_unsigned_short_accum | unsigned_short_accum | |
| csae_c_fxpt_signed_accum | signed_accum | |
| csae_c_fxpt_unsigned_accum | unsigned_accum | |
| csae_c_fxpt_signed_long_accum | signed_long_accum | |
| csae_c_fxpt_unsigned_long_accum | unsigned_long_accum | |
| csae_c_fxpt_last |
| csae_c_dtk_first | = csae_c_fxpt_last | |
| csae_c_dtk_bool | = csae_c_dtk_first | bool_type |
| csae_c_dtk_wchar_t | wchar_t_type | |
| csae_c_dtk_char8_t | char8_t_type | |
| csae_c_dtk_char16_t | char16_t_type | |
| csae_c_dtk_char32_t | char32_t_type | |
| csae_c_dtk_enum | enum_type | |
| csae_c_dtk_microsoft_sized_int | microsoft_sized_int_type | |
| csae_c_dtk_last |
| csae_c_tck_first | = csae_c_dtk_last | |
| csae_c_tck_unspecified | = csae_c_tck_first | cast-kind-unspecified |
| csae_c_tck_const | cast-kind-const | |
| csae_c_tck_dynamic | cast-kind-dynamic | |
| csae_c_tck_functional_notation | cast-kind-functional-notation | |
| csae_c_tck_reinterpret | cast-kind-reinterpret | |
| csae_c_tck_static | cast-kind-static | |
| csae_c_tck_last |
| csae_c_sc_first | = csae_c_tck_last | |
| csae_c_sc_extern | = csae_c_sc_first | extern |
| csae_c_sc_static | static | |
| csae_c_sc_auto | auto | |
| csae_c_sc_register | register | |
| csae_c_sc_asm | asm | |
| csae_c_sc_unspecified | unspecified | |
| csae_c_sc_last |
| csae_c_dmt_first | = csae_c_sc_last | |
| csae_c_dmt_dllimport | = csae_c_dmt_first | dllimport |
| csae_c_dmt_dllexport | dllexport | |
| csae_c_dmt_thread | thread | |
| csae_c_dmt_microsoft_inline | microsoft_inline | |
| csae_c_dmt_forceinline | forceinline | |
| csae_c_dmt_selectany | selectany | |
| csae_c_dmt_novtable | novtable | |
| csae_c_dmt_noalias | noalias | |
| csae_c_dmt_restrict | decl_modifier_restrict | |
| csae_c_dmt_safebuffers | safebuffers | |
| csae_c_dmt_last |
| csae_c_aom_first | = csae_c_tqt_last | |
| csae_c_aom_invalid | = csae_c_aom_first | invalid_asm_operand_modifier |
| csae_c_aom_input | input | |
| csae_c_aom_output | output | |
| csae_c_aom_modify | modify | |
| csae_c_aom_last |
| csae_c_ak_first | = csae_c_aoc_last | |
| csae_c_ak_unrecognized | = csae_c_ak_first | attribute_unrecognized |
| csae_c_ak_empty_attr | attribute_empty_attr | |
| csae_c_ak_attr_using_prefix | attribute_using_prefix | |
| csae_c_ak_align | attribute_align | |
| csae_c_ak_base_check | attribute_base_check | |
| csae_c_ak_carries_dependency | attribute_carries_dependency | |
| csae_c_ak_deprecated | attribute_deprecated | |
| csae_c_ak_final | attribute_final | |
| csae_c_ak_hiding | attribute_hiding | |
| csae_c_ak_known_semantics | attribute_known_semantics | |
| csae_c_ak_noreturn | attribute_noreturn | |
| csae_c_ak_override | attribute_override | |
| csae_c_ak_nodiscard | attribute_nodiscard | |
| csae_c_ak_noop_dtor | attribute_noop_dtor | |
| csae_c_ak_maybe_unused | attribute_maybe_unused | |
| csae_c_ak_fallthrough | attribute_fallthrough | |
| csae_c_ak_likely | attribute_likely | |
| csae_c_ak_unlikely | attribute_unlikely | |
| csae_c_ak_no_unique_address | attribute_no_unique_address | |
| csae_c_ak_enable_if | attribute_enable_if | |
| csae_c_ak_overloadable | attribute_overloadable | |
| csae_c_ak_pass_object_size | attribute_pass_object_size | |
| csae_c_ak_diagnose_if | attribute_diagnose_if | |
| csae_c_ak_unavailable | attribute_unavailable | |
| csae_c_ak_naked | attribute_naked | |
| csae_c_ak_noinline | attribute_noinline | |
| csae_c_ak_nothrow | attribute_nothrow | |
| csae_c_ak_section | attribute_section | |
| csae_c_ak_alias | attribute_alias | |
| csae_c_ak_alloc_size | attribute_alloc_size | |
| csae_c_ak_always_inline | attribute_always_inline | |
| csae_c_ak_artificial | attribute_artificial | |
| csae_c_ak_cdecl | attribute_cdecl | |
| csae_c_ak_cleanup | attribute_cleanup | |
| csae_c_ak_cold | attribute_cold | |
| csae_c_ak_common | attribute_common | |
| csae_c_ak_const | attribute_const | |
| csae_c_ak_constructor | attribute_constructor | |
| csae_c_ak_destructor | attribute_destructor | |
| csae_c_ak_error | attribute_error | |
| csae_c_ak_ext_vector_type | attribute_ext_vector_type | |
| csae_c_ak_externally_visible | attribute_externally_visible | |
| csae_c_ak_fastcall | attribute_fastcall | |
| csae_c_ak_flatten | attribute_flatten | |
| csae_c_ak_format | attribute_format | |
| csae_c_ak_format_arg | attribute_format_arg | |
| csae_c_ak_gnu_inline | attribute_gnu_inline | |
| csae_c_ak_hot | attribute_hot | |
| csae_c_ak_ifunc | attribute_ifunc | |
| csae_c_ak_init_priority | attribute_init_priority | |
| csae_c_ak_internal_linkage | attribute_internal_linkage | |
| csae_c_ak_malloc | attribute_malloc | |
| csae_c_ak_may_alias | attribute_may_alias | |
| csae_c_ak_mode | attribute_mode | |
| csae_c_ak_no_instrument_function | attribute_no_instrument_function | |
| csae_c_ak_no_check_memory_usage | attribute_no_check_memory_usage | |
| csae_c_ak_nocommon | attribute_nocommon | |
| csae_c_ak_nonnull | attribute_nonnull | |
| csae_c_ak_noplt | attribute_noplt | |
| csae_c_ak_packed | attribute_packed | |
| csae_c_ak_pure | attribute_pure | |
| csae_c_ak_sentinel | attribute_sentinel | |
| csae_c_ak_stdcall | attribute_stdcall | |
| csae_c_ak_strong | attribute_strong | |
| csae_c_ak_target | attribute_target | |
| csae_c_ak_tls_model | attribute_tls_model | |
| csae_c_ak_transparent_union | attribute_transparent_union | |
| csae_c_ak_unused | attribute_unused | |
| csae_c_ak_used | attribute_used | |
| csae_c_ak_vector_size | attribute_vector_size | |
| csae_c_ak_neon_vector_type | attribute_neon_vector_type | |
| csae_c_ak_neon_polyvector_type | attribute_neon_polyvector_type | |
| csae_c_ak_visibility | attribute_visibility | |
| csae_c_ak_warn_unused_result | attribute_warn_unused_result | |
| csae_c_ak_warning | attribute_warning | |
| csae_c_ak_weak | attribute_weak | |
| csae_c_ak_weakref | attribute_weakref | |
| csae_c_ak_abi_tag | attribute_abi_tag | |
| csae_c_ak_appdomain | attribute_appdomain | |
| csae_c_ak_assembly_info | attribute_assembly_info | |
| csae_c_ak_dllexport | attribute_dllexport | |
| csae_c_ak_dllimport | attribute_dllimport | |
| csae_c_ak_edg_interior_ptr_alias | attribute_edg_interior_ptr_alias | |
| csae_c_ak_edg_pin_ptr_alias | attribute_edg_pin_ptr_alias | |
| csae_c_ak_empty_bases | attribute_empty_bases | |
| csae_c_ak_guard | attribute_guard | |
| csae_c_ak_hybrid_patchable | attribute_bybrid_patchable | |
| csae_c_ak_implementation_key | attribute_implementation_key | |
| csae_c_ak_intrin_type | attribute_intrin_type | |
| csae_c_ak_jitintrinsic | attribute_jitintrinsic | |
| csae_c_ak_no_init_all | attribute_no_init_all | |
| csae_c_ak_noalias | attribute_noalias | |
| csae_c_ak_non_user_code | attribute_non_user_code | |
| csae_c_ak_novtable | attribute_novtable | |
| csae_c_ak_process | attribute_process | |
| csae_c_ak_property | attribute_property | |
| csae_c_ak_restrict | attribute_restrict | |
| csae_c_ak_safebuffers | attribute_safebuffers | |
| csae_c_ak_selectany | attribute_selectany | |
| csae_c_ak_spectre | attribute_spectre | |
| csae_c_ak_thread | attribute_thread | |
| csae_c_ak_uuid | attribute_uuid | |
| csae_c_ak_layout_as_external | attribute_layout_as_external | |
| csae_c_ak_no_empty_identity_interface | attribute_no_empty_identity_interface | |
| csae_c_ak_no_ftm | attribute_no_ftm | |
| csae_c_ak_no_refcount | attribute_no_refcount | |
| csae_c_ak_no_release_return | attribute_no_release_return | |
| csae_c_ak_no_weakreferencesource | attribute_no_weakreferencesource | |
| csae_c_ak_one_phase_constructed | attribute_one_phase_constructed | |
| csae_c_ak_allocator | attribute_allocator | |
| csae_c_ak_csm_proxy_type | attribute_csm_proxy_type | |
| csae_c_ak_csm_opaque_type | attribute_csm_opaque_type | |
| csae_c_ak_csm_macro_enum | attribute_csm_macro_enum | |
| csae_c_ak_csm_macro_value | attribute_csm_macro_value | |
| csae_c_ak_csm_ignore_dup_decl | attribute_csm_ignore_dup_decl | |
| csae_c_ak_availability | attribute_availability | |
| csae_c_ak_using_if_exists | attribute_using_if_exists | |
| csae_c_ak_conditional_explicit | attribute_conditional_explicit | |
| csae_c_ak_pragma_pack_state | attribute_pragma_pack_state | |
| csae_c_ak_data | attribute_data | |
| csae_c_ak_tiny | attribute_tiny | |
| csae_c_ak_tinyflash | attribute_tinyflash | |
| csae_c_ak_flash | attribute_flash | |
| csae_c_ak_io | attribute_io | |
| csae_c_ak_generic | attribute_generic | |
| csae_c_ak_data16 | attribute_data16 | |
| csae_c_ak_data24 | attribute_data24 | |
| csae_c_ak_data32 | attribute_data32 | |
| csae_c_ak_sfr | attribute_sfr | |
| csae_c_ak_saddr | attribute_saddr | |
| csae_c_ak_vtab | attribute_vtab | |
| csae_c_ak_regvar | attribute_regvar | |
| csae_c_ak_eeprom | attribute_eeprom | |
| csae_c_ak_huge | attribute_huge | |
| csae_c_ak_iar_near | attribute_iar_near | |
| csae_c_ak_iar_far | attribute_iar_far | |
| csae_c_ak_brel | attribute_brel | |
| csae_c_ak_last |
| csae_c_af_first | = csae_c_ak_last | |
| csae_c_af_internal | = csae_c_af_first | internal |
| csae_c_af_std | std | |
| csae_c_af_gnu | gnu | |
| csae_c_af_ms_declspec | ms_declspec | |
| csae_c_af_alignas | alignas | |
| csae_c_af_has_cpp_attribute | has_cpp_attribute | |
| csae_c_af_last |
| csae_c_ihk_first | = csae_c_af_last | |
| csae_c_ihk_none | = csae_c_ihk_first | no_inheritance |
| csae_c_ihk_single | single | |
| csae_c_ihk_multiple | multiple | |
| csae_c_ihk_virtual | virtual | |
| csae_c_ihk_incomplete | incomplete | |
| csae_c_ihk_last | = csae_c_ihk_incomplete |
| csae_c_evk_first | = csae_c_anr_last | |
| csae_c_evk_unspecified | = csae_c_evk_first | visibility_unspecified |
| visibility_hidden | ||
| csae_c_evk_protected | visibility_protected | |
| csae_c_evk_internal | visibility_internal | |
| csae_c_evk_default | visibility_default | |
| csae_c_evk_last |
| csae_c_fpp_first | = csae_c_evk_last | |
| csae_c_fpp_short | = csae_c_fpp_first | fixed_point_precision_short |
| csae_c_fpp_default | fixed_point_precision_default | |
| csae_c_fpp_long | fixed_point_precision_long | |
| csae_c_fpp_last |
| csae_c_cc_first | = csae_c_fpp_last | |
| csae_c_cc_default | = csae_c_cc_first | calling_convention_default |
| csae_c_cc_cdecl | cdecl | |
| csae_c_cc_fastcall | fastcall | |
| csae_c_cc_stdcall | stdcall | |
| csae_c_cc_thiscall | thiscall | |
| csae_c_cc_vectorcall | vectorcall | |
| csae_c_cc_clrcall | clrcall | |
| csae_c_cc_last |
| csae_c_auk_first | = csae_c_cc_last | |
| csae_c_auk_none | = csae_c_auk_first | not_an_anonymous_union |
| csae_c_auk_variable | variable | |
| csae_c_auk_field | field | |
| csae_c_auk_last |
| csae_c_cstk_first | = csae_c_auk_last | |
| csae_c_cstk_unknown | = csae_c_cstk_first | unknown |
| csae_c_cstk_phony | phony | |
| csae_c_cstk_universal | universal | |
| csae_c_cstk_last |
| csae_c_as_first | = csae_c_sfk_last | |
| csae_c_as_public | = csae_c_as_first | public |
| csae_c_as_protected | access_protected | |
| csae_c_as_private | private | |
| csae_c_as_inaccessible | inaccessible | |
| csae_c_as_last |
| csae_c_sl_first | = csae_c_onk_last | |
| csae_c_sl_Cplusplus | = csae_c_sl_first | cplusplus |
| csae_c_sl_C | clang | |
| csae_c_sl_last |
| csae_c_btk_first | = csae_c_sl_last | |
| csae_c_btk_char | = csae_c_btk_first | base_type_char |
| csae_c_btk_short | base_type_short | |
| csae_c_btk_int | base_type_int | |
| csae_c_btk_long | base_type_long | |
| csae_c_btk_long_long | base_type_long_long | |
| csae_c_btk_float | base_type_float | |
| csae_c_btk_double | base_type_double | |
| csae_c_btk_long_double | base_type_long_double | |
| csae_c_btk_pointer | base_type_pointer | |
| csae_c_btk_ptr_to_data_member | base_type_ptr_to_data_member | |
| csae_c_btk_ptr_to_member_function | base_type_ptr_to_member_function | |
| csae_c_btk_virtual_function_info | base_type_virtual_function_info | |
| csae_c_btk_ptr_to_virtual_base_class | base_type_ptr_to_virtual_base_class | |
| csae_c_btk_last |
| csae_c_endian_first | = csae_c_btk_last | |
| csae_c_endian_big | = csae_c_endian_first | endian_big |
| csae_c_endian_little | endian_little | |
| csae_c_endian_last |
| csae_c_atmk_first | = csae_c_bok_last | |
| csae_c_atmk_none | = csae_c_atmk_first | atmk_none |
| csae_c_atmk_init | atmk_init | |
| csae_c_atmk_store | atmk_store | |
| csae_c_atmk_load | atmk_load | |
| csae_c_atmk_last |