Home
last modified time | relevance | path

Searched refs:LastChar (Results 1 – 8 of 8) sorted by relevance

/external/llvm/examples/Kaleidoscope/Chapter2/
Dtoy.cpp28 static int LastChar = ' '; in gettok() local
31 while (isspace(LastChar)) in gettok()
32 LastChar = getchar(); in gettok()
34 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
35 IdentifierStr = LastChar; in gettok()
36 while (isalnum((LastChar = getchar()))) in gettok()
37 IdentifierStr += LastChar; in gettok()
44 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
47 NumStr += LastChar; in gettok()
48 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp33 static int LastChar = ' '; in gettok() local
36 while (isspace(LastChar)) in gettok()
37 LastChar = getchar(); in gettok()
39 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
40 IdentifierStr = LastChar; in gettok()
41 while (isalnum((LastChar = getchar()))) in gettok()
42 IdentifierStr += LastChar; in gettok()
49 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
52 NumStr += LastChar; in gettok()
53 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp40 static int LastChar = ' '; in gettok() local
43 while (isspace(LastChar)) in gettok()
44 LastChar = getchar(); in gettok()
46 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
47 IdentifierStr = LastChar; in gettok()
48 while (isalnum((LastChar = getchar()))) in gettok()
49 IdentifierStr += LastChar; in gettok()
56 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
59 NumStr += LastChar; in gettok()
60 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp44 static int LastChar = ' '; in gettok() local
47 while (isspace(LastChar)) in gettok()
48 LastChar = getchar(); in gettok()
50 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
51 IdentifierStr = LastChar; in gettok()
52 while (isalnum((LastChar = getchar()))) in gettok()
53 IdentifierStr += LastChar; in gettok()
65 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
68 NumStr += LastChar; in gettok()
69 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp47 static int LastChar = ' '; in gettok() local
50 while (isspace(LastChar)) in gettok()
51 LastChar = getchar(); in gettok()
53 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
54 IdentifierStr = LastChar; in gettok()
55 while (isalnum((LastChar = getchar()))) in gettok()
56 IdentifierStr += LastChar; in gettok()
70 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
73 NumStr += LastChar; in gettok()
74 LastChar = getchar(); in gettok()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp50 static int LastChar = ' '; in gettok() local
53 while (isspace(LastChar)) in gettok()
54 LastChar = getchar(); in gettok()
56 if (isalpha(LastChar)) { // identifier: [a-zA-Z][a-zA-Z0-9]* in gettok()
57 IdentifierStr = LastChar; in gettok()
58 while (isalnum((LastChar = getchar()))) in gettok()
59 IdentifierStr += LastChar; in gettok()
74 if (isdigit(LastChar) || LastChar == '.') { // Number: [0-9.]+ in gettok()
77 NumStr += LastChar; in gettok()
78 LastChar = getchar(); in gettok()
[all …]
/external/llvm/lib/Support/
DStreamableMemoryObject.cpp22 FirstChar(Start), LastChar(End) { in RawMemoryObject()
23 assert(LastChar > FirstChar && "Invalid start/end range"); in RawMemoryObject()
27 virtual uint64_t getExtent() const { return LastChar - FirstChar; } in getExtent()
41 const uint8_t* const LastChar; member in __anon656dde720111::RawMemoryObject
46 return static_cast<ptrdiff_t>(address) < LastChar - FirstChar; in validAddress()
49 return static_cast<ptrdiff_t>(address) == LastChar - FirstChar; in objectEnd()
/external/protobuf/src/google/protobuf/compiler/
Dimporter.cc206 static inline char LastChar(const string& str) { in LastChar() function
252 if (!path.empty() && LastChar(path) == '/' && in CanonicalizePath()
253 !result.empty() && LastChar(result) != '/') { in CanonicalizePath()