llvm-project/clang/test/Modules/Inputs
Douglas Gregor 081425343b Introduce support for a simple module import declaration, which
loads the named module. The syntax itself is intentionally hideous and
will be replaced at some later point with something more
palatable. For now, we're focusing on the semantics:
  - Module imports are handled first by the preprocessor (to get macro
  definitions) and then the same tokens are also handled by the parser
  (to get declarations). If both happen (as in normal compilation),
  the second one is redundant, because we currently have no way to
  hide macros or declarations when loading a module. Chris gets credit
  for this mad-but-workable scheme.
  - The Preprocessor now holds on to a reference to a module loader,
  which is responsible for loading named modules. CompilerInstance is
  the only important module loader: it now knows how to create and
  wire up an AST reader on demand to actually perform the module load.
  - We search for modules in the include path, using the module name
  with the suffix ".pcm" (precompiled module) for the file name. This
  is a temporary hack; we hope to improve the situation in the
  future.

llvm-svn: 138679
2011-08-26 23:56:07 +00:00
..
diamond_bottom.h Introduce support for a simple module import declaration, which 2011-08-26 23:56:07 +00:00
diamond_left.h Introduce support for a simple module import declaration, which 2011-08-26 23:56:07 +00:00
diamond_right.h Introduce support for a simple module import declaration, which 2011-08-26 23:56:07 +00:00
diamond_top.h Introduce a module visitation function that starts at the top-level 2011-08-20 04:39:52 +00:00
load_failure.h Introduce support for a simple module import declaration, which 2011-08-26 23:56:07 +00:00
lookup_left.h Use the module manager's search facility to look for methods with a 2011-08-25 14:51:20 +00:00
lookup_left.hpp Introduce a -cc1 option "-emit-module", that creates a binary module 2011-08-25 22:30:56 +00:00
lookup_right.h Use the module manager's search facility to look for methods with a 2011-08-25 14:51:20 +00:00
lookup_right.hpp In the AST reader, switch name lookup within a DeclContect over to the 2011-08-24 19:03:07 +00:00