public abstract class FindingCollectingClangCursorVisitorBase extends java.lang.Object implements eu.cqse.clang.IClangCursorVisitor
IClangCursorVisitors which collect findings while
visiting CXCursors in Clang syntax tree.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
fileText
The
ECodeViewOption.UNFILTERED source file text. |
protected eu.cqse.clang.SWIGTYPE_p_CXTranslationUnitImpl |
translationUnit
The main Clang translation unit for the source file.
|
protected java.lang.String |
uniformPath
The uniform path of the source file.
|
| Modifier | Constructor and Description |
|---|---|
protected |
FindingCollectingClangCursorVisitorBase(eu.cqse.clang.SWIGTYPE_p_CXTranslationUnitImpl translationUnit,
java.lang.String uniformPath,
java.lang.String fileText) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Pair<CheckTextRegionLocation,java.lang.String>> |
getFindings()
Returns the findings reported so far.
|
protected void |
reportFinding(CheckTextRegionLocation textRegionLocation,
java.lang.String message)
Creates a finding for the
CheckTextRegionLocation with the given
message. |
protected final eu.cqse.clang.SWIGTYPE_p_CXTranslationUnitImpl translationUnit
protected final java.lang.String uniformPath
protected final java.lang.String fileText
ECodeViewOption.UNFILTERED source file text.protected FindingCollectingClangCursorVisitorBase(eu.cqse.clang.SWIGTYPE_p_CXTranslationUnitImpl translationUnit, java.lang.String uniformPath, java.lang.String fileText)
public java.util.List<Pair<CheckTextRegionLocation,java.lang.String>> getFindings()
Pairs consist of
the finding CheckTextRegionLocation and the finding message.protected void reportFinding(CheckTextRegionLocation textRegionLocation, java.lang.String message)
CheckTextRegionLocation with the given
message.