/external/llvm-project/flang/include/flang/Parser/ |
D | char-block.h | 28 class CharBlock { 30 constexpr CharBlock() {} in CharBlock() function 31 constexpr CharBlock(const char *x, std::size_t n = 1) : interval_{x, n} {} 32 constexpr CharBlock(const char *b, const char *ep1) in CharBlock() function 34 CharBlock(const std::string &s) : interval_{s.data(), s.size()} {} in CharBlock() function 35 constexpr CharBlock(const CharBlock &) = default; 36 constexpr CharBlock(CharBlock &&) = default; 37 constexpr CharBlock &operator=(const CharBlock &) = default; 38 constexpr CharBlock &operator=(CharBlock &&) = default; 50 bool Contains(const CharBlock &that) const { in Contains() [all …]
|
D | message.h | 44 CharBlock text() const { return text_; } in text() 48 CharBlock text_; 103 const char *Convert(CharBlock); 124 u_ = CharBlock{s, n}; in MessageExpectedText() 127 constexpr explicit MessageExpectedText(CharBlock cb) : u_{cb} {} in MessageExpectedText() 139 std::variant<CharBlock, SetOfChars> u_; 160 Message(CharBlock csr, const MessageFixedText &t) in Message() 162 Message(CharBlock csr, const MessageFormattedText &s) in Message() 164 Message(CharBlock csr, MessageFormattedText &&s) in Message() 166 Message(CharBlock csr, const MessageExpectedText &t) in Message() [all …]
|
D | parse-tree.h | 274 CharBlock source; 342 CharBlock source; 562 CharBlock source; 759 CharBlock source; 760 std::tuple<CharBlock, std::optional<KindParam>> t; 766 std::tuple<CharBlock, std::optional<KindParam>> t; 782 CharBlock source; 1417 CharBlock source; 1722 CharBlock source; 1779 CharBlock source; [all …]
|
D | provenance.h | 223 CharBlock AsCharBlock() const { return CharBlock{data_}; } in AsCharBlock() 224 std::optional<ProvenanceRange> GetProvenanceRange(CharBlock) const; 225 std::optional<CharBlock> GetCharBlock(ProvenanceRange) const; 279 std::optional<ProvenanceRange> GetProvenanceRange(CharBlock) const; 280 std::optional<CharBlock> GetCharBlockFromLineAndColumns( 283 GetSourcePositionRange(CharBlock) const; 284 std::optional<CharBlock> GetCharBlock(ProvenanceRange) const;
|
D | user-state.h | 85 void NoteOldStructureComponent(const CharBlock &name) { in NoteOldStructureComponent() 88 bool IsOldStructureComponent(const CharBlock &name) const { in IsOldStructureComponent() 103 std::set<CharBlock> oldStructureComponents_;
|
/external/llvm-project/flang/include/flang/Semantics/ |
D | semantics.h | 79 const std::optional<parser::CharBlock> &location() const { return location_; } in location() 95 const std::optional<parser::CharBlock> &location) { in set_location() 141 parser::Message &Say(parser::CharBlock at, A &&...args) { in Say() 148 void SayWithDecl(const Symbol &symbol, const parser::CharBlock &at, in SayWithDecl() 154 const Scope &FindScope(parser::CharBlock) const; 155 Scope &FindScope(parser::CharBlock); 166 void WarnIndexVarRedefine(const parser::CharBlock &, const Symbol &); 167 void CheckIndexVarRedefine(const parser::CharBlock &, const Symbol &); 177 const parser::CharBlock &, const Symbol &, parser::MessageFixedText &&); 183 std::optional<parser::CharBlock> location_; [all …]
|
D | expression.h | 44 void Post(const CharBlock &at) { source.ExtendToCover(at); } in Post() 46 CharBlock source; 49 template <typename A> CharBlock FindSourceLocation(const A &x) { in FindSourceLocation() 136 bool AddImpliedDo(parser::CharBlock, int kind); 137 void RemoveImpliedDo(parser::CharBlock); 141 std::optional<int> IsImpliedDo(parser::CharBlock) const; 330 MaybeExpr ExprOrVariable(const PARSED &, parser::CharBlock source); 359 parser::CharBlock, const ProcedureDesignator &, ActualArguments &); 373 void CheckForBadRecursion(parser::CharBlock, const semantics::Symbol &); 374 bool EnforceTypeConstraint(parser::CharBlock, const MaybeExpr &, TypeCategory, [all …]
|
D | scope.h | 41 std::optional<ConstantSubscript> substringStart, parser::CharBlock source) in EquivalenceObject() 52 parser::CharBlock source; 231 const parser::CharBlock &sourceRange() const { return sourceRange_; } in sourceRange() 232 void AddSourceRange(const parser::CharBlock &); 234 const Scope *FindScope(parser::CharBlock) const; 235 Scope *FindScope(parser::CharBlock); 260 parser::CharBlock sourceRange_;
|
/external/llvm-project/flang/lib/Parser/ |
D | message.cpp | 71 const char *MessageFormattedText::Convert(CharBlock x) { in Convert() 78 [](CharBlock cb) { in ToString() 134 [](CharBlock cb1, CharBlock cb2) { in SortBefore() 137 [](CharBlock, const ProvenanceRange &) { return false; }, in SortBefore() argument 141 [](const ProvenanceRange &, CharBlock) { return true; }, in SortBefore() argument 169 if (CharBlock * cb{std::get_if<CharBlock>(&location_)}) { in ResolveProvenances() 184 [&](CharBlock cb) { return allCooked.GetProvenanceRange(cb); }, in GetProvenanceRange() 248 [](CharBlock cb1, CharBlock cb2) { in AtSameLocation()
|
D | preprocessor.h | 74 bool IsNameDefined(const CharBlock &); 86 CharBlock SaveTokenAsName(const CharBlock &); 95 std::unordered_map<CharBlock, Definition> definitions_;
|
D | token-sequence.h | 63 CharBlock ToCharBlock() const { return {&char_[0], char_.size()}; } in ToCharBlock() 66 CharBlock TokenAt(std::size_t token) const { in TokenAt() 70 CharBlock CurrentOpenToken() const { in CurrentOpenToken() 101 void Put(const CharBlock &, Provenance);
|
D | preprocessor.cpp | 49 static bool IsLegalIdentifierStart(const CharBlock &cpl) { in IsLegalIdentifierStart() 63 CharBlock tok{token.TokenAt(firstToken + j)}; in Tokenize() 82 const CharBlock &token{tokens.TokenAt(j)}; in Stringify() 98 constexpr bool IsTokenPasting(CharBlock opr) { in IsTokenPasting() 147 CharBlock token{replacement_.TokenAt(j)}; in Apply() 263 CharBlock token{input.TokenAt(j)}; in MacroReplacement() 274 const CharBlock &token{input.TokenAt(j)}; in MacroReplacement() 328 const CharBlock &lookAhead{input.TokenAt(k)}; in MacroReplacement() 340 CharBlock token{input.TokenAt(k)}; in MacroReplacement() 419 CharBlock nameToken; in Directive() [all …]
|
/external/llvm-project/flang/lib/Semantics/ |
D | resolve-names-utils.h | 25 class CharBlock; variable 39 using SourceName = parser::CharBlock; 111 void FinishSet(const parser::CharBlock &); 115 const parser::CharBlock &, const Symbol &, const Symbol &); 116 void MergeInto(const parser::CharBlock &, EquivalenceSet &, std::size_t); 119 bool CheckDataRef(const parser::CharBlock &, const parser::DataRef &);
|
D | check-directive-structure.h | 36 parser::CharBlock sourcePosition, D directive, in NoBranchingEnforce() 102 parser::CharBlock currentStatementSourcePosition_; 103 parser::CharBlock sourcePosition_; 123 DirectiveContext(parser::CharBlock source, D d) in DirectiveContext() 126 parser::CharBlock directiveSource{nullptr}; 127 parser::CharBlock clauseSource{nullptr}; 150 void ResetPartialContext(const parser::CharBlock &source) { in ResetPartialContext() 160 void SetContextDirectiveSource(const parser::CharBlock &directive) { in SetContextDirectiveSource() 200 void PushContext(const parser::CharBlock &source, D dir) { in PushContext() 215 void PushContextAndClauseSets(const parser::CharBlock &source, D dir) { in PushContextAndClauseSets() [all …]
|
D | check-coarray.cpp | 23 SemanticsContext &context, parser::CharBlock criticalSourcePosition) in CriticalBodyEnforce() 61 parser::CharBlock currentStatementSourcePosition_; 62 parser::CharBlock criticalSourcePosition_; 153 std::set<parser::CharBlock> names; in CheckNamesAreDistinct() 155 [&](const parser::Name &name) -> const parser::CharBlock * { in CheckNamesAreDistinct() 183 void CoarrayChecker::Say2(const parser::CharBlock &name1, in Say2() 184 parser::MessageFixedText &&msg1, const parser::CharBlock &name2, in Say2()
|
D | check-coarray.h | 16 class CharBlock; variable 44 void Say2(const parser::CharBlock &, parser::MessageFixedText &&, 45 const parser::CharBlock &, parser::MessageFixedText &&);
|
D | check-do-forall.cpp | 79 static void SayWithDo(SemanticsContext &context, parser::CharBlock stmtLocation, in SayWithDo() 80 parser::MessageFixedText &&message, parser::CharBlock doLocation) { in SayWithDo() 88 SemanticsContext &context, parser::CharBlock doConcurrentSourcePosition) in DoConcurrentBodyEnforce() 177 parser::CharBlock location, const Symbol &entity, const char *reason) { in SayDeallocateOfPolymorph() 251 const parser::CharBlock statementLocation{ in Post() 329 parser::CharBlock currentStatementSourcePosition_; 331 parser::CharBlock doConcurrentSourcePosition_; 339 SemanticsContext &context, parser::CharBlock doConcurrentSourcePosition) in DoConcurrentVariableEnforce() 365 parser::CharBlock doConcurrentSourcePosition_; 466 void SayBadDoControl(parser::CharBlock sourceLocation) { in SayBadDoControl() [all …]
|
D | resolve-labels.cpp | 27 using IndexList = std::vector<std::pair<parser::CharBlock, parser::CharBlock>>; 33 parser::CharBlock parserCharBlock; 41 const parser::CharBlock &parserCharBlock) in SourceStatementInfoTuplePOD() 46 parser::CharBlock parserCharBlock; 170 const parser::CharBlock *GetStmtName(const parser::Statement<A> &stmt) { in GetStmtName() 345 if (const parser::CharBlock * name{GetStmtName(stmt)}) { in CheckOptionalName() 347 if (const parser::CharBlock * firstName{GetStmtName(firstStmt)}) { in CheckOptionalName() 432 if (const parser::CharBlock * in Post() 638 const parser::CharBlock *endName{GetStmtName(endStmt)}; in CheckEndName() 639 if (const parser::CharBlock * constructName{GetStmtName(constructStmt)}) { in CheckEndName() [all …]
|
D | check-select-rank.cpp | 54 parser::CharBlock prevLocDefault; in Leave() 55 parser::CharBlock prevLocStar; in Leave() 56 std::optional<parser::CharBlock> caseForRank[common::maxRank + 1]; in Leave()
|
D | unparse-with-symbols.cpp | 27 void PrintSymbols(const parser::CharBlock &, llvm::raw_ostream &, int); 63 const parser::CharBlock &location, llvm::raw_ostream &out, int indent) { in PrintSymbols() 97 [&](const parser::CharBlock &location, llvm::raw_ostream &out, in UnparseWithSymbols()
|
D | assignment.cpp | 47 parser::CharBlock rhsSource, bool isPointerAssignment); 48 void CheckShape(parser::CharBlock, const SomeExpr *); 50 parser::Message *Say(parser::CharBlock at, A &&...args) { in Say() 166 const SomeExpr &rhs, parser::CharBlock source, bool isPointerAssignment) { in CheckForPureContext() 220 void AssignmentContext::CheckShape(parser::CharBlock at, const SomeExpr *expr) { in CheckShape()
|
D | mod-file.h | 17 class CharBlock; variable 28 using SourceName = parser::CharBlock;
|
D | semantics.cpp | 48 using NameToSymbolMap = std::multimap<parser::CharBlock, SymbolRef>; 248 const Scope &SemanticsContext::FindScope(parser::CharBlock source) const { in FindScope() 252 Scope &SemanticsContext::FindScope(parser::CharBlock source) { in FindScope() 265 void SemanticsContext::CheckIndexVarRedefine(const parser::CharBlock &location, in CheckIndexVarRedefine() 278 const parser::CharBlock &location, const Symbol &variable) { in WarnIndexVarRedefine() 284 const parser::CharBlock &location, const Symbol &variable) { in CheckIndexVarRedefine()
|
/external/llvm-project/flang/lib/Evaluate/ |
D | common.cpp | 37 parser::CharBlock name, ConstantSubscript n) { in StartImpliedDo() 44 parser::CharBlock name) const { in GetImpliedDo() 52 void FoldingContext::EndImpliedDo(parser::CharBlock name) { in EndImpliedDo()
|
/external/llvm-project/flang/include/flang/Evaluate/ |
D | common.h | 241 ConstantSubscript &StartImpliedDo(parser::CharBlock, ConstantSubscript = 1); 242 std::optional<ConstantSubscript> GetImpliedDo(parser::CharBlock) const; 243 void EndImpliedDo(parser::CharBlock); 245 std::map<parser::CharBlock, ConstantSubscript> &impliedDos() { 262 std::map<parser::CharBlock, ConstantSubscript> impliedDos_;
|