|
CodeSonar C++ API
|
A warning class. More...
Public Member Functions | |
| warningclass (const warningclass &other) | |
| Copy constructor. | |
| bool | allowed () const |
Check: are WARNING_FILTER settings such that reported instances of this warning class will be submitted to the hub? | |
| bool | always_discarded () const |
Check: are WARNING_FILTER settings such that instances of this warning class will always be ignored? | |
| std::string | as_repr () const |
| Get a representation of a warningclass object that includes information useful for debugging. | |
| std::string | as_string () const |
| Get a simple string representation of a warningclass object. | |
| int | cmp (const warningclass &other) const |
| Comparison function for warningclass. | |
| cs_hash_t | hash () const |
| Hash function for warningclass. | |
| csuint32 | id () const |
| Get the ID of a warning class. | |
| std::string | name () const |
| Get the name of a warning class. | |
| result | report (const std::string &endbox, report_flags flags=report_flags::NONE) |
| Report a warning with no association to a file or procedure. | |
| result | report (const std::vector< cs::cfg_path_node > &p) |
| Report a warning with a path. | |
| result | report (const std::vector< cs::cfg_path_node > &p, const warning_retraction_info &ri) |
| Report a warning with a path, providing retraction information. | |
| result | report (const std::vector< cs::locations_node > &p) |
| Report a warning with a list of code locations. | |
| result | report (const std::vector< cs::locations_node > &p, const warning_retraction_info &ri) |
| Report a warning with a list of code locations, providing retraction information. | |
| result | report (const std::vector< cs::locations_node > &p, procedure proc) |
| Report a warning with a list of code locations in a specified procedure. | |
| result | report (const std::vector< cs::locations_node > &p, procedure proc, const warning_retraction_info &ri) |
| Report a warning with a list of code locations in a specified procedure, providing retraction information. | |
| result | report (point p, const std::string &endbox, report_flags flags, const warning_retraction_info &ri) |
| Report a warning at a point, providing retraction information. | |
| result | report (point p, const std::string &endbox, report_flags flags=report_flags::NONE) |
| Report a warning at a point. | |
| result | report (sfileinst file, const std::string &endbox, report_flags flags, const warning_retraction_info &ri) |
| Report a warning associated with a file instance, providing retraction information. | |
| result | report (sfileinst file, const std::string &endbox, report_flags flags=report_flags::NONE) |
| Report a warning associated with a file instance. | |
| result | report (sfileinst file, line_number line, const std::string &endbox, report_flags flags, const warning_retraction_info &ri) |
| Report a warning with a code location, providing retraction information. | |
| result | report (sfileinst file, line_number line, const std::string &endbox, report_flags flags=report_flags::NONE) |
| Report a warning with a code location. | |
| result | report (sfileinst file, line_number line, procedure proc, const std::string &endbox, report_flags flags, const warning_retraction_info &ri) |
| Report a warning at a line in a specified procedure, providing retraction information. | |
| result | report (sfileinst file, line_number line, procedure proc, const std::string &endbox, report_flags flags=report_flags::NONE) |
| Report a warning at a line in a specified procedure. | |
| result | report (sfileinst file, line_number start_line, line_number end_line, column_number start_col, column_number end_col, const std::string &endbox, report_flags flags, const warning_retraction_info &ri) |
| Report a warning with a code span location, providing retraction information. | |
| result | report (sfileinst file, line_number start_line, line_number end_line, column_number start_col, column_number end_col, const std::string &endbox, report_flags flags=report_flags::NONE) |
| Report a warning with a code span location. | |
| result | report (sfileinst file, line_number start_line, line_number end_line, column_number start_col, column_number end_col, procedure proc, const std::string &endbox, report_flags flags, const warning_retraction_info &ri) |
| Report a warning at a span in a specified procedure, providing retraction information. | |
| result | report (sfileinst file, line_number start_line, line_number end_line, column_number start_col, column_number end_col, procedure proc, const std::string &endbox, report_flags flags=report_flags::NONE) |
| Report a warning at a span in a specified procedure. | |
| result | report (step_path p) |
| Report a warning with a step path. | |
| result | report (step_path p, const warning_retraction_info &ri) |
| Report a warning with a step path, providing retraction information. | |
| warning | report_return_warning (const std::string &endbox, report_flags flags=report_flags::NONE) |
| Report a warning with no association to a file or procedure and return the reported warning object. | |
| warning | report_return_warning (const std::vector< cs::cfg_path_node > &p) |
| Report a warning with a path and return the reported warning object. | |
| warning | report_return_warning (const std::vector< cs::cfg_path_node > &p, const warning_retraction_info &ri) |
| Report a warning with a path, providing retraction information, and return the reported warning object. | |
| warning | report_return_warning (const std::vector< cs::locations_node > &p) |
| Report a warning with a list of code locations and return the reported warning object. | |
| warning | report_return_warning (const std::vector< cs::locations_node > &p, const warning_retraction_info &ri) |
| Report a warning with a list of code locations, providing retraction information, and return the reported warning object. | |
| warning | report_return_warning (const std::vector< cs::locations_node > &p, procedure proc) |
| Report a warning with a list of code locations in a specified procedure and return the reported warning object. | |
| warning | report_return_warning (const std::vector< cs::locations_node > &p, procedure proc, const warning_retraction_info &ri) |
| Report a warning with a list of code locations in a specified procedure, providing retraction information, and return the reported warning object. | |
| warning | report_return_warning (point p, const std::string &endbox, report_flags flags, const warning_retraction_info &ri) |
| Report a warning at a point, providing retraction information, and return the reported warning object. | |
| warning | report_return_warning (point p, const std::string &endbox, report_flags flags=report_flags::NONE) |
| Report a warning at a point and return the reported warning object. | |
| warning | report_return_warning (sfileinst file, const std::string &endbox, report_flags flags, const warning_retraction_info &ri) |
| Report a warning associated with a file instance, providing retraction information, and return the reported warning object. | |
| warning | report_return_warning (sfileinst file, const std::string &endbox, report_flags flags=report_flags::NONE) |
| Report a warning associated with a file instance and return the reported warning object. | |
| warning | report_return_warning (sfileinst file, line_number line, const std::string &endbox, report_flags flags, const warning_retraction_info &ri) |
| Report a warning with a code location, providing retraction information, and return the reported warning object. | |
| warning | report_return_warning (sfileinst file, line_number line, const std::string &endbox, report_flags flags=report_flags::NONE) |
| Report a warning with a code location and return the reported warning object. | |
| warning | report_return_warning (sfileinst file, line_number line, procedure proc, const std::string &endbox, report_flags flags, const warning_retraction_info &ri) |
| Report a warning at a span in a specified procedure, providing retraction information, and return the reported warning object. | |
| warning | report_return_warning (sfileinst file, line_number line, procedure proc, const std::string &endbox, report_flags flags=report_flags::NONE) |
| Report a warning at a span in a specified procedure and return the reported warning object. | |
| warning | report_return_warning (sfileinst file, line_number start_line, line_number end_line, column_number start_col, column_number end_col, const std::string &endbox, report_flags flags, const warning_retraction_info &ri) |
| Report a warning with a code location, providing retraction information, and return the reported warning object. | |
| warning | report_return_warning (sfileinst file, line_number start_line, line_number end_line, column_number start_col, column_number end_col, const std::string &endbox, report_flags flags=report_flags::NONE) |
| Report a warning with a code span location and return the reported warning object. | |
| warning | report_return_warning (sfileinst file, line_number start_line, line_number end_line, column_number start_col, column_number end_col, procedure proc, const std::string &endbox, report_flags flags, const warning_retraction_info &ri) |
| Report a warning at a span in a specified procedure, providing retraction information, and return the reported warning object. | |
| warning | report_return_warning (sfileinst file, line_number start_line, line_number end_line, column_number start_col, column_number end_col, procedure proc, const std::string &endbox, report_flags flags=report_flags::NONE) |
| Report a warning at a span in a specified procedure and return the reported warning object. | |
| warning | report_return_warning (step_path p) |
| Report a warning with a step path and return the reported warning object. | |
| warning | report_return_warning (step_path p, const warning_retraction_info &ri) |
| Report a warning with a step path, providing retraction information, and return the reported warning object. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| bool | operator!= (const warningclass &a, const warningclass &b) |
| Inequality operator for warningclass. | |
| bool | operator< (const warningclass &a, const warningclass &b) |
| Less-than operator for warningclass. | |
| std::ostream & | operator<< (std::ostream &out, const warningclass &a) |
| bool | operator<= (const warningclass &a, const warningclass &b) |
| Less-than-or-equal operator for warningclass. | |
| bool | operator== (const warningclass &a, const warningclass &b) |
| Equality operator for warningclass. | |
| bool | operator> (const warningclass &a, const warningclass &b) |
| Greater-than operator for warningclass. | |
| bool | operator>= (const warningclass &a, const warningclass &b) |
| Greater-than-or-equal operator for warningclass. | |
A warning class.
Use analysis::create_warningclass() to create new warningclass objects.
Report a warning with report() (which returns a result) or report_return_warning() (which returns the reported warning object). Both forms provide the option of specifying retraction information.
report_return_warning() methods inside a try block.
|
inline |
Copy constructor.
| [in] | other | The warningclass object to copy. |
This copy constructor is provided so that it can be used underlyingly at function calls when warningclass parameters are specified or warningclass return values are assigned. It is unlikely that you will need to call it directly.
|
inline |
Check: are WARNING_FILTER settings such that reported instances of this warning class will be submitted to the hub?
true if reported instances of the class will be submitted to the hub, false otherwise.If you have defined a custom warning class C in a plug-in, you can use a test based on C.allowed() to avoid unnecessary work in the case where C is ignored.
This is the complement of warningclass::always_discarded().
|
inline |
Check: are WARNING_FILTER settings such that instances of this warning class will always be ignored?
true if all instances of the class are being discarded, false otherwise.If you have defined a custom warning class C in a plug-in, you can use a test based on C.always_discarded() to avoid unnecessary work in the case where C is ignored.
This is the complement of warningclass::allowed().
|
inline |
Get a representation of a warningclass object that includes information useful for debugging.
|
inline |
Get a simple string representation of a warningclass object.
|
inline |
Comparison function for warningclass.
| other | The warningclass object to compare against. |
this < other this == other this > other
|
inline |
Hash function for warningclass.
|
inline |
Get the ID of a warning class.
To get a warningclass given its ID, use analysis::lookup_warningclass(csuint32). Note that a single warning class may have different ID values in different analyses.
|
inline |
Get the name of a warning class.
|
inline |
Report a warning with no association to a file or procedure.
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths). |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be always be automatically retracted during an incremental build, since the warning is against the entire analysis.
There are multiple methods for reporting a warning with no association to a file or procedure. See the table above for details.
|
inline |
Report a warning with a path.
| [in] | p | The path associated with the warning, with each point on the path described by a cfg_path_node. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
| result::ERROR_INVALID_ARGUMENT | if path argument p is empty. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing the first point in p has been modified.
There are multiple methods for reporting a warning with a path. See the table above for details.
|
inline |
Report a warning with a path, providing retraction information.
| [in] | p | The path associated with the warning, with each point on the path described by a cfg_path_node. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
| result::ERROR_INVALID_ARGUMENT | if path argument p is empty. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
|
inline |
Report a warning with a list of code locations.
| [in] | p | The list of code locations (locations_node) associated with the warning. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths), or if p is empty. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing the first location in p has been modified.
There are multiple methods for reporting a warning with a list of code locations. See the table above for details.
|
inline |
Report a warning with a list of code locations, providing retraction information.
| [in] | p | The list of code locations (locations_node) associated with the warning. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths), or if p is empty. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning with a list of code locations. See the table above for details.
|
inline |
Report a warning with a list of code locations in a specified procedure.
| [in] | p | The list of code locations (locations_node) associated with the warning. |
| [in] | proc | The procedure in which the warning occurs. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths), or if p is empty. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing the first location in p has been modified.
There are multiple methods for reporting a warning with a list of code locations in a specified procedure. See the table above for details.
|
inline |
Report a warning with a list of code locations in a specified procedure, providing retraction information.
| [in] | p | The list of code locations (locations_node) associated with the warning. |
| [in] | proc | The procedure in which the warning occurs. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths), or if p is empty. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning with a list of code locations in a specified procedure. See the table above for details.
|
inline |
Report a warning at a point, providing retraction information.
| [in] | p | The point where the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
This creates a single-event warning where the event is an end box.
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning at a point. See the table above for details.
|
inline |
Report a warning at a point.
| [in] | p | The point where the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
This creates a single-event warning where the event is an end box.
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing p has been modified.
There are multiple methods for reporting a warning at a point. See the table above for details.
|
inline |
Report a warning associated with a file instance, providing retraction information.
| [in] | file | The file instance (sfileinst). |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths) or, for the versions that accept spans, if the span is malformed. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning associated with a file instance. See the table above for details.
|
inline |
Report a warning associated with a file instance.
| [in] | file | The file instance (sfileinst). |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths) or, for the versions that accept spans, if the span is malformed. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing file has been modified.
There are multiple methods for reporting a warning associated with a file instance. See the table above for details.
|
inline |
Report a warning with a code location, providing retraction information.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | line | The line in file on which the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths) or, for the versions that accept spans, if the span is malformed. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
This creates a single-event warning where the event is an end box.
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning with a code location. See the table above for details.
|
inline |
Report a warning with a code location.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | line | The line in file on which the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths) or, for the versions that accept spans, if the span is malformed. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
This creates a single-event warning where the event is an end box.
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing file has been modified.
There are multiple methods for reporting a warning with a code location. See the table above for details.
|
inline |
Report a warning at a line in a specified procedure, providing retraction information.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | line | The line in file on which the warning occurs. |
| [in] | proc | The procedure in which the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths) or, for the versions that accept spans, if the span is malformed. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning at a line in a specified procedure. See the table above for details.
|
inline |
Report a warning at a line in a specified procedure.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | line | The line in file on which the warning occurs. |
| [in] | proc | The procedure in which the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths) or, for the versions that accept spans, if the span is malformed. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing file has been modified.
There are multiple methods for reporting a warning at a line in a specified procedure. See the table above for details.
|
inline |
Report a warning with a code span location, providing retraction information.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | start_line | The line in file on which the warning starts. |
| [in] | end_line | The line in file on which the warning ends. |
| [in] | start_col | The column on start_line where the warning starts. |
| [in] | end_col | The column on end_line where the warning ends. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths) or, for the versions that accept spans, if the span is malformed. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
This creates a single-event warning where the event is an end box.
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning with a code location. See the table above for details.
|
inline |
Report a warning with a code span location.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | start_line | The line in file on which the warning starts. |
| [in] | end_line | The line in file on which the warning ends. |
| [in] | start_col | The column on start_line where the warning starts. |
| [in] | end_col | The column on end_line where the warning ends. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths) or, for the versions that accept spans, if the span is malformed. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
This creates a single-event warning where the event is an end box.
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing file has been modified.
There are multiple methods for reporting a warning with a code location. See the table above for details.
|
inline |
Report a warning at a span in a specified procedure, providing retraction information.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | start_line | The line in file on which the warning starts. |
| [in] | end_line | The line in file on which the warning ends. |
| [in] | start_col | The column on start_line on which the warning starts. |
| [in] | end_col | The column on end_line on which the warning ends. |
| [in] | proc | The procedure in which the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths). |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning at a line in a specified procedure. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning at a span in a specified procedure.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | start_line | The line in file on which the warning starts. |
| [in] | end_line | The line in file on which the warning ends. |
| [in] | start_col | The column on start_line on which the warning starts. |
| [in] | end_col | The column on end_line on which the warning ends. |
| [in] | proc | The procedure in which the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths) or, for the versions that accept spans, if the span is malformed. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing file has been modified.
There are multiple methods for reporting a warning at a line in a specified procedure. See the table above for details.
Report a warning with a step path.
| [in] | p | The step path (step_path) associated with the warning. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing the first point in p has been modified.
There are multiple methods for reporting a warning with a step path. See the table above for details.
|
inline |
Report a warning with a step path, providing retraction information.
| [in] | p | The step path (step_path) associated with the warning. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
WARNING_FILTER discard rule in the configuration file.TIME_LIMIT_RENDER expired.REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted.| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning with a step path. See the table above for details.
|
inline |
Report a warning with no association to a file or procedure and return the reported warning object.
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths). |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be always be automatically retracted during an incremental build, since the warning is against the entire analysis.
There are multiple methods for reporting a warning with no association to a file or procedure. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning with a path and return the reported warning object.
| [in] | p | The path associated with the warning, with each point on the path described by a cfg_path_node. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
| result::ERROR_INVALID_ARGUMENT | if path argument p is empty. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing the first point in p has been modified.
There are multiple methods for reporting a warning with a path. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning with a path, providing retraction information, and return the reported warning object.
| [in] | p | The path associated with the warning, with each point on the path described by a cfg_path_node. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
| result::ERROR_INVALID_ARGUMENT | if path argument p is empty. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning with a path. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning with a list of code locations and return the reported warning object.
| [in] | p | The list of code locations (locations_node) associated with the warning. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths), or if p is empty. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing the first location in p has been modified.
There are multiple methods for reporting a warning with a list of code locations. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning with a list of code locations, providing retraction information, and return the reported warning object.
| [in] | p | The list of code locations (locations_node) associated with the warning. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths), or if p is empty. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning with a list of code locations. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning with a list of code locations in a specified procedure and return the reported warning object.
| [in] | p | The list of code locations (locations_node) associated with the warning. |
| [in] | proc | The procedure in which the warning occurs. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths), or if p is empty. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing the first location in p has been modified.
There are multiple methods for reporting a warning with a list of code locations in a specified procedure. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning with a list of code locations in a specified procedure, providing retraction information, and return the reported warning object.
| [in] | p | The list of code locations (locations_node) associated with the warning. |
| [in] | proc | The procedure in which the warning occurs. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths), or if p is empty. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning with a list of code locations in a specified procedure. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning at a point, providing retraction information, and return the reported warning object.
| [in] | p | The point where the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
This creates a single-event warning where the event is an end box.
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning at a point. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning at a point and return the reported warning object.
| [in] | p | The point where the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
This creates a single-event warning where the event is an end box.
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing p has been modified.
There are multiple methods for reporting a warning at a point. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning associated with a file instance, providing retraction information, and return the reported warning object.
| [in] | file | The file instance (sfileinst). |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths). |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning associated with a file instance. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning associated with a file instance and return the reported warning object.
| [in] | file | The file instance (sfileinst). |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths). |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing file has been modified.
There are multiple methods for reporting a warning associated with a file instance. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning with a code location, providing retraction information, and return the reported warning object.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | line | The line in file on which the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths). |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
This creates a single-event warning where the event is an end box.
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning with a code location. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning with a code location and return the reported warning object.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | line | The line in file on which the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths). |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
This creates a single-event warning where the event is an end box.
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing file has been modified.
There are multiple methods for reporting a warning with a code location. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning at a span in a specified procedure, providing retraction information, and return the reported warning object.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | line | The line in file on which the warning occurs. |
| [in] | proc | The procedure in which the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths). |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning at a line in a specified procedure. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning at a span in a specified procedure and return the reported warning object.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | line | The line in file on which the warning occurs. |
| [in] | proc | The procedure in which the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths). |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing file has been modified.
There are multiple methods for reporting a warning at a line in a specified procedure. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning with a code location, providing retraction information, and return the reported warning object.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | start_line | The line in file on which the warning starts. |
| [in] | end_line | The line in file on which the warning ends. |
| [in] | start_col | The column on start_line where the warning starts. |
| [in] | end_col | The column on end_line where the warning ends. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths). |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
This creates a single-event warning where the event is an end box.
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning with a code location. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning with a code span location and return the reported warning object.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | start_line | The line in file on which the warning starts. |
| [in] | end_line | The line in file on which the warning ends. |
| [in] | start_col | The column on start_line on which the warning starts. |
| [in] | end_col | The column on end_line on which the warning ends. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths). |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
This creates a single-event warning where the event is an end box.
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing file has been modified.
There are multiple methods for reporting a warning with a code span location. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning at a span in a specified procedure, providing retraction information, and return the reported warning object.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | start_line | The line in file on which the warning starts. |
| [in] | end_line | The line in file on which the warning ends. |
| [in] | start_col | The column on start_line on which the warning starts. |
| [in] | end_col | The column on end_line on which the warning ends. |
| [in] | proc | The procedure in which the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths). |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning at a line in a specified procedure. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning at a span in a specified procedure and return the reported warning object.
| [in] | file | The file instance (sfileinst) containing the warning. |
| [in] | start_line | The line in file on which the warning starts. |
| [in] | end_line | The line in file on which the warning ends. |
| [in] | start_col | The column on start_line on which the warning starts. |
| [in] | end_col | The column on end_line on which the warning ends. |
| [in] | proc | The procedure in which the warning occurs. |
| [in] | endbox | A short explanation of why the warning has been issued. |
| [in] | flags | report_flags that characterize the report. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_ARGUMENT | if warnings of this class have associated paths (and should therefore be reported with those paths). |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing file has been modified.
There are multiple methods for reporting a warning at a line in a specified procedure. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
Report a warning with a step path and return the reported warning object.
| [in] | p | The step path (step_path) associated with the warning. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if the compunit containing the first point in p has been modified.
There are multiple methods for reporting a warning with a step path. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
inline |
Report a warning with a step path, providing retraction information, and return the reported warning object.
| [in] | p | The step path (step_path) associated with the warning. |
| [in] | ri | warning_retraction_info describing the circumstances in which the warning should be retracted for subsequent incremental analyses. |
| result::FILTERED_OUT | if the warning was not submitted to the hub because it matched a WARNING_FILTER discard rule in the configuration file. |
| result::TIMEOUT | if the time limit specified by configuration file option TIME_LIMIT_RENDER expired. |
| result::NO_SOURCE_CORRESPONDENCE | if the warning was not submitted to the hub because no source location for the warning could be determined. |
| result::ELEMENT_ALREADY_PRESENT | if the warning was not submitted to the hub because configuration file option REPORT_SIMILAR_WARNINGS is set to No and a similar warning was previously submitted. |
| result::ERROR_INVALID_PHASE_FOR_OPERATION | if called from a drop visitor, cs_plug_main(), or your plug-in's top-level scope. |
The warning will be automatically retracted in a subsequent incremental analysis if and only if one or more of the conditions expressed in ri is satisfied.
There are multiple methods for reporting a warning with a step path. See the table above for details.
Always invoke report_return_warning() methods inside a try block.
|
related |
Inequality operator for warningclass.
false if a and b are equal according to warningclass::cmp(), true otherwise.
|
related |
Less-than operator for warningclass.
true if a < b according to warningclass::cmp() , false otherwise.
|
related |
Print a representation of a warningclass object to the specified stream.
| [in] | out | The stream to print to. |
| [in] | a | The warningclass object to print. |
|
related |
Less-than-or-equal operator for warningclass.
true if a <= b according to warningclass::cmp() , false otherwise.
|
related |
Equality operator for warningclass.
| [in] | a | The warningclass object to compare. |
| [in] | b | The warningclass object to compare against. |
true if a and b are equal according to warningclass::cmp(), false otherwise.
|
related |
Greater-than operator for warningclass.
true if a > b according to warningclass::cmp() , false otherwise.
|
related |
Greater-than-or-equal operator for warningclass.
true if a >= b according to warningclass::cmp() , false otherwise.