Go to the source code of this file.
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()RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4