llvm-project/clang/lib/Serialization
Daniel Jasper ba7f2f7110 Module use declarations (II)
Review: http://llvm-reviews.chandlerc.com/D1546.

I have picked up this patch form Lawrence
(http://llvm-reviews.chandlerc.com/D1063) and did a few changes.

From the original change description (updated as appropriate):
This patch adds a check that ensures that modules only use modules they
have so declared. To this end, it adds a statement on intended module
use to the module.map grammar:

  use module-id

A module can then only use headers from other modules if it 'uses' them.
This enforcement is off by default, but may be turned on with the new
option -fmodules-decluse.

When enforcing the module semantics, we also need to consider a source
file part of a module. This is achieved with a compiler option

-fmodule-name=<module-id>.

The compiler at present only applies restrictions to the module directly
being built.

llvm-svn: 191283
2013-09-24 09:14:14 +00:00
..
ASTCommon.cpp Started implementing variable templates. Top level declarations should be fully supported, up to some limitations documented as FIXMEs or TODO. Static data member templates work very partially. Static data member templates of class templates need particular attention... 2013-08-06 01:03:05 +00:00
ASTCommon.h Note when a decl is used in AST files. 2013-09-05 00:02:25 +00:00
ASTReader.cpp Module use declarations (II) 2013-09-24 09:14:14 +00:00
ASTReaderDecl.cpp Switch the semantic DeclContext for a block-scope declaration of a function or 2013-09-20 01:15:31 +00:00
ASTReaderInternals.h Enhance the ObjC global method pool to record whether there were 0, 1, or >= 2 methods (with a particular selector) inside categories. 2013-04-17 00:08:58 +00:00
ASTReaderStmt.cpp Add the intrinsic __builtin_convertvector 2013-09-18 03:29:45 +00:00
ASTWriter.cpp Module use declarations (II) 2013-09-24 09:14:14 +00:00
ASTWriterDecl.cpp Revert "Revert "[-cxx-abi microsoft] Mangle local TagDecls appropriately"" 2013-09-17 23:57:10 +00:00
ASTWriterStmt.cpp [OPENMP] Bug fixes and improvements. 2013-09-24 03:17:45 +00:00
CMakeLists.txt Implement the writer side of the global module index. 2013-01-23 22:38:11 +00:00
GeneratePCH.cpp [libclang] Allow building a precompiled preamble with compiler errors 2013-06-11 00:36:55 +00:00
GlobalModuleIndex.cpp Use llvm::sys::fs::createUniqueFile. 2013-07-05 21:13:58 +00:00
Makefile Reintroduce the serialization library, with fixed dependencies. 2010-08-17 20:43:28 +00:00
Module.cpp [PCH] We don't need to instantiate HeaderFileInfoTrait in ASTReader more than once. 2013-03-06 18:12:44 +00:00
ModuleManager.cpp Add a bit more info to modules fatal error. 2013-09-05 23:50:58 +00:00