struct Token

Declaration

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

Description

Token lexed as part of dependency directive scanning.

Declared at: clang/include/clang/Lex/DependencyDirectivesScanner.h:34

Member Variables

public unsigned int Offset
Offset into the original source input.
public unsigned int Length
public tok::TokenKind Kind
public unsigned short Flags

Method Overview

  • public Token(unsigned int Offset, unsigned int Length, tok::TokenKind Kind, unsigned short Flags)
  • public unsigned int getEnd() const
  • public bool is(tok::TokenKind K) const
  • public bool isNot(tok::TokenKind K) const
  • public bool isOneOf(tok::TokenKind K1, tok::TokenKind K2) const
  • public template <typename... Ts>bool isOneOf(tok::TokenKind K1, Ts... Ks) const

Methods

Token(unsigned int Offset,
      unsigned int Length,
      tok::TokenKind Kind,
      unsigned short Flags)

Declared at: clang/include/clang/Lex/DependencyDirectivesScanner.h:41

Parameters

unsigned int Offset
unsigned int Length
tok::TokenKind Kind
unsigned short Flags

unsigned int getEnd() const

Declared at: clang/include/clang/Lex/DependencyDirectivesScanner.h:45

bool is(tok::TokenKind K) const

Declared at: clang/include/clang/Lex/DependencyDirectivesScanner.h:47

Parameters

tok::TokenKind K

bool isNot(tok::TokenKind K) const

Declared at: clang/include/clang/Lex/DependencyDirectivesScanner.h:48

Parameters

tok::TokenKind K

bool isOneOf(tok::TokenKind K1,
             tok::TokenKind K2) const

Declared at: clang/include/clang/Lex/DependencyDirectivesScanner.h:49

Parameters

tok::TokenKind K1
tok::TokenKind K2

template <typename... Ts>
bool isOneOf(tok::TokenKind K1, Ts... Ks) const

Declared at: clang/include/clang/Lex/DependencyDirectivesScanner.h:52

Templates

Ts

Parameters

tok::TokenKind K1
Ts... Ks