clang 22.0.0git
clang::ast_matchers::dynamic::MatcherCompletion Struct Reference

#include "clang/ASTMatchers/Dynamic/Registry.h"

Public Member Functions

 MatcherCompletion ()=default
 MatcherCompletion (StringRef TypedText, StringRef MatcherDecl, unsigned Specificity)
bool operator== (const MatcherCompletion &Other) const

Public Attributes

std::string TypedText
 The text to type to select this matcher.
std::string MatcherDecl
 The "declaration" of the matcher, with type information.
unsigned Specificity
 Value corresponding to the "specificity" of the converted matcher.

Detailed Description

Definition at line 57 of file Registry.h.

Constructor & Destructor Documentation

◆ MatcherCompletion() [1/2]

clang::ast_matchers::dynamic::MatcherCompletion::MatcherCompletion ( )
default

Referenced by operator==().

◆ MatcherCompletion() [2/2]

clang::ast_matchers::dynamic::MatcherCompletion::MatcherCompletion ( StringRef TypedText,
StringRef MatcherDecl,
unsigned Specificity )
inline

Definition at line 59 of file Registry.h.

References MatcherDecl, Specificity, and TypedText.

Member Function Documentation

◆ operator==()

bool clang::ast_matchers::dynamic::MatcherCompletion::operator== ( const MatcherCompletion & Other) const
inline

Definition at line 64 of file Registry.h.

References MatcherCompletion(), MatcherDecl, clang::Other, and TypedText.

Member Data Documentation

◆ MatcherDecl

std::string clang::ast_matchers::dynamic::MatcherCompletion::MatcherDecl

The "declaration" of the matcher, with type information.

Definition at line 72 of file Registry.h.

Referenced by MatcherCompletion(), and operator==().

◆ Specificity

unsigned clang::ast_matchers::dynamic::MatcherCompletion::Specificity

Value corresponding to the "specificity" of the converted matcher.

Zero specificity indicates that this conversion would produce a trivial matcher that will either always or never match. Such matchers are excluded from code completion results.

Definition at line 79 of file Registry.h.

Referenced by MatcherCompletion().

◆ TypedText

std::string clang::ast_matchers::dynamic::MatcherCompletion::TypedText

The text to type to select this matcher.

Definition at line 69 of file Registry.h.

Referenced by MatcherCompletion(), and operator==().


The documentation for this struct was generated from the following file: