hanchenye-llvm-project/clang/lib/Serialization
Richard Smith 7ecc31b032 When merging redeclaration chains across modules, if a declaration is visible
in one module but is only declared as a friend in another module, keep it
visible in the result of the merge.

This is incomplete on two axes:

1) Our handling of local extern declarations is basically broken (we put them
in the wrong decl context, and don't find them in redeclaration lookup, unless
they've previously been declared), and this results in them making friends
visible after a merge.

2) Eventually we'll need to mark that this has happened, and more carefully
check whether a declaration should be visible if it was only visible in some
of the modules in which it was declared. Fortunately it's rare for the
identifier namespace of a declaration to change along its redeclaration chain.

llvm-svn: 187639
2013-08-02 01:09:12 +00:00
..
ASTCommon.cpp Sema for Captured Statements 2013-04-16 19:37:38 +00:00
ASTCommon.h C++1y deduced return types: when we deduce a return type for a function which 2013-05-11 05:45:24 +00:00
ASTReader.cpp Fix read of uninitialized enum value in test, caught by UBSan. No functionality 2013-07-31 00:26:46 +00:00
ASTReaderDecl.cpp When merging redeclaration chains across modules, if a declaration is visible 2013-08-02 01:09:12 +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 Fix read of uninitialized enum value in test, caught by UBSan. No functionality 2013-07-31 00:26:46 +00:00
ASTWriter.cpp Make modules depend on the compiler's own module.map, as a proxy for the compiler itself. 2013-07-22 20:48:33 +00:00
ASTWriterDecl.cpp Improve clarity/consistency of a few UsingDecl methods and related helpers. 2013-07-22 10:54:09 +00:00
ASTWriterStmt.cpp Make IgnoreParens() look through ChooseExprs. 2013-07-20 00:40:58 +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
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 Include Path.h instead of PathV2.h. 2013-06-11 22:15:02 +00:00