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

Methods

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()

Declared at: clang/include/clang/Analysis/CloneDetection.h:395