C# 클래스 Microsoft.CodeAnalysis.Sarif.Converters.CppCheckError

An error reported by CppCheck.
파일 보기 프로젝트 열기: Microsoft/sarif-sdk 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Id string
Locations ImmutableArray
Message string
Severity string
VerboseMessage string

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
ParseLocationsSubtree ( XmlReader reader, CppCheckStrings strings ) : ImmutableArray

메소드 상세

CppCheckError() 공개 메소드

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.
리턴 System

Parse() 공개 정적인 메소드

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.
리턴 CppCheckError

ToSarifIssue() 공개 메소드

Converts this instance to Result.
public ToSarifIssue ( ) : System.Result
리턴 System.Result

프로퍼티 상세

Id 공개적으로 프로퍼티

The rule ID of the error generated by CppCheck.
public string Id
리턴 string

Locations 공개적으로 프로퍼티

The locations to which the error generated by CppCheck refer.
public ImmutableArray Locations
리턴 ImmutableArray

Message 공개적으로 프로퍼티

The message of the error generated by CppCheck.
public string Message
리턴 string

Severity 공개적으로 프로퍼티

The severity of the error generated by CppCheck.
public string Severity
리턴 string

VerboseMessage 공개적으로 프로퍼티

The verbose message of the error generated by CppCheck.
public string VerboseMessage
리턴 string