Home
last modified time | relevance | path

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

/external/llvm-project/flang/lib/Parser/
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()
190 AllSources &allSources_; variable
228 allSources_.CompilerInsertionProvenance(' ')};
230 allSources_.CompilerInsertionProvenance('\\')};
Dpreprocessor.h69 const AllSources &allSources() const { return allSources_; } in allSources()
70 AllSources &allSources() { return allSources_; } in allSources()
93 AllSources &allSources_; variable
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()
763 const SourceFile *currentFile{allSources_.GetSourceFile(provenance)}; in FortranInclude()
765 allSources_.PushSearchPathDirectory(DirectoryName(currentFile->path())); in FortranInclude()
767 const SourceFile *included{allSources_.Open(path, error)}; in FortranInclude()
769 allSources_.PopSearchPathDirectory(); in FortranInclude()
777 allSources_.AddIncludedFile(*included, includeLineRange)}; in FortranInclude()
Dpreprocessor.cpp235 Preprocessor::Preprocessor(AllSources &allSources) : allSources_{allSources} { in Preprocessor()
252 definitions_.emplace(SaveTokenAsName(macro), Definition{value, allSources_}); in Define()
295 allSources_.GetPath(prescanner.GetCurrentProvenance()) + '"'; in MacroReplacement()
299 ss << allSources_.GetLineNumber(prescanner.GetCurrentProvenance()); in MacroReplacement()
303 ProvenanceRange insert{allSources_.AddCompilerInsertion(repl)}; in MacroReplacement()
304 ProvenanceRange call{allSources_.AddMacroCall( in MacroReplacement()
318 allSources_.AddMacroCall(from, use, replaced.ToString())}; in MacroReplacement()
380 allSources_.AddMacroCall(from, use, replaced.ToString())}; in MacroReplacement()
618 const SourceFile *included{allSources_.Open(include, error)}; in Directive()
624 allSources_.AddIncludedFile(*included, dir.GetProvenanceRange())}; in Directive()
[all …]
Dprovenance.cpp522 AllCookedSources::AllCookedSources(AllSources &s) : allSources_{s} {} in AllCookedSources()
543 auto provenanceStart{allSources_.GetFirstFileProvenance().value().start()}; in GetCharBlockFromLineAndColumns()
544 if (auto sourceFile{allSources_.GetSourceFile(provenanceStart)}) { in GetCharBlockFromLineAndColumns()
556 if (auto firstOffset{allSources_.GetSourcePosition(range->start())}) { in GetSourcePositionRange()
558 allSources_.GetSourcePosition(range->start() + range->size())}) { in GetSourcePositionRange()
578 allSources_.Dump(o); in Dump()
/external/llvm-project/flang/include/flang/Frontend/
DCompilerInstance.h25 std::shared_ptr<Fortran::parser::AllSources> allSources_; variable
76 Fortran::parser::AllSources &allSources() const { return *allSources_; } in allSources()
78 bool HasAllSources() const { return allSources_ != nullptr; } in HasAllSources()
/external/llvm-project/flang/lib/Frontend/
DCompilerInstance.cpp24 allSources_(new Fortran::parser::AllSources()), in CompilerInstance()
25 allCookedSources_(new Fortran::parser::AllCookedSources(*allSources_)), in CompilerInstance()
30 allSources_->set_encoding(Fortran::parser::Encoding::UTF_8); in CompilerInstance()
/external/llvm-project/flang/include/flang/Parser/
Dprovenance.h262 AllSources &allSources() { return allSources_; } in allSources()
263 const AllSources &allSources() const { return allSources_; } in allSources()
277 bool IsValid(ProvenanceRange r) const { return allSources_.IsValid(r); } in IsValid()
288 AllSources &allSources_;
/external/llvm-project/flang/unittests/Evaluate/
Dintrinsics.cpp25 cooked_.PutProvenance(allSources_.AddCompilerInsertion(s)); in Save()
27 void Marshal() { cooked_.Marshal(allSources_); } in Marshal()
39 parser::AllSources allSources_; member in Fortran::evaluate::CookedStrings
40 parser::AllCookedSources allCookedSources_{allSources_};