class TrigramIndex

Declaration

class TrigramIndex { /* full declaration omitted */ };

Declared at: llvm/include/llvm/Support/TrigramIndex.h:37

Member Variables

private bool Defeated = false
private std::vector<unsigned int> Counts
private std::unordered_map<unsigned int, SmallVector<size_t, 4>> Index = {256}

Method Overview

Methods

void insert(const std::string& Regex)

Description

Inserts a new Regex into the index.

Declared at: llvm/include/llvm/Support/TrigramIndex.h:40

Parameters

const std::string& Regex

bool isDefeated()

Description

Returned true, iff the heuristic is defeated and not useful. In this case isDefinitelyOut always returns false.

Declared at: llvm/include/llvm/Support/TrigramIndex.h:48

bool isDefinitelyOut(llvm::StringRef Query) const

Description

Returns true, if special case list definitely does not have a line that matches the query. Returns false, if it's not sure.

Declared at: llvm/include/llvm/Support/TrigramIndex.h:44

Parameters

llvm::StringRef Query