/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | TokenConcatenation.h | 1 //===--- TokenConcatenation.h - Token Concatenation Avoidance ---*- C++ -*-===// 20 class Token; 60 bool AvoidConcat(const Token &PrevPrevTok, 61 const Token &PrevTok, 62 const Token &Tok) const; 67 bool IsIdentifierStringPrefix(const Token &Tok) const;
|
H A D | TokenLexer.h | 24 class Token; 51 const Token *Tokens; 99 /// When true, the produced tokens have Token::IsReinjected flag set. 108 TokenLexer(Token &Tok, SourceLocation ILEnd, MacroInfo *MI, 117 TokenLexer(const Token *TokArray, unsigned NumToks, bool DisableExpansion, 131 void Init(Token &Tok, SourceLocation ELEnd, MacroInfo *MI, 139 void Init(const Token *TokArray, unsigned NumToks, bool DisableMacroExpansion, 148 bool Lex(Token &Tok); 172 /// Tokens upon entry and will contain the resulting concatenated Token upon 184 bool pasteTokens(Token [all...] |
H A D | MacroArgs.h | 17 #include "clang/Lex/Token.h" 30 : private llvm::TrailingObjects<MacroArgs, Token> { 49 std::vector<std::vector<Token> > PreExpArgTokens; 67 ArrayRef<Token> UnexpArgTokens, 76 bool ArgNeedsPreexpansion(const Token *ArgTok, Preprocessor &PP) const; 81 const Token *getUnexpArgument(unsigned Arg) const; 86 static unsigned getArgLength(const Token *ArgPtr); 90 const std::vector<Token> & 124 static Token StringifyArgument(const Token *ArgTok [all...] |
H A D | DependencyDirectivesSourceMinimizer.h | 59 struct Token { struct in namespace:clang::minimize_source_to_dependency_directives 66 Token(TokenKind K, int Offset) : K(K), Offset(Offset) {} function in struct:clang::minimize_source_to_dependency_directives::Token 84 bool computeSkippedRanges(ArrayRef<Token> Input, 103 llvm::SmallVectorImpl<minimize_source_to_dependency_directives::Token>
|
H A D | Lexer.h | 20 #include "clang/Lex/Token.h" 179 bool Lex(Token &Result); 188 void IndirectLex(Token &Result) override { Lex(Result); } 194 bool LexFromRawLexer(Token &Result) { 302 static unsigned getSpelling(const Token &Tok, const char *&Buffer, 312 static std::string getSpelling(const Token &Tok, 341 static bool getRawToken(SourceLocation Loc, Token &Result, 519 static Optional<Token> findNextToken(SourceLocation Loc, 568 bool LexTokenInternal(Token &Result, bool TokAtPhysicalStartOfLine); 570 bool CheckUnicodeWhitespace(Token [all...] |
H A D | Pragma.h | 26 class Token; 75 Token &FirstToken) = 0; 89 Token &FirstToken) override; 122 Token &Tok) override;
|
H A D | Preprocessor.h | 31 #include "clang/Lex/Token.h" 104 bool operator==(const Token &Tok) const { 132 llvm::unique_function<void(const clang::Token &)> OnToken; 182 Token* ArgMacro; 550 Token Tok; 554 MacroExpandsInfo(Token Tok, MacroDefinition MD, SourceRange Range) 828 SmallVector<Token, 16> MacroExpandedTokens; 839 using CachedTokensTy = SmallVector<Token, 1>; 1016 void setTokenWatcher(llvm::unique_function<void(const clang::Token &)> F) { 1278 void HandleSkippedDirectiveWhileUsingPCH(Token [all...] |
/freebsd-11-stable/sys/contrib/dev/acpica/compiler/ |
H A D | prscan.c | 427 char *Token; local 452 Token = PrGetNextToken (Gbl_MainTokenBuffer, PR_TOKEN_SEPARATORS, &Next); 457 if (Token && (*Token == '#')) 459 if (strlen (Token) == 1) 461 Token = PrGetNextToken (NULL, PR_TOKEN_SEPARATORS, &Next); 465 Token++; /* Skip leading # */ 470 PrDoDirective (Token, &Next); 486 while (Token) 488 DefineInfo = PrMatchDefine (Token); 560 char *Token = Gbl_MainTokenBuffer; local [all...] |
H A D | prmacros.c | 385 char *Token = NULL; local 439 Token = PrGetNextToken (NULL, PR_MACRO_SEPARATORS, Next); 440 if (!Token) 450 TokenOffset = Token - Gbl_MainTokenBuffer + strlen (Token); 458 Gbl_CurrentLineNumber, Token); 460 Args[i].Name = UtLocalCalloc (strlen (Token) + 1); 461 strcpy (Args[i].Name, Token); 473 /* Get the macro body. Token now points to start of body */ 475 MacroBodyOffset = Token 595 char *Token = NULL; local [all...] |
H A D | prexpress.c | 169 * PARAMETERS: Buffer - Token Buffer 218 char *Token; local 227 Token = PrGetNextToken (Gbl_ExpressionTokenBuffer, PR_EXPR_SEPARATORS, &Next); 230 while (Token) 232 DefineInfo = PrMatchDefine (Token); 244 PrDoMacroInvocation (Gbl_ExpressionTokenBuffer, Token, 253 TokenOffset = Token - Gbl_ExpressionTokenBuffer + OffsetAdjust; 255 &Gbl_CurrentLineBuffer[TokenOffset], strlen (Token), 260 OffsetAdjust += strlen (ReplaceString) - strlen (Token); 264 Gbl_CurrentLineNumber, Token, [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/ |
H A D | MIParser.cpp | 401 MIToken Token; member in class:__anon1744::MIParser 565 CurrentSource.data() + SkipChar, Token, 569 bool MIParser::error(const Twine &Msg) { return error(Token.location(), Msg); } 609 if (Token.isNot(TokenKind)) 616 if (Token.isNot(TokenKind)) 624 assert(Token.is(MIToken::MachineBasicBlockLabel)); 628 auto Loc = Token.location(); 629 auto Name = Token.stringValue(); 638 switch (Token.kind()) { 693 while (Token [all...] |
H A D | MILexer.cpp | 159 static Cursor lexName(Cursor C, MIToken &Token, MIToken::TokenKind Type, argument 166 Token.reset(Type, String) 171 Token.reset(MIToken::Error, Range.remaining()); 176 Token.reset(Type, Range.upto(C)) 261 static Cursor maybeLexIdentifier(Cursor C, MIToken &Token) { argument 268 Token.reset(getIdentifierKind(Identifier), Identifier) 273 static Cursor maybeLexMachineBasicBlock(Cursor C, MIToken &Token, argument 282 Token.reset(MIToken::Error, C.remaining()); 300 Token.reset(IsReference ? MIToken::MachineBasicBlock 308 static Cursor maybeLexIndex(Cursor C, MIToken &Token, StringRe argument 321 maybeLexIndexAndName(Cursor C, MIToken &Token, StringRef Rule, MIToken::TokenKind Kind) argument 344 maybeLexJumpTableIndex(Cursor C, MIToken &Token) argument 348 maybeLexStackObject(Cursor C, MIToken &Token) argument 352 maybeLexFixedStackObject(Cursor C, MIToken &Token) argument 356 maybeLexConstantPoolItem(Cursor C, MIToken &Token) argument 360 maybeLexSubRegisterIndex(Cursor C, MIToken &Token, ErrorCallbackType ErrorCallback) argument 369 maybeLexIRBlock(Cursor C, MIToken &Token, ErrorCallbackType ErrorCallback) argument 379 maybeLexIRValue(Cursor C, MIToken &Token, ErrorCallbackType ErrorCallback) argument 389 maybeLexStringConstant(Cursor C, MIToken &Token, ErrorCallbackType ErrorCallback) argument 397 lexVirtualRegister(Cursor C, MIToken &Token) argument 413 lexNamedVirtualRegister(Cursor C, MIToken &Token) argument 423 maybeLexRegister(Cursor C, MIToken &Token, ErrorCallbackType ErrorCallback) argument 448 maybeLexGlobalValue(Cursor C, MIToken &Token, ErrorCallbackType ErrorCallback) argument 465 maybeLexExternalSymbol(Cursor C, MIToken &Token, ErrorCallbackType ErrorCallback) argument 473 maybeLexMCSymbol(Cursor C, MIToken &Token, ErrorCallbackType ErrorCallback) argument 524 lexFloatingPointLiteral(Cursor Range, Cursor C, MIToken &Token) argument 540 maybeLexHexadecimalLiteral(Cursor C, MIToken &Token) argument 562 maybeLexNumericalLiteral(Cursor C, MIToken &Token) argument 587 maybeLexExclaim(Cursor C, MIToken &Token, ErrorCallbackType ErrorCallback) argument 638 maybeLexSymbol(Cursor C, MIToken &Token) argument 654 maybeLexNewline(Cursor C, MIToken &Token) argument 663 maybeLexEscapedIRValue(Cursor C, MIToken &Token, ErrorCallbackType ErrorCallback) argument 686 lexMIToken(StringRef Source, MIToken &Token, ErrorCallbackType ErrorCallback) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Tooling/Syntax/ |
H A D | Tokens.h | 35 #include "clang/Lex/Token.h" 104 class Token { class in namespace:clang::syntax 106 Token(SourceLocation Location, unsigned Length, tok::TokenKind Kind); 107 /// EXPECTS: clang::Token is not an annotation token. 108 explicit Token(const clang::Token &T); 134 static FileRange range(const SourceManager &SM, const syntax::Token &First, 135 const syntax::Token &Last); 146 /// For debugging purposes. Equivalent to a call to Token::str(). 147 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Token [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/ObjectFile/Breakpad/ |
H A D | BreakpadRecords.cpp | 19 enum class Token { class in namespace:__anon1245 37 template <> Token stringTo<Token>(llvm::StringRef Str) { 38 return llvm::StringSwitch<Token>(Str) 39 .Case("MODULE", Token::Module) 40 .Case("INFO", Token::Info) 41 .Case("CODE_ID", Token::CodeID) 42 .Case("FILE", Token::File) 43 .Case("FUNC", Token::Func) 44 .Case("PUBLIC", Token 81 llvm::StringRef Token; local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/ |
H A D | YAMLParser.cpp | 125 /// Token - A single YAML token. 126 struct Token { struct in namespace:llvm::yaml 160 Token() = default; 166 using TokenQueueT = BumpPtrList<Token>; 172 /// Simple keys are handled by creating an entry in SimpleKeys for each Token 174 /// if the Token To be returned is referenced by a SimpleKey, we continue 260 Token &peekNext(); 263 Token getNext(); 429 , Token::TokenKind Kind 597 Token [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Lex/ |
H A D | MacroArgs.cpp | 25 ArrayRef<Token> UnexpArgTokens, 52 llvm::safe_malloc(totalSizeToAlloc<Token>(UnexpArgTokens.size()))) 65 static_assert(std::is_trivial<Token>::value, 70 Result->getTrailingObjects<Token>()); 97 static_assert(std::is_trivially_destructible<Token>::value, 108 unsigned MacroArgs::getArgLength(const Token *ArgPtr) { 118 const Token *MacroArgs::getUnexpArgument(unsigned Arg) const { 123 const Token *Start = getTrailingObjects<Token>(); 124 const Token *Resul [all...] |
H A D | PPCaching.cpp | 48 void Preprocessor::CachingLex(Token &Result) { 58 Result.setFlag(Token::IsReinjected); 105 const Token &Preprocessor::PeekAhead(unsigned N) { 109 CachedTokens.push_back(Token()); 116 void Preprocessor::AnnotatePreviousCachedTokens(const Token &Tok) { 139 bool Preprocessor::IsPreviousCachedToken(const Token &Tok) const { 144 const Token LastCachedTok = CachedTokens[CachedLexPos - 1]; 157 void Preprocessor::ReplacePreviousCachedToken(ArrayRef<Token> NewToks) {
|
H A D | TokenLexer.cpp | 25 #include "clang/Lex/Token.h" 38 void TokenLexer::Init(Token &Tok, SourceLocation ELEnd, MacroInfo *MI, 94 void TokenLexer::Init(const Token *TokArray, unsigned NumToks, 138 SmallVectorImpl<Token> &ResultToks, bool HasPasteOperator, MacroInfo *Macro, 179 ResultToks.back().setFlag(Token::CommaAfterElided); 188 SmallVectorImpl<Token> &ResultToks, const VAOptExpansionContext &VCtx, 192 Token *const VAOPTTokens = 195 SmallVector<Token, 64> ConcatenatedVAOPTResultToks; 205 Token &LHS = VAOPTTokens[CurTokenIdx - 1]; 227 Token StringifiedVAOP [all...] |
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/ |
H A D | llex.h | 43 typedef struct Token { struct 46 } Token; typedef in typeref:struct:Token 55 Token t; /* current token */ 56 Token lookahead; /* look ahead token */
|
/freebsd-11-stable/contrib/lua/src/ |
H A D | llex.h | 50 typedef struct Token { struct 53 } Token; typedef in typeref:struct:Token 62 Token t; /* current token */ 63 Token lookahead; /* look ahead token */
|
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Rewrite/Core/ |
H A D | TokenRewriter.h | 1 //===- TokenRewriter.h - Token-based Rewriter -------------------*- C++ -*-===// 18 #include "clang/Lex/Token.h" 33 std::list<Token> TokenList; 36 using TokenRefTy = std::list<Token>::iterator; 56 using token_iterator = std::list<Token>::const_iterator; 75 TokenRefTy AddToken(const Token &T, TokenRefTy Where);
|
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | CommentLexer.h | 55 class Token { class in namespace:clang::comments 298 void formTokenWithChars(Token &Result, const char *TokEnd, 301 void formTextToken(Token &Result, const char *TokEnd) { 323 void lexCommentText(Token &T); 325 void setupAndLexVerbatimBlock(Token &T, const char *TextBegin, char Marker, 328 void lexVerbatimBlockFirstLine(Token &T); 330 void lexVerbatimBlockBody(Token &T); 332 void setupAndLexVerbatimLine(Token &T, const char *TextBegin, 335 void lexVerbatimLineText(Token &T); 337 void lexHTMLCharacterReference(Token [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | OperatorKinds.h | 23 #define OVERLOADED_OPERATOR(Name,Spelling,Token,Unary,Binary,MemberOnly) \
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteMacros.cpp | 27 static bool isSameToken(Token &RawTok, Token &PPTok) { 47 static const Token &GetNextRawTok(const std::vector<Token> &RawTokens, 62 std::vector<Token> &RawTokens) { 73 Token RawTok; 96 std::vector<Token> RawTokens; 99 Token RawTok = GetNextRawTok(RawTokens, CurRawTok, false); 104 Token PPTok;
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
H A D | ComputeReplacements.cpp | 16 using ProcessTokensFn = llvm::function_ref<void(llvm::ArrayRef<syntax::Token>, 55 const syntax::Token *SpanBegin; 56 const syntax::Token *SpanEnd; 65 llvm::ArrayRef<syntax::Token> Expanded) { 80 return syntax::Token::range(SM, Spelled->front(), Spelled->back()); 93 auto emitReplacement = [&](llvm::ArrayRef<syntax::Token> ReplacedRange) { 101 const syntax::Token *NextOriginal = Buffer.expandedTokens().begin(); 103 &TU, [&](llvm::ArrayRef<syntax::Token> Tokens, bool IsOriginal) { 106 syntax::Token::range(SM, Tokens.front(), Tokens.back()).text(SM);
|