struct ComparisonOptions

Declaration

struct ComparisonOptions { /* full declaration omitted */ };

Declared at: clang/include/clang/Tooling/ASTDiff/ASTDiff.h:89

Member Variables

public int MinHeight = 2
During top-down matching, only consider nodes of at least this height.
public double MinSimilarity = 0.5
During bottom-up matching, match only nodes with at least this value as the ratio of their common descendants.
public int MaxSize = 100
Whenever two subtrees are matched in the bottom-up phase, the optimal mapping is computed, unless the size of either subtrees exceeds this.
public bool StopAfterTopDown = false

Method Overview

  • public bool isMatchingAllowed(const clang::diff::Node & N1, const clang::diff::Node & N2) const

Methods

ΒΆbool isMatchingAllowed(
    const clang::diff::Node& N1,
    const clang::diff::Node& N2) const

Description

Returns false if the nodes should never be matched.

Declared at: clang/include/clang/Tooling/ASTDiff/ASTDiff.h:104

Parameters

const clang::diff::Node& N1
const clang::diff::Node& N2