• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Lex/

Lines Matching refs:Token

33 #include "clang/Lex/Token.h"
470 bool Preprocessor::HandleMacroExpandedIdentifier(Token &Identifier,
570 Identifier.setFlag(Token::LeadingEmptyMacro);
593 Identifier.setFlagValue(Token::StartOfLine , isAtStartOfLine);
594 Identifier.setFlagValue(Token::LeadingSpace, hasLeadingSpace);
608 Identifier.setFlag(Token::DisableExpand);
634 static bool CheckMatchedBrackets(const SmallVectorImpl<Token> &Tokens) {
636 for (SmallVectorImpl<Token>::const_iterator I = Tokens.begin(),
664 SmallVectorImpl<Token> &OldTokens,
665 SmallVectorImpl<Token> &NewTokens,
677 SmallVectorImpl<Token>::iterator ArgStartIterator = OldTokens.begin();
681 SmallVectorImpl<Token>::iterator ClosingBrace = OldTokens.end();
683 Token TempToken;
688 for (SmallVectorImpl<Token>::iterator I = OldTokens.begin(),
759 MacroArgs *Preprocessor::ReadMacroCallArgumentList(Token &MacroName,
767 Token Tok;
777 SmallVector<Token, 64> ArgTokens;
813 auto Toks = std::make_unique<Token[]>(1);
833 if (Tok.getFlags() & Token::IgnoredComma) {
839 Tok.clearFlag(Token::IgnoredComma);
862 Tok.setFlag(Token::DisableExpand);
898 Token EOFTok;
928 SmallVector<Token, 4> FixedArgTokens;
959 Token EOFTok;
1037 Token *Preprocessor::cacheMacroExpandedTokens(TokenLexer *tokLexer,
1038 ArrayRef<Token> tokens) {
1089 Token TmpTok;
1100 Token TmpTok;
1155 static bool EvaluateHasIncludeCommon(Token &Tok,
1245 static bool EvaluateHasInclude(Token &Tok, IdentifierInfo *II,
1252 static bool EvaluateHasIncludeNext(Token &Tok,
1287 Token &Tok, IdentifierInfo *II,
1290 int(Token &Tok,
1310 Token ResultTok;
1391 /// Helper function to return the IdentifierInfo structure of a Token
1393 static IdentifierInfo *ExpectFeatureIdentifierInfo(Token &Tok,
1465 void Preprocessor::ExpandBuiltinMacro(Token &Tok) {
1484 Tok.clearFlag(Token::NeedsCleaning);
1614 [this](Token &Tok, bool &HasLexedNextToken) -> int {
1621 [this](Token &Tok, bool &HasLexedNextToken) -> int {
1628 [this](Token &Tok, bool &HasLexedNextToken) -> int {
1681 [](Token &Tok, bool &HasLexedNextToken) -> int {
1686 [this](Token &Tok, bool &HasLexedNextToken) -> int {
1694 [this](Token &Tok, bool &HasLexedNextToken) -> int {
1704 OS, Tok, II, *this, [&](Token &Tok, bool &HasLexedNextToken) -> int {
1746 [this](Token &Tok, bool &HasLexedNextToken) -> int {
1777 [this](Token &Tok, bool &HasLexedNextToken) -> int {
1819 Token RParen;
1829 OS, Tok, II, *this, [this](Token &Tok, bool &HasLexedNextToken) -> int {
1836 OS, Tok, II, *this, [this](Token &Tok, bool &HasLexedNextToken) -> int {
1843 OS, Tok, II, *this, [this](Token &Tok, bool &HasLexedNextToken) -> int {
1850 OS, Tok, II, *this, [this](Token &Tok, bool &HasLexedNextToken) -> int {
1859 Tok.setFlagValue(Token::StartOfLine, IsAtStartOfLine);
1860 Tok.setFlagValue(Token::LeadingSpace, HasLeadingSpace);