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 |
The Name Cross-Reference API provides programmatic access to the cross-referencing information computed by the CodeSonar analysis.
For general information about the CodeSonar cross-referencing infrastructure, see Name Cross-References.
Language Module Support: Internal representation for name cross-references is available for C/C++, binary, C#, and Java analyses.
The following table summarizes the cross-reference concepts represented in the Name Cross-References API.
| Cross-Reference Concept | API | ||
|---|---|---|---|
| C++ | Python | C | |
| kind | class xr_kind | class xr_kind | cs_xr_kind |
| usage (referred to as role in API) | class xr_role | class xr_role | cs_xr_role |
| kind-usage pair | class xr_kind_role | class xr_kind_role | cs_xr_kind_role |
| occurrence tuple | class xr_tuple | class xr_tuple | cs_xref_tuple |
By API language:
| C++ | Key classes related to cross-reference functionality are xr_tuple and xr_query. Some cross-reference functionality is provided by sfile. |
|---|---|
| Python | Key classes related to cross-reference functionality are xr_tuple and xr_query. Some cross-reference functionality is provided by sfile. |
| C | Header cs_xref.h provides functions and types for name cross-references. |
See also:
To report problems with this documentation, please visit https://support.codesecure.com/.