struct SuspiciousClonePair::SuspiciousCloneInfo
Declaration
struct SuspiciousClonePair::SuspiciousCloneInfo { /* full declaration omitted */ };
Description
Utility class holding the relevant information about a single clone in this pair.
Declared at: clang/include/clang/Analysis/CloneDetection.h:383
Member Variables
- public const clang::VarDecl* Variable
- The variable which referencing in this clone was against the pattern.
- public const clang::Stmt* Mention
- Where the variable was referenced.
- public const clang::VarDecl* 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.
Method Overview
- public SuspiciousCloneInfo(const clang::VarDecl * Variable, const clang::Stmt * Mention, const clang::VarDecl * Suggestion)
- public SuspiciousCloneInfo()
Methods
¶SuspiciousCloneInfo(
const clang::VarDecl* Variable,
const clang::Stmt* Mention,
const clang::VarDecl* Suggestion)
SuspiciousCloneInfo(
const clang::VarDecl* Variable,
const clang::Stmt* Mention,
const clang::VarDecl* Suggestion)
Declared at: clang/include/clang/Analysis/CloneDetection.h:392
Parameters
- const clang::VarDecl* Variable
- const clang::Stmt* Mention
- const clang::VarDecl* Suggestion
¶SuspiciousCloneInfo()
SuspiciousCloneInfo()
Declared at: clang/include/clang/Analysis/CloneDetection.h:395