clang-tools 8.0.0

Namespaces | Functions
LexerUtils.h File Reference
`#include "clang/AST/ASTContext.h"`
`#include "clang/Lex/Lexer.h"`
Include dependency graph for LexerUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Namespaces
| clang
| ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
| clang::tidy
| clang::tidy::utils
| clang::tidy::utils::lexer

## Functions
Token | clang::tidy::utils::lexer::getPreviousToken (SourceLocation Location, const SourceManager &SM, const LangOptions &LangOpts, bool SkipComments=true)
| Returns previous token or `tok::unknown` if not found. More...
SourceLocation | clang::tidy::utils::lexer::findPreviousTokenStart (SourceLocation Start, const SourceManager &SM, const LangOptions &LangOpts)
SourceLocation | clang::tidy::utils::lexer::findPreviousTokenKind (SourceLocation Start, const SourceManager &SM, const LangOptions &LangOpts, tok::TokenKind TK)
SourceLocation | clang::tidy::utils::lexer::findNextTerminator (SourceLocation Start, const SourceManager &SM, const LangOptions &LangOpts)
template<typename TokenKind , typename... TokenKinds>
SourceLocation | clang::tidy::utils::lexer::findPreviousAnyTokenKind (SourceLocation Start, const SourceManager &SM, const LangOptions &LangOpts, TokenKind TK, TokenKinds... TKs)
template<typename TokenKind , typename... TokenKinds>
SourceLocation | clang::tidy::utils::lexer::findNextAnyTokenKind (SourceLocation Start, const SourceManager &SM, const LangOptions &LangOpts, TokenKind TK, TokenKinds... TKs)
bool | clang::tidy::utils::lexer::rangeContainsExpansionsOrDirectives (SourceRange Range, const SourceManager &SM, const LangOptions &LangOpts)
| Re-lex the provide `Range` and return `false` if either a macro spans multiple tokens, a pre-processor directive or failure to retrieve the next token is found, otherwise `true`. More...
llvm::Optional< Token > | clang::tidy::utils::lexer::getConstQualifyingToken (CharSourceRange Range, const ASTContext &Context, const SourceManager &SM)
| Assuming that `Range` spans a const-qualified type, returns the `const` token in `Range` that is responsible for const qualification. More...