clang-tools 22.0.0git
clang::clangd::SpelledWord Struct Reference

#include <SourceCode.h>

Static Public Member Functions

static std::optional< SpelledWordtouching (SourceLocation SpelledLoc, const syntax::TokenBuffer &TB, const LangOptions &LangOpts)

Public Attributes

SourceLocation Location
llvm::StringRef Text
bool LikelyIdentifier = false
const syntax::Token * PartOfSpelledToken = nullptr
const syntax::Token * SpelledToken = nullptr
const syntax::Token * ExpandedToken = nullptr

Detailed Description

Definition at line 238 of file SourceCode.h.

Member Function Documentation

◆ touching()

std::optional< SpelledWord > clang::clangd::SpelledWord::touching ( SourceLocation SpelledLoc,
const syntax::TokenBuffer & TB,
const LangOptions & LangOpts )
static

Member Data Documentation

◆ ExpandedToken

const syntax::Token* clang::clangd::SpelledWord::ExpandedToken = nullptr

◆ LikelyIdentifier

bool clang::clangd::SpelledWord::LikelyIdentifier = false

Definition at line 248 of file SourceCode.h.

Referenced by clang::clangd::locateSymbolTextually(), and touching().

◆ Location

SourceLocation clang::clangd::SpelledWord::Location

◆ PartOfSpelledToken

const syntax::Token* clang::clangd::SpelledWord::PartOfSpelledToken = nullptr

◆ SpelledToken

const syntax::Token* clang::clangd::SpelledWord::SpelledToken = nullptr

Definition at line 253 of file SourceCode.h.

Referenced by touching().

◆ Text

llvm::StringRef clang::clangd::SpelledWord::Text

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