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.2p0 | CONFIDENTIAL | CodeSecure Inc |
C functions and types for visitors, warnings, and metrics.
CodeSonar plug-in modules can define checks to do virtually anything. CodeSonar plug-ins interface with CodeSonar by registering various visitors with the system.| #define CSONAR_PLUGIN_H | ||
| #define CSONAR_EXPORT | CS_DLLIMPORT | |
| #define CSONAR_EXPORT_VARIABLE_DECL | extern CS_DLLIMPORT | |
| #define CSONAR_PLUGIN_EXPORT | CS_DLLEXPORT | |
| #define CSONAR_EXPORT_VARIABLE_DEF | ( INVALID, INVALID ) | |
| #define CS_WARNING_ID_STATIC_NULL | { CSUINT64_ZERO, 0, 0 } | Use to initialize a cs_warning_id variable. |
| #define CS_WARNING_RETRACTION_INFO_STATIC_NULL | { 0, 0, 0, NULL, NULL, NULL } | Use to initialize a cs_warning_retraction_info_t variable. |
| #define cs_baserank_from_manifest | -10000.0 |
| Definition | typedef struct _WARNINGCLASS * cs_warningclass_t |
|---|---|
| Notes | A warning class. |
| Definition | typedef csuint32 cs_report_flags |
|---|---|
| Notes | For use with csonar_report_warning(), csonar_report_location_warning(), and csonar_report_location_warning_in_pdg().
Values for cs_report_flags are defined in an anonymous enum, which this documentation will refer to as anonymous_cs_report_flags_enum. |
| Definition | typedef csuint32 cs_cfg_path_node_flags |
|---|---|
| Notes | For use with cs_cfg_path_node_t, which in turn is used with csonar_report_path_warning().
Values for cs_cfg_path_node_flags are defined in an anonymous enum, which this documentation will refer to as anonymous_cs_cfg_path_node_flags_enum. |
| Definition | typedef csuint32 cs_locations_node_flags |
|---|---|
| Notes | For use with cs_locations_node_t, which in turn is used with csonar_report_locations_warning() and csonar_report_locations_warning_in_pdg().
Values for cs_locations_node_flags are defined in an anonymous enum, which this documentation will refer to as anonymous_cs_locations_node_flags_enum. |
| Definition | typedef cs_metric_iterator cs_metric_class_iterator |
|---|---|
| Notes | An iterator over the metric classes at a specified granularity.
Used by: API clients should never directly access the fields of this type. This is only exported so that clients may stack allocate these things. Future versions of the API reserve the right to change the definition of this iterator type. |
| Definition | typedef struct _cs_metricclass_t * cs_metricclass_t |
|---|---|
| Notes | A metric class. |
| Definition | typedef csuint32 cs_metricclass_flags |
|---|---|
| Notes | Flags for declaring a new metric class (cs_metricclass_t).
Used by
Values for cs_metricclass_flags are defined in an anonymous enum, which this documentation will refer to as anonymous_cs_metricclass_flags_enum. |
| Definition | typedef struct cs_cfg_path_node_t cs_cfg_path_node_t |
|---|---|
| Notes | A node on a CFG path. |
| Definition | typedef struct cs_locations_node_t cs_locations_node_t |
|---|---|
| Notes | A node on a list of warning locations. |
| Definition | typedef struct cs_warning_id cs_warning_id |
|---|---|
| Notes | A unique identifier for a warning instance. |
| Definition | typedef struct cs_warning_retraction_info_t cs_warning_retraction_info_t |
|---|---|
| Notes | Describes the cases in which a warning instance should be retracted. |
| Definition | typedef struct __csonar_pdg_list csonar_pdg_list |
|---|---|
| Notes | Fields of this type are private and may change in future versions. |
| Definition | typedef struct __csonar_pdg_callers_iter csonar_pdg_callers_iter |
|---|---|
| Notes | Fields of this type are private and may change in future versions. |
| Definition | typedef const cs_language * cs_langs_t |
|---|---|
| Notes | A list of languages.
Example 1: Matches C and C++.
static const cs_language c_and_cpp[] = { csl_edgcp_c, csl_edgcp_cpp, csl_null };
Example 2: Matches all languages.
static const cs_language c_and_cpp[] = { csl_wildcard, csl_null };
|
| Definition | typedef void * cs_visitor_ctx_t |
|---|---|
| Notes | A user-supplied context, specified when adding visitors.
The context is passed along to the visitor when the visitor is invoked. CodeSonar will never dereference or attempt to interpret values of this type. |
| Definition | typedef void(* cs_thunk_t)(cs_visitor_ctx_t) |
|---|---|
| Notes | A function pointer for use in program visitors.
Program visitors are added by:
|
| Definition | typedef void(* cs_uid_visitor_t)(cs_uid, cs_visitor_ctx_t) |
|---|---|
| Notes | A function pointer for use in compilation unit visitors.
Compilation unit visitors are added by: |
| Definition | typedef void(* cs_pdg_visitor_t)(cs_pdg, cs_visitor_ctx_t) |
|---|---|
| Notes | A function pointer for use in procedure (cs_pdg) visitors.
Procedure visitors are added by |
| Definition | typedef void(* cs_pdg_vertex_visitor_t)(cs_pdg_vertex, cs_visitor_ctx_t) |
|---|---|
| Notes | A function pointer for use in point (cs_pdg_vertex) visitors.
Point visitors are added by |
| Definition | typedef void(* cs_abs_loc_visitor_t)(cs_abs_loc, cs_visitor_ctx_t) |
|---|---|
| Notes | A function pointer for use in symbol (cs_abs_loc) visitors.
Symbol visitors are added by |
| Definition | typedef void(* cs_sfi_visitor_t)(cs_sfid, cs_visitor_ctx_t) |
|---|---|
| Notes | A function pointer for use in source file and source file instance visitors.
Source file visitors are added by
Source file instance visitors are added by
The distinction between a source file visitor and a source file instance visitor is that a source file visitor is only applied to one instance per file (when the file language is suitable): the first instance encountered in the relevant traversal phase. |
| Definition | typedef cs_string(* cs_listing_transformer_t)(cs_sfid, cs_line, cs_const_string, cs_visitor_ctx_t) |
|---|
| Definition | typedef struct _CS_INFO_WINDOW_ITEMS_T * cs_info_window_items_t |
|---|
| Definition | typedef void * cs_step_user_state_t |
|---|---|
| Notes | A user-defined state type.
CodeSonar will never attempt to dereference this type; it is treated opaquely. |
| Definition | typedef const struct _WEIGHT ** cs_step_csonar_xform_t |
|---|---|
| Notes | A program state transform along a path in the CFG. |
| Definition | typedef struct _RPATH_NODE * cs_step_path_t |
|---|---|
| Notes | A path through the CFG. |
| Definition | typedef struct cs_step_visitor_dispatch_t cs_step_visitor_dispatch_t |
|---|---|
| Notes | Encapsulates all information about a step visitor. |
| Definition | typedef const cs_step_visitor_dispatch_t cs_const_step_visitor_dispatch_t |
|---|---|
| Notes | The const form of cs_step_visitor_dispatch_t. |
| Definition | typedef enum csonar_analysis_mode csonar_analysis_mode |
|---|---|
| Notes | The possible modes of a CodeSonar analysis process: the possible return values for csonar_get_analysis_mode(). |
| Definition | typedef enum csonar_multiprocess_mode csonar_multiprocess_mode |
|---|---|
| Notes | The possible multiprocess modes of a CodeSonar analysis process: the possible return values for csonar_get_multiprocess_mode().
See Parallelism in CodeSonar: Analysis for more information. |
| Definition | typedef csuint32 csonar_warningclass_flags |
|---|---|
| Notes | Flags for creating a new warning class.
Values for csonar_warningclass_flags are defined in an anonymous enum, which this documentation will refer to as anonymous_csonar_warningclass_flags_enum. |
| Definition | typedef struct csonar_pdg_callees_iter csonar_pdg_callees_iter |
|---|---|
| Notes | An iterator over the callee procedures (cs_pdg) from a specific point (cs_pdg_vertex), taking into account any translations incurred by csonar_replace_*() calls and the FUNCTION_MAP configuration file variable.
Used by
A direct call site (that is, a cs_pdg_vertex of kind cs_vertex_kind_call_site) will always have exactly one callee. As an alternative to setting up an iterator, you can use csonar_pdg_vertex_callee() to retrieve the callee, taking into account any translations incurred by csonar_replace_*() calls and the FUNCTION_MAP configuration file variable. An indirect call site (a cs_pdg_vertex of kind cs_vertex_kind_indirect_call) can have zero or more callees. |
| Definition | typedef struct csonar_pdg_callees_no_reroute_iter csonar_pdg_callees_no_reroute_iter |
|---|---|
| Notes | An iterator over the callee procedures (cs_pdg) from a specific point (cs_pdg_vertex), ignoring any translations incurred by csonar_replace_*() calls and the FUNCTION_MAP configuration file variable.
Used by
A direct call site (that is, a cs_pdg_vertex of kind cs_vertex_kind_call_site) will always have exactly one callee. As an alternative to setting up an iterator, you can use csonar_pdg_vertex_callee_no_reroute() to retrieve the callee, ignoring any translations incurred by csonar_replace_*() calls and the FUNCTION_MAP configuration file variable. An indirect call site (a cs_pdg_vertex of kind cs_vertex_kind_indirect_call) can have zero or more callees. |
| Definition | typedef enum cs_access_path_operator cs_access_path_operator |
|---|---|
| Notes | Operators that can occur on an access path (cs_access_path). |
| Definition | typedef struct cs_access_path_struct cs_access_path |
|---|---|
| Notes | Stores information about a step on an access path; generally occurs in a list.
For example, suppose we have the following declarations:
char *p;
char **pp;
char A[10];
float f;
struct mys {
int i;
double d;
};
struct mys s;
struct mys *sp;
Note that CSAPOP_ADDR can only ever occur in a two element list: {{CSAPOP_ADDR}, {CSAPOP_TERMINATOR}}. No other access paths containing the address operator correspond to legal expressions. |
| Definition | typedef const cs_access_path cs_const_access_path |
|---|---|
| Notes | The const form of cs_access_path. |
| Definition | typedef struct cs_xform_expr cs_xform_expr |
|---|---|
| Notes | Used to specify parts of a query expression for csonar_xform_query(). |
| Definition | typedef cs_result(* cs_rpc_handler_fn_t)(cs_const_string, cs_string *, void *) |
|---|---|
| Notes | A function pointer for use in remote procedure call (RPC) handling.
Used by csonar_register_rpc_handler(). |
| Definition | typedef enum {
|
||||||||
|---|---|---|---|---|---|---|---|---|---|
| Notes | This is an anonymous enumeration containing values for cs_report_flags - the anonymous_cs_report_flags_enum label is provided only for ease of reference within this documentation. |
| Definition | typedef enum {
|
||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Notes | This is an anonymous enumeration containing values for cs_cfg_path_node_flags - the anonymous_cs_cfg_path_node_flags_enum label is provided only for ease of reference within this documentation. |
| Definition | typedef enum {
|
||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Notes | This is an anonymous enumeration containing values for cs_locations_node_flags - the anonymous_cs_locations_node_flags_enum label is provided only for ease of reference within this documentation. |
| Definition | typedef enum {
|
||||||||
|---|---|---|---|---|---|---|---|---|---|
| Notes | This is an anonymous enumeration containing values for cs_metricclass_flags - the anonymous_cs_metricclass_flags_enum label is provided only for ease of reference within this documentation.
csmetric_flags_auto and csmetric_flags_post_analysis interact as follows.
The CS_ERROR_INVALID_PHASE_FOR_OPERATION documentation has lists of the csonar_add_*_visitor() functions associated with the different phases. |
| Definition | typedef enum {
|
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Notes | The possible modes of a CodeSonar analysis process: the possible return values for csonar_get_analysis_mode(). |
| Definition | typedef enum {
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Notes | The possible multiprocess modes of a CodeSonar analysis process: the possible return values for csonar_get_multiprocess_mode().
See Parallelism in CodeSonar: Analysis for more information. |
| Definition | typedef enum {
|
||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Notes | This is an anonymous enumeration containing values for csonar_warningclass_flags - the anonymous_csonar_warningclass_flags_enum label is provided only for ease of reference within this documentation. |
| Definition | typedef enum {
|
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Notes | Operators that can occur on an access path (cs_access_path). |
| Definition | typedef enum {
|
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Notes | The possible outcomes of a transform query with csonar_xform_query(). |
| Definition | typedef enum {
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Notes | Modes of evaluating a cs_xform_expr.
Note that constants a, b, and c cannot be modified by a tranformation, so the value of a cs_xform_expr representing an expression of the form (ax+b)/c can only change if x changes. There are two possible cases:
Example:
int *p;
void f(){
if( *p == 1 ){
int i = 2;
int j = 3;
j = 4;
*p = 5;
*p = 6;
p = &i;
p = &j;
return;
}
}
If you were to query about the value of *p using the cs_step_csonar_xform_t covering the path from the start of the function to the return statement, here are the different values that would be observed for the different modes: |
| Definition | typedef enum {
|
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Notes | The operators that can be used in a transform query with csonar_xform_query(). |
| struct cs_cfg_path_node_t |
| struct cs_locations_node_t |
| struct cs_warning_id |
| struct cs_warning_retraction_info_t |
| struct __csonar_pdg_list |
| struct __csonar_pdg_callers_iter |
| struct cs_step_visitor_dispatch_t |
| struct csonar_pdg_callees_iter |
| struct csonar_pdg_callees_no_reroute_iter |
| struct cs_access_path_struct |
| union cs_access_path_struct::variant_union |
| struct cs_xform_expr |
| csonar_analysis_mode | csonar_get_analysis_mode ( )
Get the analysis mode for the CodeSonar process in which the plug-in is running.
|
| cs_const_string | csonar_analysis_mode_name ( csonar_analysis_mode m )
Get the name of a csonar_analysis_mode.
|
| csonar_multiprocess_mode | csonar_get_multiprocess_mode ( )
Get the multiprocess mode for the CodeSonar process in which the plug-in is running.
|
| cs_const_string | csonar_multiprocess_mode_name ( csonar_multiprocess_mode m )
Get the name of a csonar_multiprocess_mode.
|
| cs_result | csonar_add_setup_visitor ( cs_langs_t langs, cs_thunk_t th, cs_visitor_ctx_t ctx )
Add th as a setup visitor for programs whose languages appear in langs.
|
| cs_result | csonar_add_program_visitor ( cs_langs_t langs, cs_thunk_t th, cs_visitor_ctx_t ctx )
Add th as a serial depth-first program visitor for programs whose languages appear in langs.
|
| cs_result | csonar_add_uid_visitor ( cs_langs_t langs, cs_uid_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a serial depth-first phase visitor for compilation units (cs_uid) whose languages appear in langs.
|
| cs_result | csonar_add_pdg_visitor ( cs_langs_t langs, cs_pdg_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a serial depth-first phase visitor for procedures (cs_pdg) in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_abs_loc_visitor ( cs_langs_t langs, cs_abs_loc_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a serial depth-first phase visitor for symbols (cs_abs_loc) in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_pdg_vertex_visitor ( cs_langs_t langs, cs_pdg_vertex_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a serial depth-first phase visitor for points (cs_pdg_vertex) in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_pdg_finish_visitor ( cs_langs_t langs, cs_pdg_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a serial depth-first phase finish visitor for procedures (cs_pdg) in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_sf_visitor ( cs_langs_t langs, cs_sfi_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a serial depth-first phase visitor for files in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_sfi_visitor ( cs_langs_t langs, cs_sfi_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a serial depth-first phase visitor for file instances in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_sfi_finish_visitor ( cs_langs_t langs, cs_sfi_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a serial depth-first phase visitor for file instances in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_sf_finish_visitor ( cs_langs_t langs, cs_sfi_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a serial depth-first phase finish visitor for files in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_uid_finish_visitor ( cs_langs_t langs, cs_uid_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a serial depth-first phase finish visitor for compilation units (cs_uid) whose languages appear in langs.
|
| cs_result | csonar_add_program_finish_visitor ( cs_langs_t langs, cs_thunk_t th, cs_visitor_ctx_t ctx )
Add th as a serial depth-first program finish visitor for programs whose languages appear in langs.
|
| cs_result | csonar_add_program_parallel_visitor ( cs_langs_t langs, cs_thunk_t th, cs_visitor_ctx_t ctx )
Add th as a parallel depth-first program visitor for programs whose languages appear in langs.
|
| cs_result | csonar_add_uid_parallel_visitor ( cs_langs_t langs, cs_uid_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a parallel depth-first phase visitor for compilation units (cs_uid) whose languages appear in langs.
|
| cs_result | csonar_add_pdg_parallel_visitor ( cs_langs_t langs, cs_pdg_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a parallel depth-first phase visitor for procedures (cs_pdg) in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_abs_loc_parallel_visitor ( cs_langs_t langs, cs_abs_loc_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a parallel depth-first phase visitor for symbols (cs_abs_loc) in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_pdg_vertex_parallel_visitor ( cs_langs_t langs, cs_pdg_vertex_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a parallel depth-first phase visitor for points (cs_pdg_vertex) in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_pdg_parallel_finish_visitor ( cs_langs_t langs, cs_pdg_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a parallel depth-first phase finish visitor for procedures (cs_pdg) in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_sf_parallel_visitor ( cs_langs_t langs, cs_sfi_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a parallel depth-first phase visitor for files in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_sfi_parallel_visitor ( cs_langs_t langs, cs_sfi_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a parallel depth-first phase visitor for file instances in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_sfi_parallel_finish_visitor ( cs_langs_t langs, cs_sfi_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a parallel depth-first phase visitor for file instances in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_sf_parallel_finish_visitor ( cs_langs_t langs, cs_sfi_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a parallel depth-first phase finish visitor for files in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_uid_parallel_finish_visitor ( cs_langs_t langs, cs_uid_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a parallel depth-first phase finish visitor for compilation units (cs_uid) whose languages appear in langs.
|
| cs_result | csonar_add_program_parallel_finish_visitor ( cs_langs_t langs, cs_thunk_t th, cs_visitor_ctx_t ctx )
Add th as a parallel depth-first program finish visitor for programs whose languages appear in langs.
|
| cs_result | csonar_add_program_bottom_up_visitor ( cs_langs_t langs, cs_thunk_t th, cs_visitor_ctx_t ctx )
Add th as a bottom-up program visitor for programs whose languages appear in langs.
|
| cs_result | csonar_add_pdg_bottom_up_visitor ( cs_langs_t langs, cs_pdg_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a bottom-up phase visitor for procedures (cs_pdg) in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_pdg_vertex_bottom_up_visitor ( cs_langs_t langs, cs_pdg_vertex_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a bottom-up phase visitor for points (cs_pdg_vertex) in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_step_bottom_up_visitor ( cs_langs_t langs, cs_const_step_visitor_dispatch_t * vis, cs_visitor_ctx_t ctx )
Add vis as a bottom-up phase visitor for CFG edges as they are stepped over by the analysis.
|
| cs_result | csonar_add_pdg_bottom_up_finish_visitor ( cs_langs_t langs, cs_pdg_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a bottom-up phase finish visitor for procedures (cs_pdg) in compilation units whose languages appear in langs.
|
| cs_result | csonar_add_program_bottom_up_finish_visitor ( cs_langs_t langs, cs_thunk_t th, cs_visitor_ctx_t ctx )
Add th as a bottom-up program finish visitor for programs whose languages appear in langs.
|
| cs_result | csonar_add_program_drop_visitor ( cs_thunk_t th, cs_visitor_ctx_t ctx )
Add th to the list of program drop visitors, which are invoked at the beginning of the drop phase.
|
| cs_result | csonar_add_uid_drop_visitor ( cs_uid_visitor_t vis, cs_visitor_ctx_t ctx )
Add vis as a drop phase compilation unit visitor.
|
| cs_result | csonar_add_pdg_drop_visitor ( cs_pdg_visitor_t vis, cs_visitor_ctx_t ctx ) |
| cs_result | csonar_add_global_abs_loc_drop_visitor ( cs_abs_loc_visitor_t vis, cs_visitor_ctx_t ctx ) |
| cs_result | csonar_add_program_drop_finish_visitor ( cs_thunk_t th, cs_visitor_ctx_t ctx )
Add th to the list of program drop finish visitors, which are invoked at the end of the drop phase.
|
| cs_result | csonar_add_cache_cleanup_visitor ( cs_thunk_t vis, cs_visitor_ctx_t ctx )
Add vis as a cache-cleanup visitor.
|
| cs_warningclass_t | csonar_create_warningclass ( cs_const_string wc_name, cs_const_string wc_categories, double base_rank, csonar_warningclass_flags flags, csonar_warning_significance wc_significance )
Create and return a new warning class.
|
| cs_result | csonar_create_warningclass_ex ( const char * wc_name, const char * wc_categories, double base_rank, csonar_warningclass_flags flags, csonar_warning_significance wc_significance, cs_warningclass_t * out )
Create a new warning class.
|
| csuint32 | csonar_warningclass_id ( cs_warningclass_t wc )
Get the ID of a cs_warningclass_t, as a csuint32.
|
| cs_result | csonar_warningclass_lookup ( csuint32 class_id, cs_warningclass_t * out )
Get the cs_warningclass_t with the specified ID.
|
| cs_result | csonar_warningclass_lookup_by_name ( cs_const_string class_name, cs_warningclass_t * out )
Get the cs_warningclass_t with the specified name.
|
| cs_boolean | csonar_warningclass_always_discarded ( cs_warningclass_t wc )
Check: are WARNING_FILTER settings such that instances of the specified warning class will always be ignored?
|
| cs_boolean | csonar_warningclass_allowed ( cs_warningclass_t wc )
Check: are WARNING_FILTER settings such that reported instances of the specified warning class will be submitted to the hub?
|
| cs_const_string | csonar_warningclass_name ( cs_warningclass_t wc )
Get the name of the specified warning class.
|
| cs_result | csonar_report_warning ( cs_pdg_vertex v, cs_warningclass_t wc, cs_const_string problem, cs_report_flags report_flags, const cs_warning_retraction_info_t * ri, cs_warning_id * id )
Issue a warning at a cs_pdg_vertex.
|
| cs_result | csonar_report_path_warning ( const cs_cfg_path_node_t * warning_path, cs_size_t len, cs_warningclass_t wc, const cs_warning_retraction_info_t * ri, cs_warning_id * id )
Report a warning with a path.
|
| cs_result | csonar_report_step_path_warning ( cs_step_path_t warning_path, cs_warningclass_t wc, const cs_warning_retraction_info_t * ri, cs_warning_id * id )
Report a warning with a step path.
|
| cs_result | csonar_report_location_warning ( cs_sfid warning_file, cs_line warning_line, cs_warningclass_t wc, cs_const_string prob, cs_report_flags report_flags, const cs_warning_retraction_info_t * ri, cs_warning_id * id )
Issue a warning at a source line.
|
| cs_result | csonar_report_location_span_warning ( cs_sfid warning_file, cs_line warning_start_line, cs_line warning_end_line, cs_column start_col, cs_column end_col, cs_warningclass_t wc, cs_const_string prob, cs_report_flags report_flags, const cs_warning_retraction_info_t * ri, cs_warning_id * id )
Issue a warning with a code span location.
|
| cs_result | csonar_report_location_warning_in_pdg ( cs_sfid warning_file, cs_line warning_line, cs_pdg proc, cs_warningclass_t wc, cs_const_string prob, cs_report_flags report_flags, const cs_warning_retraction_info_t * ri, cs_warning_id * id )
Issue a warning at a source line in a specified procedure.
|
| cs_result | csonar_report_location_span_warning_in_pdg ( cs_sfid warning_file, cs_line warning_start_line, cs_line warning_end_line, cs_column start_col, cs_column end_col, cs_pdg proc, cs_warningclass_t wc, cs_const_string prob, cs_report_flags report_flags, const cs_warning_retraction_info_t * ri, cs_warning_id * id )
Issue a warning at a span in a specified procedure.
|
| cs_result | csonar_report_locations_warning ( const cs_locations_node_t * warning_locs, cs_size_t num_locs, cs_warningclass_t wc, const cs_warning_retraction_info_t * ri, cs_warning_id * id )
Issue a warning for a list of code locations.
|
| cs_result | csonar_report_locations_warning_in_pdg ( cs_pdg proc, const cs_locations_node_t * warning_locs, cs_size_t num_locs, cs_warningclass_t wc, const cs_warning_retraction_info_t * ri, cs_warning_id * id )
Issue a warning for a list of code locations in a specified procedure.
|
| cs_result | csonar_report_file_warning ( cs_sfid warning_file, cs_warningclass_t wc, cs_const_string prob, cs_report_flags report_flags, const cs_warning_retraction_info_t * ri, cs_warning_id * id )
Issue a warning associated with a particular source file instance, as opposed to a specific source location or set of locations.
|
| cs_result | csonar_report_analysis_warning ( cs_warningclass_t wc, cs_const_string problem, cs_report_flags report_flags, cs_warning_id * id )
Issue a warning with no association to a file or procedure.
|
| cs_result | csonar_retract_warning ( const cs_warning_id * id )
Manually retract a warning instance.
|
| cs_result | csonar_pdg_vertex_position ( cs_pdg_vertex v, cs_sfid * vertex_file, cs_line * vertex_line )
Get the starting file instance and line of a cs_pdg_vertex.
|
| cs_result | csonar_pdg_vertex_callee ( cs_pdg_vertex v, cs_pdg * pdg )
Get the callee cs_pdg of a call site cs_pdg_vertex, taking into account any translations incurred by csonar_replace_*() calls and the FUNCTION_MAP configuration file variable.
|
| cs_result | csonar_pdg_vertex_callee_no_reroute ( cs_pdg_vertex v, cs_pdg * pdg )
Get the callee cs_pdg of a call site cs_pdg_vertex, ignoring any translations incurred by csonar_replace_*() calls and the FUNCTION_MAP configuration file variable.
|
| cs_result | csonar_pdg_vertex_callees_iter_first ( cs_pdg_vertex v, cs_pdg * callee_pdg, csonar_pdg_callees_iter * itr )
Open a cs_pdg_callees_iter iterator for traversing the callees from a specified point (cs_pdg_vertex), taking into account any translations incurred by csonar_replace_*() calls and the FUNCTION_MAP configuration file variable, and retrieve the first callee cs_pdg from the iterator.
|
| cs_result | csonar_pdg_vertex_callees_iter_next ( cs_pdg * callee_pdg, csonar_pdg_callees_iter * itr )
Advance the provided csonar_pdg_callees_iter iterator and retrieve the next element.
|
| cs_result | csonar_pdg_vertex_callees_iter_close ( csonar_pdg_callees_iter * itr )
Close a csonar_pdg_callees_iter iterator.
|
| cs_result | csonar_pdg_vertex_callees_no_reroute_iter_first ( cs_pdg_vertex v, cs_pdg * callee_pdg, csonar_pdg_callees_no_reroute_iter * itr )
Open a csonar_pdg_callees_no_reroute_iter iterator for traversing the callees from a specified point (cs_pdg_vertex), ignoring any translations incurred by csonar_replace_*() calls and the FUNCTION_MAP configuration file variable, and retrieve the first callee cs_pdg from the iterator.
|
| cs_result | csonar_pdg_vertex_callees_no_reroute_iter_next ( cs_pdg * callee_pdg, csonar_pdg_callees_no_reroute_iter * itr )
Advance the provided csonar_pdg_callees_no_reroute_iter iterator and retrieve the next element.
|
| cs_result | csonar_pdg_vertex_callees_no_reroute_iter_close ( csonar_pdg_callees_no_reroute_iter * itr )
Close a csonar_pdg_callees_no_reroute_iter iterator.
|
| cs_result | csonar_pdg_callers_iter_first ( cs_pdg pdg, cs_pdg_vertex * calling_site, csonar_pdg_callers_iter * itr )
Open a cs_pdg_callers_iter iterator for traversing the call sites to a specified procedure (cs_pdg), and retrieve the first call site (cs_pdg_vertex) from the iterator.
|
| cs_result | csonar_pdg_callers_iter_next ( cs_pdg_vertex * calling_site, csonar_pdg_callers_iter * itr )
Advance the provided cs_pdg_callers_iter iterator and retrieve the next element.
|
| cs_result | csonar_pdg_callers_iter_close ( csonar_pdg_callers_iter * itr )
Close a cs_pdg_callers_iter iterator.
|
| cs_result | csonar_step_path_to_list ( cs_step_path_t rpath, cs_cfg_path_node_t path_list[], cs_size_t capacity_bytes, cs_size_t * bytes_needed )
Retrieve the list of cs_cfg_path_node_t nodes corresponding to a cs_step_path_t.
|
| cs_result | csonar_step_path_to_string ( cs_step_path_t rpath, cs_string out_string, cs_size_t capacity_bytes, cs_size_t * bytes_needed )
Get a textual representation of a cs_step_path_t.
|
| cs_step_path_t | csonar_step_path_copy ( cs_step_path_t rpath )
Copy a step path (cs_step_path_t).
|
| void | csonar_step_path_destroy ( cs_step_path_t rpath )
Destroy a step path (cs_step_path_t) that was created by csonar_step_path_copy().
|
| cs_result | csonar_pdg_vertex_to_string ( cs_pdg_vertex v, cs_string out_string, cs_size_t capacity_bytes, cs_size_t * bytes_needed )
Get a textual representation of a cs_pdg_vertex.
|
| cs_const_string | csonar_access_path_operator_name ( cs_access_path_operator op )
Get the name of a cs_access_path_operator.
|
| cs_const_string | csonar_xform_expr_mode_name ( cs_xform_expr_mode m )
Get the name of a cs_xform_expr_mode.
|
| cs_const_string | csonar_xform_query_result_name ( cs_xform_query_result r )
Get the name of a cs_xform_query_result.
|
| cs_result | csonar_xform_expr_validate ( const cs_xform_expr * expr )
Check whether a cs_xform_expr is well-formed.
|
| cs_result | csonar_xform_expr_to_string ( const cs_xform_expr * expr, cs_string out_string, cs_size_t capacity_bytes, cs_size_t * bytes_needed )
Get a textual representation of a cs_xform_expr.
|
| cs_const_string | csonar_xform_operator_name ( cs_xform_operator op )
Get the name of a cs_xform_operator.
|
| cs_result | csonar_xform_query ( cs_step_csonar_xform_t s, const cs_xform_expr * lhs, cs_xform_operator op, const cs_xform_expr * rhs, cs_xform_query_result * out_result )
Allows users to issue queries with respect to a program state transformation.
|
| cs_result | csonar_xform_query_bounds ( cs_step_csonar_xform_t s, const cs_xform_expr * expr, csint32 * lb, cs_boolean * lb_suspect, csint32 * ub, cs_boolean * ub_suspect )
Get bounds on an expression.
|
| cs_boolean | csonar_metricclass_always_discarded ( cs_metricclass_t mc )
Check: are METRIC_FILTER settings such that instances of the specified warning class will always be ignored?
|
| cs_boolean | csonar_metricclass_allowed ( cs_metricclass_t mc )
Check: are METRIC_FILTER settings such that reported instances of the specified metric class will be submitted to the hub?
|
| cs_result | csonar_report_metric_analysis ( cs_metricclass_t mt, double val )
Report an analysis granularity metric value to the hub.
|
| cs_result | csonar_report_metric_compunit ( cs_metricclass_t mt, double val, cs_uid uid )
Report a compilation unit granularity metric value to the hub.
|
| cs_result | csonar_report_metric_file ( cs_metricclass_t mt, double val, cs_sf sf )
Report a file granularity metric value to the hub.
|
| cs_result | csonar_report_metric_procedure ( cs_metricclass_t mt, double val, cs_pdg pdg )
Report a procedure granularity metric value.
|
| cs_metric_granularity | csonar_metric_get_granularity ( cs_metricclass_t mc )
Get the granularity of a cs_metricclass_t.
|
| cs_const_string | csonar_metric_tag ( cs_metricclass_t mc )
Get the tag (short string identifier) of a cs_metricclass_t.
|
| cs_const_string | csonar_metric_description ( cs_metricclass_t mc )
Get the description of a cs_metricclass_t.
|
| cs_hash_t | csonar_metric_hash ( cs_metricclass_t mc )
Hash function for cs_metricclass_t.
|
| int | csonar_metric_compare ( cs_metricclass_t mc1, cs_metricclass_t mc2 )
Compare two cs_metricclass_t values.
|
| cs_boolean | csonar_metric_equal ( cs_metricclass_t mc1, cs_metricclass_t mc2 )
Compare two cs_metricclass_t values for equality.
|
| cs_result | csonar_metric_getvalue_analysis ( cs_metricclass_t mt, double * mval )
Get the value of an analysis granularity metric.
|
| cs_result | csonar_metric_getvalue_compunit ( cs_metricclass_t mt, cs_uid uid, double * mval )
Get the value of a compilation unit granularity metric.
|
| cs_result | csonar_metric_getvalue_file ( cs_metricclass_t mt, cs_sf sf, double * mval )
Get the value of a file granularity metric.
|
| cs_result | csonar_metric_getvalue_procedure ( cs_metricclass_t mt, cs_pdg pdg, double * mval )
Get the value of a procedure granularity metric.
|
| cs_result | csonar_metric_create_class_analysis ( cs_const_string metrictag, cs_const_string desc, cs_metric_calc_analysis_fn_t fn, cs_metricclass_flags flags, const void * ctx, cs_metricclass_t * metricclass )
Create a new analysis granularity metric class.
|
| cs_result | csonar_metric_create_class_compunit ( cs_const_string metrictag, cs_const_string desc, cs_metric_calc_compunit_fn_t fn, cs_metricclass_flags flags, const void * ctx, cs_metricclass_t * metricclass )
Create a new compilation unit granularity metric class.
|
| cs_result | csonar_metric_create_class_file ( cs_const_string metrictag, cs_const_string desc, cs_metric_calc_file_fn_t fn, cs_metricclass_flags flags, const void * ctx, cs_metricclass_t * metricclass )
Create a new file granularity metric class.
|
| cs_result | csonar_metric_create_class_procedure ( cs_const_string metrictag, cs_const_string desc, cs_metric_calc_procedure_fn_t fn, cs_metricclass_flags flags, const void * ctx, cs_metricclass_t * metricclass )
Create a new procedure granularity metric class.
|
| cs_result | csonar_metric_get_class ( cs_const_string metrictag, cs_metric_granularity gran, cs_metricclass_t * metricclass )
Get the metric class object with the specified tag and granularity.
|
| cs_result | csonar_metric_class_iter_first ( cs_metric_granularity gran, cs_metricclass_t * metricclass, cs_metric_class_iterator * itr )
Open a cs_metric_class_iterator for traversing the metric classes with the specified granularity, and retrieve the first cs_metricclass_t from the iterator.
|
| cs_result | csonar_metric_class_iter_next ( cs_metricclass_t * metricclass, cs_metric_class_iterator * itr )
Advance the provided cs_metric_class_iterator and retrieve the next element.
|
| cs_result | csonar_metric_class_iter_close ( cs_metric_class_iterator * itr )
Close a metric class iterator.
|
| cs_result | csonar_metric_retract_procedure ( cs_metricclass_t metricclass, cs_pdg pdg )
Retract a metric value for the given class/procedure combination.
|
| cs_result | csonar_metric_retract_file ( cs_metricclass_t metricclass, cs_sf sf )
Retract a metric value for the given class/source file combination.
|
| cs_result | csonar_metric_retract_compunit ( cs_metricclass_t metricclass, cs_uid uid )
Retract a metric value for the given class/compilation unit combination.
|
| cs_metricclass_flags | csonar_metric_flags ( cs_metricclass_t metricclass )
Retrieve the flags for a cs_metricclass_t.
|
| cs_result | csonar_file_is_system_include ( cs_sfid f, cs_boolean * res )
Check whether the specified file is located in a system directory.
|
| cs_result | csonar_binary_backend_option ( cs_const_string inkey, cs_const_string * val )
[CodeSonar for Binaries only] Get the value associated with the key in the BINARY_BACKEND_OPTIONS configuration file setting.
|
| cs_const_string | csonar_warning_significance_name ( csonar_warning_significance s )
Get the name of a csonar_warning_significance.
|
| cs_result | csonar_warning_significance_lookup ( cs_const_string sig_name, csonar_warning_significance * sig )
Get the csonar_warning_significance with the specified name.
|
| cs_result | csonar_pdg_vertex_enum_used ( cs_pdg_vertex pdgv, cs_abs_loc abslocs[], cs_size_t capacity_bytes, cs_size_t * bytes_needed )
Get the list of used symbols (cs_abs_loc) for a point (cs_pdg_vertex), computing the list on-demand.
|
| cs_result | csonar_pdg_vertex_enum_killed ( cs_pdg_vertex pdgv, cs_abs_loc abslocs[], cs_size_t capacity_bytes, cs_size_t * bytes_needed )
Get the list of killed symbols (cs_abs_loc) for a point (cs_pdg_vertex), computing the list on-demand.
|
| cs_result | csonar_register_rpc_handler ( cs_const_string message_name, cs_rpc_handler_fn_t handler, void * ctx )
Register a remote procedure call (RPC) handler that will respond to request from the CodeSonar hub.
|
| cs_string | csonar_rpc_response_alloc ( cs_size_t s )
Allocates memory for the response that is sent back to the hub after processing an RPC request.
|
| cs_result | csonar_pdg_vertex_enum_referenced ( cs_pdg_vertex pdgv, cs_abs_loc abslocs[], cs_size_t capacity_bytes, cs_size_t * bytes_needed )
Get the list of referenced symbols (cs_abs_loc) for a point (cs_pdg_vertex), computing the list on-demand.
|
| cs_result | csonar_sf_get_pdgs_for_procedure ( cs_sf sf, cs_line line_num, const cs_hash_t * friendly_name_hash, cs_boolean closest_prior, cs_pdg * pdg_list, cs_size_t capacity_bytes, cs_size_t * bytes_needed )
Get all instances (cs_pdg) of a procedure (specified by its source file, line, and friendly-name hash).
|
| cs_result | csonar_pdg_reachable ( cs_pdg pdg, cs_boolean * out_result )
Check: is a cs_pdg reachable from the reachability roots specified with configuration file parameter REACHABILITY_ROOTS?
|
| Returns | The csonar_analysis_mode corresponding to the current mode of the CodeSonar process. |
|---|
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The name of m, as a cs_const_string. |
| Returns | The csonar_multiprocess_mode corresponding to the current mode of the CodeSonar process. |
|---|---|
| Notes | See Parallelism in CodeSonar: Analysis for more information. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The name of m, as a cs_const_string. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | During analysis, th will be applied to the program after any program setup visitors are applied, but before the beginning of the serial depth-first analysis phase. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | During the serial depth-first analysis phase, vis will be applied to symbols (cs_abs_loc) in the project that are contained in a compilation unit whose language appears in langs.
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | A source file visitor is like a source file instance visitor except that it is only applied to the first instance encountered for each source file during the depth-first traversal of the file include tree. It is therefore possible for the visitor to be applied to the SFID for one or more file instances included by instance S but not to the SFID for S itself. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | For each qualifying file in the program, vis will be applied to every instance of the file encountered during the depth-first traversal of the file include tree. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | For each qualifying file in the program, vis will be applied to every instance of the file encountered during the depth-first traversal of the file include tree. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | For each qualifying file in the program, vis will only be applied to the first instance of the file encountered during the depth-first traversal of the file include tree. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | th will be applied to the program after the end of the serial depth-first phase, but before the beginning of the parallel depth-first phase. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | During analysis, th will be applied to the program after the serial depth-first analysis phase ends and any program finish visitors are applied, but before the beginning of the parallel depth-first analysis phase. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | During the parallel depth-first analysis phase, vis will be applied to symbols (cs_abs_loc) in the project that are contained in a compilation unit whose language appears in langs.
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | A source file visitor is like a source file instance visitor except that it is only applied to the first instance encountered for each source file during the depth-first traversal of the file include tree. It is therefore possible for the visitor to be applied to the SFID for one or more file instances included by instance S but not to the SFID for S itself. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | For each qualifying file in the program, vis will be applied to every instance of the file encountered during the depth-first traversal of the file include tree. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | For each qualifying file in the program, vis will be applied to every instance of the file encountered during the depth-first traversal of the file include tree. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | For each qualifying file in the program, vis will only be applied to the first instance of the file encountered during the depth-first traversal of the file include tree. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | th will be applied to the program after the parallel depth-first phase has finished, but before the beginning of the pointer analysis phase. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | th will be applied to the program after the end of the pointer analysis phase, but before the beginning of the bottom-up phase. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | A single edge may be visited many times.
See Plug-In Tutorial: Part Two for an example using a step visitor. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | th will be applied to the program after the end of the bottom-up analysis phase. At this point, all traversal has finished. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | Program drop visitors are called at the beginning of the drop phase if anything in the project has been dropped.
Use a program drop visitor when you need to clean up state that you have saved for dropped project components and cannot handle the cleanup with one of the smaller-scope drop visitors. th must not call any API functions other than the following: cs_pdg_equal(), cs_pdg_hash(), cs_uid_equal(), cs_uid_hash(), cs_abs_loc_equal(), cs_abs_loc_hash(). |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | A compilation unit will be visited in the drop phase if any of the following are true:
Use a compilation unit drop visitor to clean up any state you have saved for:
See csonar_add_program_drop_visitor() for the list of API functions that can be used in drop visitors. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | A procedure cs_pdg) will be visited in the drop phase if any of the following are true:
Use a procedure drop visitor to clean up any state that you have saved for:
See csonar_add_program_drop_visitor() for the list of API functions that can be used in drop visitors. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | A global symbol (cs_abs_loc) will be visited in the drop phase if it has been dropped.
Use a global symbol drop visitor to clean up any state that you have saved for:
See csonar_add_program_drop_visitor() for the list of API functions that can be used in drop visitors. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | Program drop finish visitors are called at the end of the drop phase if anything in the project has been dropped.
Use a program drop finish visitor when you need to clean up state that you have saved for dropped project components and cannot handle the cleanup with one of the smaller-scope drop visitors. See csonar_add_program_drop_visitor() for the list of API functions that can be used in drop visitors. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | Cache-cleanup visitors are invoked periodically as the analysis progresses. |
| Parameters |
|
|||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns | The new class, as a cs_warningclass_t. | |||||||||||||||
| Notes | Creates and returns a new warning class called wc_name, with properties determined by flags. This procedure should be called by setup visitors only and cannot be called by other visitors.
If there are multiple calls to csonar_create_warningclass() or csonar_create_warningclass_ex() with the same wc_name, the second and subsequent calls will ignore all other parameters and just return the cs_warningclass_t created by the first call. |
| Parameters |
|
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||||||||
| Notes | Creates and returns a new warning class called wc_name, with properties determined by flags. This procedure should be called by setup visitors only and cannot be called by other visitors.
If there are multiple calls to csonar_create_warningclass() or csonar_create_warningclass_ex() with the same wc_name, the second and subsequent calls will ignore all other parameters and just return the cs_warningclass_t created by the first call. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The ID of wc, as a csuint32. | |||
| Notes | A single warning class may have different ID values in different analyses.
To get a cs_warningclass_t given its ID, use csonar_warningclass_lookup(). |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | To get the ID of a cs_warningclass_t, use csonar_warningclass_id(). |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | cs_true if all instances of wc are being discarded, cs_false otherwise. | |||
| Notes | If you have defined a custom warning class C in a plug-in, you can use a test based on csonar_warningclass_always_discarded(C) to avoid unnecessary work in the case where C is ignored.
This is the complement of csonar_warningclass_allowed(). |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | cs_true if reported instances of wc will be submitted to the hub, cs_false otherwise. | |||
| Notes | If you have defined a custom warning class C in a plug-in, you can use a test based on csonar_warningclass_allowed(C) to avoid unnecessary work in the case where C is ignored.
This is the complement of csonar_warningclass_always_discarded(). |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The name of wc, as a cs_const_string. |
| Parameters |
|
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||||||||
| Notes | If there are cases in which you will manually retract the warning instance, make sure you keep the value written to id so that you can use it with csonar_retract_warning().
This will create a warning consisting of a single event, and that event will be an end box. |
| Parameters |
|
|||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||||||||
| Notes | If there are cases in which you will manually retract the warning instance, make sure you keep the value written to id so that you can use it with csonar_retract_warning(). |
| Parameters |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||
| Notes | If there are cases in which you will manually retract the warning instance, make sure you keep the value written to id so that you can use it with csonar_retract_warning().
This will create a warning consisting of a single event, and that event will be an end box. |
| Parameters |
|
|||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||||||||||||||
| Notes | If there are cases in which you will manually retract the warning instance, make sure you keep the value written to id so that you can use it with csonar_retract_warning().
This will create a warning consisting of a single event, and that event will be an end box. This function does not specify a procedure for the warning. If you wish to specify a procedure, use csonar_report_location_warning_in_pdg(). |
| Parameters |
|
||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||||||||||||||||||||
| Notes | If there are cases in which you will manually retract the warning instance, make sure you keep the value written to id so that you can use it with csonar_retract_warning().
This will create a warning consisting of a single event, and that event will be an end box. This function does not specify a procedure for the warning. If you wish to specify a procedure, use csonar_report_location_span_warning_in_pdg(). |
| Parameters |
|
||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||||||||||||||
| Notes | If there are cases in which you will manually retract the warning instance, make sure you keep the value written to id so that you can use it with csonar_retract_warning().
This will create a warning consisting of a single event, and that event will be an end box. If you do not wish to specify a procedure, use csonar_report_location_warning(). |
| Parameters |
|
|||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||||||||||||||||||||||||||
| Notes | If there are cases in which you will manually retract the warning instance, make sure you keep the value written to id so that you can use it with csonar_retract_warning().
This will create a warning consisting of a single event, and that event will be an end box. If you do not wish to specify a procedure, use csonar_report_location_warning(). |
| Parameters |
|
|||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||||||||
| Notes | If there are cases in which you will manually retract the warning instance, make sure you keep the value written to id by this function so that you can use it with csonar_retract_warning().
This function does not specify a procedure for the warning. If you wish to specify a procedure, use csonar_report_locations_warning_in_pdg(). |
| Parameters |
|
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||||||||
| Notes | If there are cases in which you will manually retract the warning instance, make sure you keep the value written to id by this function so that you can use it with csonar_retract_warning().
If you do not wish to specify a procedure for the warning, use csonar_report_locations_warning(). |
| Parameters |
|
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
|
||||||||||||||||||
| Notes | The warning description box will be displayed at line 1 of the file identified by warning_file.
If there are cases in which you will manually retract the warning instance, make sure you keep the value written to id by this function so that you can use it with csonar_retract_warning(). |
| Parameters |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
|
||||||||||||
| Notes | The warning description box will be displayed at line 1 of the file identified by warning_file.
Warnings reported via this method will always be retracted during an incremental build, since the warning is against the entire analysis. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns |
A cs_result:
|
|||
| Notes | Call this function in a drop phase visitor to manually retract a warning instance. Support for calling this function from visitors in other analysis phases is experimental and may be removed in future versions.
The id value will have been recovered originally from the cs_warning_id value written by the function that reported the warning: one of
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | Finds the file instance and line in that file instance containing v.
|
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Time-Complexity | O(n), where n is the number of call sites in the caller function. | ||||||
| Notes | Redirection resolution is completed in the pointer analysis phase, so this function must be called in the bottom-up phase or later.
A direct call site (that is, a cs_pdg_vertex of kind cs_vertex_kind_call_site) will always have exactly one callee. An indirect call site (a cs_pdg_vertex of kind cs_vertex_kind_indirect_call) can have zero or more callees. This function will only successfully retrieve a callee if the analysis identifies exactly one callee. Use a csonar_pdg_callees_iter iterator to iterate over all callees of a cs_pdg_vertex, taking into account translations incurred by csonar_replace_*() calls and the FUNCTION_MAP configuration file variable. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Time-Complexity | O(n), where n is the number of call sites in the caller function. A direct call site (that is, a cs_pdg_vertex of kind cs_vertex_kind_call_site) will always have exactly one callee. | ||||||
| Notes | An indirect call site (a cs_pdg_vertex of kind cs_vertex_kind_indirect_call) can have zero or more callees. This function will only successfully retrieve a callee if the analysis identifies exactly one callee. Indirect call resolution takes place in the pointer analysis phase, so results for indirect call sites will be best if this function is called in the bottom-up phase or later.
Use a csonar_pdg_callees_no_reroute_iter iterator to iterate over all callees of a cs_pdg_vertex, ignoring translations incurred by csonar_replace_*() calls and the FUNCTION_MAP configuration file variable. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | This function opens itr, which is required by csonar_pdg_vertex_callees_iter_next(). Use csonar_pdg_vertex_callees_iter_close() to close itr.
Indirect call resolution takes place in the pointer analysis phase, so results for indirect call sites will be best if traversal takes place in the bottom-up phase or later. For both direct and indirect call sites, traversal will fail if it is attempted before the beginning of the serial depth-first phase. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | Use csonar_pdg_vertex_callees_iter_close() to close itr when iteration is complete. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | This function opens itr, which is required by csonar_pdg_vertex_callees_no_reroute_iter_next(). Use csonar_pdg_vertex_callees_no_reroute_iter_close() to close itr.
Indirect call resolution takes place in the pointer analysis phase, so results for indirect call sites will be best if traversal takes place in the bottom-up phase or later. For both direct and indirect call sites, traversal will fail if it is attempted before the beginning of the serial depth-first phase. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | Use csonar_pdg_vertex_callees_no_reroute_iter_close() to close itr when iteration is complete. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | For a fixed project build and cs_pdg, the iteration order is deterministic but does not correspond to the execution order or source file location of the call sites.
This function opens itr, which is required by csonar_pdg_callers_iter_next(). Use csonar_pdg_callers_iter_close() to close itr. Indirect call resolution takes place in the pointer analysis phase, so results for indirect calls will be best if traversal takes place in the bottom-up phase or later. For both direct and indirect calls, traversal will fail if it is attempted before the beginning of the serial depth-first phase. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | Use csonar_pdg_callers_iter_close() to close itr when traversal is finished. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | CS_SUCCESS on successful close. |
| Parameters |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||
| Notes | Retrieve the list of cs_cfg_path_node_t nodes corresponding to rpath and write it to path_list. If path_list is not large enough, the list is truncated to fit into path_list. |
| Parameters |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||
| Notes | Retrieve the textual representation of rpath and write it to out_string. If out_string is not large enough, the representation is truncated to fit into out_string. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | A copy of rpath. | |||
| Notes | The returned object must be destroyed using csonar_step_path_destroy() to avoid leaks. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | void |
| Parameters |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||
| Notes | Retrieve the textual representation of v and write it to out_string. If out_string is not large enough, the representation is truncated to fit into out_string. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The name of op. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The name of m, as a cs_const_string. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The name of r. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||
| Notes | Retrieve the textual representation of expr and write it to out_string. If out_string is not large enough, the representation is truncated to fit into out_string. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The name of op. |
| Parameters |
|
|||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | cs_true if all instances of mc are being discarded, cs_false otherwise. | |||
| Notes | If you have defined a custom warning class C in a plug-in, you can use a test based on csonar_metricclass_always_discarded(C) to avoid unnecessary work in the case where C is ignored.
This is the complement of csonar_metricclass_allowed(). |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | cs_true if reported instances of mc will be submitted to the hub, cs_false otherwise. | |||
| Notes | If you have defined a custom warning class C in a plug-in, you can use a test based on csonar_metricclass_allowed(C) to avoid unnecessary work in the case where C is ignored.
This is the complement of csonar_metricclass_always_discarded(). |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | You do not need to call this method if mt was created with the csmetric_flags_auto flag. In that case, CodeSonar will automatically report the values calculated using the cs_metric_calc_analysis_fn_t provided to csonar_metric_create_class_analysis() when mt was created. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | You do not need to call this method if mt was created with the csmetric_flags_auto flag. In that case, CodeSonar will automatically report the values calculated using the cs_metric_calc_compunit_fn_t provided to csonar_metric_create_class_compunit() when mt was created. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | You do not need to call this method if mt was created with the csmetric_flags_auto flag. In that case, CodeSonar will automatically report the values calculated using the cs_metric_calc_file_fn_t provided to csonar_metric_create_class_file() when mt was created. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | You do not need to call this method if mt was created with the csmetric_flags_auto flag. In that case, CodeSonar will automatically report the values calculated using the cs_metric_calc_procedure_fn_t provided to csonar_metric_create_class_procedure() when mt was created. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The granularity of mc, as a cs_metric_granularity. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The tag (short name) of mc, as a cs_const_string. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The description of mc, as a cs_const_string. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | A hash of mc. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
|
||||||
| Notes | This function is provided so cs_metricclass_t values can be stored in ordered containers. It is not based on any user-perceivable order of cs_metricclass_t. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns | cs_true if mc1 and mc2 are the same cs_metricclass_t; cs_false if not. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||||||||
| Notes | This procedure should be called by setup visitors only and cannot be called by other visitors. |
| Parameters |
|
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||||||||
| Notes | This procedure should be called by setup visitors only and cannot be called by other visitors. |
| Parameters |
|
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||||||||
| Notes | This procedure should be called by setup visitors only and cannot be called by other visitors. |
| Parameters |
|
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||||||||
| Notes | This procedure should be called by setup visitors only and cannot be called by other visitors. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | CS_SUCCESS on successful close. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | In typical usage, csonar_metric_retract_procedure() is called during the drop traversal (that is, by a visitor added with one of the csonar_add_*_drop_visitor() functions). |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | In typical usage, csonar_metric_retract_file() is called during the drop traversal (that is, by a visitor added with one of the csonar_add_*_drop_visitor() functions). |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | In typical usage, csonar_metric_retract_compunit() is called during the drop traversal (that is, by a visitor added with one of the csonar_add_*_drop_visitor() functions). |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The cs_metricclass_flags value for metricclass. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns | CS_SUCCESS on success. | ||||||
| Notes | A file is considered to be located in a system directory if and only if its path matches a SYSTEM_INCLUDE_PATHS rule.
This function may clobber or free the buffer returned by many cs_*_string() functions. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The name of s. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||
| Notes | Retrieve the used cs_abs_loc for the vertex and write them to abslocs. If abslocs is not large enough, the list is truncated to fit into abslocs. The list is generated on-demand and will be recomputed if the same cs_pdg_vertex is presented again. |
| Parameters |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||
| Notes | Retrieve the killed cs_abs_loc for the vertex and write them to abslocs. If abslocs is not large enough, the list is truncated to fit into abslocs. The list is generated on-demand and will be recomputed if the same cs_pdg_vertex is presented again. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
|
|||||||||
| Notes | The handler receives a string which contains the RPC message. This string is a stringified JSON object of the HTTP GET variables. The onus is on the cs_rpc_handler_fn_t to perform any JSON decoding from the message string. |
| Parameters |
|
|---|
| Parameters |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||
| Notes | Retrieve the referenced cs_abs_loc for the vertex and write them to abslocs. If abslocs is not large enough, the list is truncated to fit into abslocs. The list is generated on-demand and will be recomputed if the same cs_pdg_vertex is presented again. |
| Parameters |
|
|||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
To report problems with this documentation, please visit https://support.codesecure.com/.