llvm/flang/documentation
Tim Keith f62f8b655d [flang] Implement reading of module files
When a use-stmt is encountered for a module that isn't in the global
scope, search for and read the appropriate `.mod` file. To perform the
search, pass the search directories in to ResolveNames.

For modules that were read from `.mod` files, we have to keep the cooked
source from being deleted so that the names so that references to names
stay valid. So we store the cooked source in the Scope of the module as
a `unique_ptr`.

Add `Symbol::Flag::ModFile` to distinguish module symbols that were read
from a `.mod` file rather than from the current compilation. Use it to
prevent writing those back out.

Fix test_errors.sh to run the compiler in the temp subdirectory --
otherwise tests could be affected by `.mod` files left from previous
tests.

Original-commit: flang-compiler/f18@207065999c
Reviewed-on: https://github.com/flang-compiler/f18/pull/145
2018-07-25 10:11:38 -07:00
..
C++style.md [flang] Documentation 2018-07-11 10:26:53 -07:00
ControlFlowGraph.md [flang] Incorporate suggestions from code review. 2018-06-22 16:44:23 -07:00
directives.md [flang] Add copyright notices. 2018-05-01 12:50:34 -07:00
extensions.md [flang] Ready for merge. 2018-07-19 09:54:24 -07:00
f2018-grammar.txt [flang] Add copyright notices. 2018-05-01 12:50:34 -07:00
flang-c-style.el [flang] Provide an emacs style for editing Flang C++ sources 2018-03-26 16:35:34 +02:00
FortranForCProgrammers.md [flang] Allow empty statements and improve error recovery error messages. 2018-07-12 14:47:15 -07:00
mod-files.md [flang] Implement reading of module files 2018-07-25 10:11:38 -07:00
OpenMP-4.5-grammar.txt [flang] add more clauses, declarative directives, standalone directives, and directives enclosing do loop. 2018-05-31 07:38:15 -07:00
ParserCombinators.md [flang] More documentation. These changes fix two bugs noted in f18 issue#121. 2018-07-12 14:58:06 -07:00
parsing.md [flang] Incorporate suggestions from code review. 2018-06-22 16:44:23 -07:00
preprocessing.md [flang] Document preprocessing more. 2018-05-11 13:29:22 -07:00
RuntimeDescriptor.md [flang] Document and initiate development of run time descriptors. 2018-05-16 10:22:33 -07:00
semantics.md [flang] Add copyright notices. 2018-05-01 12:50:34 -07:00