C# Class Microsoft.CodeAnalysis.Sarif.Converters.CppCheckError

An error reported by CppCheck.
Afficher le fichier Open project: Microsoft/sarif-sdk Class Usage Examples

Méthodes publiques

Свойство Type Description
Id string
Locations ImmutableArray
Message string
Severity string
VerboseMessage string

Méthodes publiques

Méthode Description
CppCheckError ( string id, string message, string verboseMessage, string severity, ImmutableArray locations ) : System

Initializes a new instance of the CppCheckError class.

Parse ( XmlReader reader, CppCheckStrings strings ) : CppCheckError

Parses the element on which an XmlReader is positioned as a CppCheck error node.

ToSarifIssue ( ) : System.Result

Converts this instance to Result.

Private Methods

Méthode Description
ParseLocationsSubtree ( XmlReader reader, CppCheckStrings strings ) : ImmutableArray

Method Details

CppCheckError() public méthode

Initializes a new instance of the CppCheckError class.
public CppCheckError ( string id, string message, string verboseMessage, string severity, ImmutableArray locations ) : System
id string The rule ID of the error generated by CppCheck.
message string The message of the error generated by CppCheck.
verboseMessage string The verbose message of the error generated by CppCheck.
severity string The severity of the error generated by CppCheck.
locations ImmutableArray The locations to which the error generated by CppCheck refer.
Résultat System

Parse() public static méthode

Parses the element on which an XmlReader is positioned as a CppCheck error node.
The xml on which is placed is /// in an incorrect format.
public static Parse ( XmlReader reader, CppCheckStrings strings ) : CppCheckError
reader System.Xml.XmlReader The reader from which a CppCheck error shall be read.
strings CppCheckStrings Strings used to parse the CppCheck log.
Résultat CppCheckError

ToSarifIssue() public méthode

Converts this instance to Result.
public ToSarifIssue ( ) : System.Result
Résultat System.Result

Property Details

Id public_oe property

The rule ID of the error generated by CppCheck.
public string Id
Résultat string

Locations public_oe property

The locations to which the error generated by CppCheck refer.
public ImmutableArray Locations
Résultat ImmutableArray

Message public_oe property

The message of the error generated by CppCheck.
public string Message
Résultat string

Severity public_oe property

The severity of the error generated by CppCheck.
public string Severity
Résultat string

VerboseMessage public_oe property

The verbose message of the error generated by CppCheck.
public string VerboseMessage
Résultat string