Go to the source code of this file.
Functions |
|
static bool |
spelledInMacroDefinition (SourceLocation Loc, const SourceManager &SM) |
|
|
static std::optional< CharSourceRange > |
getExpansionForSplitToken (SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) |
|
|
static CharSourceRange |
getRangeForSplitTokens (CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) |
|
|
static CharSourceRange |
getRange (const CharSourceRange &EditRange, const SourceManager &SM, const LangOptions &LangOpts, bool IncludeMacroExpansion) |
|
|
static bool |
startsWithNewline (const SourceManager &SM, const Token &Tok) |
|
|
static bool |
contains (const std::set< tok::TokenKind > &Terminators, const Token &Tok) |
|
|
static SourceLocation |
getEntityEndLoc (const SourceManager &SM, SourceLocation EntityLast, const std::set< tok::TokenKind > &Terminators, const LangOptions &LangOpts) |
|
|
static std::set< tok::TokenKind > |
getTerminators (const Decl &D) |
|
|
static SourceLocation |
skipWhitespaceAndNewline (const SourceManager &SM, SourceLocation Loc, const LangOptions &LangOpts) |
|
|
static bool |
atOrBeforeSeparation (const SourceManager &SM, SourceLocation Loc, const LangOptions &LangOpts) |
|
|
◆ atOrBeforeSeparation()
◆ contains()
◆ getEntityEndLoc()
Definition at line 215 of file SourceCode.cpp.
References contains(), clang::File, clang::CharSourceRange::getEnd(), clang::Token::getEndLoc(), clang::Token::getKind(), clang::Invalid, clang::SourceLocation::isMacroID(), clang::SourceLocation::isValid(), clang::Lexer::LexFromRawLexer(), clang::Lexer::SetKeepWhitespaceMode(), SM, and startsWithNewline().
Referenced by clang::tooling::getAssociatedRange().
◆ getExpansionForSplitToken()
◆ getRange()
Definition at line 152 of file SourceCode.cpp.
References E, clang::CharSourceRange::getCharRange(), clang::Lexer::getLocForEndOfToken(), getRangeForSplitTokens(), clang::Lexer::makeFileCharRange(), Range, SM, and spelledInMacroDefinition().
Referenced by clang::SemaOpenMP::checkOpenMPDeclareVariantFunction(), clang::tooling::getFileRange(), clang::tooling::getFileRangeForEdit(), and clang::Sema::mergeDeclAttributes().
◆ getRangeForSplitTokens()
◆ getTerminators()
◆ skipWhitespaceAndNewline()
◆ spelledInMacroDefinition()
◆ startsWithNewline()