| /src/external/apache2/llvm/dist/clang/utils/ |
| token-delta.py | 98 class Token(object): 128 tokens.append(Token(*kTokenRE.match(ln).groups()))
|
| /src/sys/external/bsd/acpica/dist/compiler/ |
| asloptions.c | 971 char *Token; 976 Token = strtok (InBuffer, ASL_TOKEN_SEPARATORS); 977 while (Token) 979 strcat (OutBuffer, Token); 980 Token = strtok (NULL, ASL_TOKEN_SEPARATORS);
|
| prexpress.c | 61 * PARAMETERS: Buffer - Token Buffer 66 * DESCRIPTION: Un-tokenized the current token buffer. The implementation is 110 char *Token; 119 Token = PrGetNextToken (AslGbl_ExpressionTokenBuffer, PR_EXPR_SEPARATORS, &Next); 122 while (Token) 124 DefineInfo = PrMatchDefine (Token); 136 PrDoMacroInvocation (AslGbl_ExpressionTokenBuffer, Token, 145 TokenOffset = Token - AslGbl_ExpressionTokenBuffer + OffsetAdjust; 147 &AslGbl_CurrentLineBuffer[TokenOffset], strlen (Token), 152 OffsetAdjust += strlen (ReplaceString) - strlen (Token); [all...] |
| prmacros.c | 277 char *Token = NULL; 331 Token = PrGetNextToken (NULL, PR_MACRO_SEPARATORS, Next); 333 if (!Token) 343 TokenOffset = Token - AslGbl_MainTokenBuffer + strlen (Token); 351 AslGbl_CurrentLineNumber, Token); 353 Args[i].Name = UtLocalCalloc (strlen (Token) + 1); 354 strcpy (Args[i].Name, Token); 365 /* Get the macro body. Token now points to start of body */ 367 MacroBodyOffset = Token - AslGbl_MainTokenBuffer [all...] |
| prscan.c | 319 char *Token; 344 Token = PrGetNextToken (AslGbl_MainTokenBuffer, PR_TOKEN_SEPARATORS, &Next); 349 if (Token && (*Token == '#')) 351 if (strlen (Token) == 1) 353 Token = PrGetNextToken (NULL, PR_TOKEN_SEPARATORS, &Next); 357 Token++; /* Skip leading # */ 362 PrDoDirective (Token, &Next); 378 while (Token) 380 DefineInfo = PrMatchDefine (Token); [all...] |
| /src/sys/external/bsd/acpica/dist/tools/acpihelp/ |
| ahasl.c | 286 char *Token; 301 Token = strtok (Gbl_LineBuffer, Separators); 302 while (Token) 304 if (strstr (Token, "Keyword")) 314 AhFindAslKeywords (Token); 317 Token = strtok (NULL, Separators);
|
| /src/sys/external/bsd/acpica/dist/tools/acpiexec/ |
| aeinitfile.c | 114 char *Token; 145 TempNameBuffer = AcpiDbGetNextToken (LineBuffer, &Token, &Type); 168 ValueBuffer = AcpiDbGetNextToken (Token, &Token, &Type);
|
| /src/external/apache2/llvm/dist/clang/lib/Analysis/ |
| IssueHash.cpp | 156 Token Token; 162 while (!Lexer.LexFromRawLexer(Token) && NextStart < 2) { 163 if (Token.isAtStartOfLine() && NextStart++ > 0) 165 LineBuff << std::string(SM.getCharacterData(Token.getLocation()), 166 Token.getLength());
|
| /src/external/apache2/llvm/dist/clang/include/clang/Lex/ |
| DependencyDirectivesSourceMinimizer.h | 32 /// is tracked by the source minimizer in its token output. 56 /// Represents a simplified token that's lexed as part of the source 59 struct Token { 60 /// The kind of token. 66 Token(TokenKind K, int Offset) : K(K), Offset(Offset) {} 69 /// Simplified token range to track the range of a potentially skippable PP 84 bool computeSkippedRanges(ArrayRef<Token> Input, 103 llvm::SmallVectorImpl<minimize_source_to_dependency_directives::Token>
|
| Token.h | 1 //===--- Token.h - Token interface ------------------------------*- C++ -*-===// 9 // This file defines the Token interface. 25 /// Token - This structure provides full information about a lexed token. 27 /// information as possible about each returned token. This is expected to be 30 /// The parser can create a special "annotation token" representing a stream of 32 /// can be represented by a single typename annotation token that carries 34 class Token { 35 /// The location of the token. This is actually a SourceLocation [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Tooling/Syntax/ |
| Tokens.cpp | 19 #include "clang/Lex/Token.h" 40 llvm::ArrayRef<syntax::Token> 41 getTokensCovering(llvm::ArrayRef<syntax::Token> Toks, SourceRange R, 45 const syntax::Token *Begin = 46 llvm::partition_point(Toks, [&](const syntax::Token &T) { 49 const syntax::Token *End = 50 llvm::partition_point(Toks, [&](const syntax::Token &T) { 65 SourceRange findCommonRangeForMacroArgs(const syntax::Token &First, 66 const syntax::Token &Last, 101 syntax::Token::Token(SourceLocation Location, unsigned Length [all...] |
| Tree.cpp | 43 std::pair<FileID, ArrayRef<syntax::Token>> 51 syntax::Leaf::Leaf(const syntax::Token *Tok) : Node(NodeKind::Leaf), Tok(Tok) { 195 const auto *Token = L->getToken(); 196 assert(Token); 198 if (Token->kind() == tok::eof) 201 OS << Token->text(SM);
|
| /src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| CommentLexer.h | 9 // This file defines lexer for structured comments and supporting token class. 54 /// Comment token. 55 class Token { 59 /// The location of the token. 62 /// The actual kind of the token. 65 /// Integer value associated with a token. 67 /// If the token is a known command, contains command ID and TextPtr is 72 /// Length of the token spelling in comment. Can be 0 for synthenized 76 /// Contains text value associated with a token. 299 void formTokenWithChars(Token &Result, const char *TokEnd [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/Tooling/Syntax/ |
| Tokens.h | 11 // When running the compiler, there are two token streams we are interested in: 15 // this token stream to produce the AST. 18 // to find subranges of the token stream covered by various AST nodes. Spelled 35 #include "clang/Lex/Token.h" 83 /// never a token range. 102 /// A token coming directly from a file or from a macro invocation. Has just 103 /// enough information to locate the token in the source code. 105 class Token { 107 Token(SourceLocation Location, unsigned Length, tok::TokenKind Kind); 108 /// EXPECTS: clang::Token is not an annotation token [all...] |
| /src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter2/ |
| toy.cpp | 16 enum Token { 31 /// gettok - Return the next token from standard input. 163 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 164 /// token the parser is looking at. getNextToken reads another token from the 173 /// GetTokPrecedence - Get the precedence of the pending binary operator token. 260 return LogError("unknown token when expecting an expression"); 379 // Skip token for error recovery. 388 // Skip token for error recovery. 398 // Skip token for error recovery [all...] |
| /src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
| Intrinsics.h | 118 Token,
|
| /src/external/apache2/llvm/dist/llvm/lib/MC/MCParser/ |
| AsmLexer.cpp | 697 AsmToken Token = LexToken(); 699 Buf[ReadCount] = Token; 701 if (Token.is(AsmToken::Eof)) 767 // EndOfStatement token before the Eof token. 804 // If this is a CR followed by LF, treat that as one token.
|
| /src/external/apache2/llvm/dist/llvm/lib/Object/ |
| COFFModuleDefinition.cpp | 53 struct Token { 54 explicit Token(Kind T = Unknown, StringRef S = "") : K(T), Value(S) {} 92 Token lex() { 95 return Token(Eof); 99 return Token(Eof); 109 return Token(EqualEqual, "=="); 111 return Token(Equal, "="); 114 return Token(Comma, ","); 118 return Token(Identifier, S); 137 return Token(K, Word) [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/BPF/AsmParser/ |
| BPFAsmParser.cpp | 84 Token, 119 case Token: 125 bool isToken() const override { return Kind == Token; } 143 /// getStartLoc - Gets location of the first token of this operand 145 /// getEndLoc - Gets location of the last token of this operand 159 assert(Kind == Token && "Invalid type access!"); 172 case Token: 199 auto Op = std::make_unique<BPFOperand>(Token); 342 getParser().Lex(); // Eat identifier token. 473 return Error(NameLoc, "invalid register/token name") [all...] |
| /src/external/apache2/llvm/dist/llvm/tools/bugpoint/ |
| ToolRunner.cpp | 357 std::string Token; 366 Token.push_back(CommandLine[++Pos]); 371 if (Token.empty()) 375 Command = Token; 377 Token.clear(); 381 Args.push_back(Token); 382 Token.clear(); 385 Token.push_back(CommandLine[Pos]);
|
| /src/external/mit/lua/dist/src/ |
| llex.h | 64 typedef struct Token { 65 int token; member in struct:Token 67 } Token; 75 int lastline; /* line of last token 'consumed' */ 76 Token t; /* current token */ 77 Token lookahead; /* look ahead token */ 96 LUAI_FUNC const char *luaX_token2str (LexState *ls, int token);
|
| /src/sys/external/bsd/acpica/dist/common/ |
| dmextern.c | 409 char *Token; 435 Token = strtok (AslGbl_StringBuffer, METHOD_SEPARATORS); /* "External" */ 436 if (!Token) 441 if (strcmp (Token, "External")) 452 Token = strtok (NULL, METHOD_SEPARATORS); /* "MethodObj" */ 453 if (!Token) 458 if (strcmp (Token, "MethodObj")) 463 Token = strtok (NULL, METHOD_SEPARATORS); /* Arg count */ 464 if (!Token) 472 ArgCount = strtoul (Token, NULL, 0) [all...] |
| /src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter3/ |
| toy.cpp | 29 enum Token { 44 /// gettok - Return the next token from standard input. 189 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 190 /// token the parser is looking at. getNextToken reads another token from the 199 /// GetTokPrecedence - Get the precedence of the pending binary operator token. 287 return LogError("unknown token when expecting an expression"); 538 // Skip token for error recovery. 551 // Skip token for error recovery. 568 // Skip token for error recovery [all...] |
| /src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter4/ |
| toy.cpp | 39 enum Token { 54 /// gettok - Return the next token from standard input. 199 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current 200 /// token the parser is looking at. getNextToken reads another token from the 209 /// GetTokPrecedence - Get the precedence of the pending binary operator token. 297 return LogError("unknown token when expecting an expression"); 587 // Skip token for error recovery. 601 // Skip token for error recovery. 630 // Skip token for error recovery [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/IR/ |
| IntrinsicInst.cpp | 465 const Value *Token = getArgOperand(0); 469 if (!isa<LandingPadInst>(Token)) 470 return cast<GCStatepointInst>(Token); 474 cast<Instruction>(Token)->getParent()->getUniquePredecessor();
|