Searched refs:TokenSequence (Results 1 – 6 of 6) sorted by relevance
/external/llvm-project/flang/lib/Parser/ |
D | token-sequence.cpp | 16 TokenSequence &TokenSequence::operator=(TokenSequence &&that) { in operator =() 22 void TokenSequence::clear() { in clear() 29 void TokenSequence::pop_back() { in pop_back() 37 void TokenSequence::shrink_to_fit() { in shrink_to_fit() 43 void TokenSequence::swap(TokenSequence &that) { in swap() 50 std::size_t TokenSequence::SkipBlanks(std::size_t at) const { in SkipBlanks() 64 bool TokenSequence::IsAnythingLeft(std::size_t at) const { in IsAnythingLeft() 85 void TokenSequence::RemoveLastToken() { in RemoveLastToken() 95 void TokenSequence::Put(const TokenSequence &that) { in Put() 108 void TokenSequence::Put(const TokenSequence &that, ProvenanceRange range) { in Put() [all …]
|
D | token-sequence.h | 34 class TokenSequence { 36 TokenSequence() {} in TokenSequence() function 37 TokenSequence(const TokenSequence &that) { Put(that); } in TokenSequence() function 38 TokenSequence( 39 const TokenSequence &that, std::size_t at, std::size_t count = 1) { 42 TokenSequence(TokenSequence &&that) in TokenSequence() function 46 TokenSequence(const std::string &s, Provenance p) { Put(s, p); } in TokenSequence() function 48 TokenSequence &operator=(const TokenSequence &that) { 53 TokenSequence &operator=(TokenSequence &&that); 58 void swap(TokenSequence &); [all …]
|
D | preprocessor.h | 36 Definition(const TokenSequence &, std::size_t firstToken, std::size_t tokens); 37 Definition(const std::vector<std::string> &argNames, const TokenSequence &, 46 const TokenSequence &replacement() const { return replacement_; } in replacement() 50 TokenSequence Apply(const std::vector<TokenSequence> &args, Prescanner &); 53 static TokenSequence Tokenize(const std::vector<std::string> &argNames, 54 const TokenSequence &token, std::size_t firstToken, std::size_t tokens); 61 TokenSequence replacement_; 76 std::optional<TokenSequence> MacroReplacement( 77 const TokenSequence &, Prescanner &); 80 void Directive(const TokenSequence &, Prescanner *); [all …]
|
D | prescan.h | 69 TokenSequence TokenizePreprocessorDirective(); 124 void EmitChar(TokenSequence &tokens, char ch) { in EmitChar() 128 void EmitInsertedChar(TokenSequence &tokens, char ch) { in EmitInsertedChar() 133 char EmitCharAndAdvance(TokenSequence &tokens, char ch) { in EmitCharAndAdvance() 152 void LabelField(TokenSequence &); 162 bool NextToken(TokenSequence &); 163 bool ExponentAndKind(TokenSequence &); 164 void QuotedCharacterLiteral(TokenSequence &, const char *start); 165 void Hollerith(TokenSequence &, int count, const char *start); 166 bool PadOutCharacterLiteral(TokenSequence &);
|
D | preprocessor.cpp | 28 const TokenSequence &repl, std::size_t firstToken, std::size_t tokens) in Definition() 32 const TokenSequence &repl, std::size_t firstToken, std::size_t tokens, in Definition() 53 TokenSequence Definition::Tokenize(const std::vector<std::string> &argNames, in Tokenize() 54 const TokenSequence &token, std::size_t firstToken, std::size_t tokens) { in Tokenize() 61 TokenSequence result; in Tokenize() 76 static TokenSequence Stringify( in Stringify() 77 const TokenSequence &tokens, AllSources &allSources) { in Stringify() 78 TokenSequence result; in Stringify() 102 static bool AnyTokenPasting(const TokenSequence &text) { in AnyTokenPasting() 112 static TokenSequence TokenPasting(TokenSequence &&text) { in TokenPasting() [all …]
|
D | prescan.cpp | 49 static void NormalizeCompilerDirectiveCommentMarker(TokenSequence &dir) { in NormalizeCompilerDirectiveCommentMarker() 85 TokenSequence tokens{dir, allSources_.AddCompilerInsertion(dir).start()}; in Prescan() 91 TokenSequence tokens; in Statement() 165 if (std::optional<TokenSequence> preprocessed{ in Statement() 230 TokenSequence Prescanner::TokenizePreprocessorDirective() { in TokenizePreprocessorDirective() 234 TokenSequence tokens; in TokenizePreprocessorDirective() 252 void Prescanner::LabelField(TokenSequence &token) { in LabelField() 411 bool Prescanner::NextToken(TokenSequence &tokens) { in NextToken() 548 bool Prescanner::ExponentAndKind(TokenSequence &tokens) { in ExponentAndKind() 568 TokenSequence &tokens, const char *start) { in QuotedCharacterLiteral() [all …]
|