clang 20.0.0git
|
Utility class holding the relevant information about a single clone in this pair. More...
#include "clang/Analysis/CloneDetection.h"
Public Member Functions | |
SuspiciousCloneInfo (const VarDecl *Variable, const Stmt *Mention, const VarDecl *Suggestion) | |
SuspiciousCloneInfo () | |
Public Attributes | |
const VarDecl * | Variable |
The variable which referencing in this clone was against the pattern. | |
const Stmt * | Mention |
Where the variable was referenced. | |
const VarDecl * | Suggestion |
The variable that should have been referenced to follow the pattern. | |
Utility class holding the relevant information about a single clone in this pair.
Definition at line 383 of file CloneDetection.h.
|
inline |
Definition at line 392 of file CloneDetection.h.
|
inline |
Definition at line 395 of file CloneDetection.h.
const Stmt* clang::VariablePattern::SuspiciousClonePair::SuspiciousCloneInfo::Mention |
Where the variable was referenced.
Definition at line 387 of file CloneDetection.h.
const VarDecl* clang::VariablePattern::SuspiciousClonePair::SuspiciousCloneInfo::Suggestion |
The variable that should have been referenced to follow the pattern.
If Suggestion is a nullptr then it's not possible to fix the pattern by referencing a different variable in this clone.
Definition at line 391 of file CloneDetection.h.
Referenced by clang::VariablePattern::countPatternDifferences().
const VarDecl* clang::VariablePattern::SuspiciousClonePair::SuspiciousCloneInfo::Variable |
The variable which referencing in this clone was against the pattern.
Definition at line 385 of file CloneDetection.h.