Home
last modified time | relevance | path

Searched refs:allSources_ (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/flang/lib/Parser/
H A Dprescan.h40 const AllSources &allSources() const { return allSources_; } in allSources()
41 AllSources &allSources() { return allSources_; } in allSources()
129 Provenance provenance{allSources_.CompilerInsertionProvenance(ch)}; in EmitInsertedChar()
191 AllSources &allSources_; variable
229 allSources_.CompilerInsertionProvenance(' ')};
231 allSources_.CompilerInsertionProvenance('\\')};
H A Dpreprocessor.h69 const AllSources &allSources() const { return allSources_; } in allSources()
70 AllSources &allSources() { return allSources_; } in allSources()
94 AllSources &allSources_; variable
H A Dprescan.cpp31 allSources_{preprocessor_.allSources()}, features_{lfc},
32 encoding_{allSources_.encoding()} {}
36 preprocessor_{that.preprocessor_}, allSources_{that.allSources_},
64 start_ = allSources_.GetSource(range); in Prescan()
85 TokenSequence tokens{dir, allSources_.AddCompilerInsertion(dir).start()}; in Prescan()
324 auto start{allSources_.GetSourcePosition(tokens.GetCharProvenance(j))}; in EnforceStupidEndStatementRules()
325 auto end{allSources_.GetSourcePosition(tokens.GetCharProvenance(n - 1))}; in EnforceStupidEndStatementRules()
356 auto next{allSources_.GetSourcePosition(tokens.GetCharProvenance(j))}; in EnforceStupidEndStatementRules()
841 if (const SourceFile * currentFile{allSources_.GetSourceFile(provenance)}) { in FortranInclude()
845 allSources_.Open(path, error, std::move(prependPath))}; in FortranInclude()
[all …]
H A Dpreprocessor.cpp236 Preprocessor::Preprocessor(AllSources &allSources) : allSources_{allSources} {} in Preprocessor()
251 definitions_.emplace(SaveTokenAsName(macro), Definition{value, allSources_}); in Define()
297 allSources_.GetPath(prescanner.GetCurrentProvenance()) + '"'; in MacroReplacement()
301 ss << allSources_.GetLineNumber(prescanner.GetCurrentProvenance()); in MacroReplacement()
305 ProvenanceRange insert{allSources_.AddCompilerInsertion(repl)}; in MacroReplacement()
306 ProvenanceRange call{allSources_.AddMacroCall( in MacroReplacement()
320 allSources_.AddMacroCall(from, use, replaced.ToString())}; in MacroReplacement()
382 allSources_.AddMacroCall(from, use, replaced.ToString())}; in MacroReplacement()
610 if (const auto *currentFile{allSources_.GetSourceFile(prov)}) { in Directive()
631 allSources_.Open(include, error, std::move(prependPath))}; in Directive()
[all …]
H A Dprovenance.cpp550 AllCookedSources::AllCookedSources(AllSources &s) : allSources_{s} {} in AllCookedSources()
581 auto provenanceStart{allSources_.GetFirstFileProvenance().value().start()}; in GetCharBlockFromLineAndColumns()
582 if (auto sourceFile{allSources_.GetSourceFile(provenanceStart)}) { in GetCharBlockFromLineAndColumns()
594 if (auto firstOffset{allSources_.GetSourcePosition(range->start())}) { in GetSourcePositionRange()
596 allSources_.GetSourcePosition(range->start() + range->size())}) { in GetSourcePositionRange()
616 allSources_.Dump(o); in Dump()
/llvm-project-15.0.7/flang/include/flang/Parser/
H A Dprovenance.h267 AllSources &allSources() { return allSources_; } in allSources()
268 const AllSources &allSources() const { return allSources_; } in allSources()
275 bool IsValid(ProvenanceRange r) const { return allSources_.IsValid(r); } in IsValid()
292 AllSources &allSources_;
/llvm-project-15.0.7/flang/unittests/Evaluate/
H A Dintrinsics.cpp26 cooked_.PutProvenance(allSources_.AddCompilerInsertion(s)); in Save()
40 parser::AllSources allSources_; member in Fortran::evaluate::CookedStrings
41 parser::AllCookedSources allCookedSources_{allSources_};