summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/namespaces-top.h
Commit message (Collapse)AuthorAgeFilesLines
* [modules] Fix crash when writing an update record for a redeclaration of an ↵Richard Smith2015-07-081-0/+2
| | | | | | empty namespace. llvm-svn: 241732
* Save out a correct lookup table if a lookup table entry is stale (it containsRichard Smith2014-03-251-0/+4
| | | | | | | | | an out-of-date external decls list). This happens if we declare some names, force the lookup table for the decl context to be built, import a module that adds more decls for the name, then write out our module without looking up the name. llvm-svn: 204694
* C++ modules: fix a bug where loading a declaration with some name would preventRichard Smith2013-09-091-0/+5
| | | | | | | | | | | | | | | | | name lookup from lazily deserializing the other declarations with the same name, by tracking a bit to indicate whether a name in a DeclContext might have additional external results. This also allows lazier reconciling of the lookup table if a module import adds decls to a pre-existing DC. However, this exposes a pre-existing bug, which causes a regression in test/Modules/decldef.mm: if we have a reference to a declaration, and a later-imported module adds a redeclaration, nothing causes us to load that redeclaration when we use or emit the reference (which can manifest as a reference to an undefined inline function, a use of an incomplete type, and so on). decldef.mm has been extended with an additional testcase which fails with or without this change. llvm-svn: 190293
* When deserializing an anonymous namespace from a module, do not attachDouglas Gregor2012-01-091-0/+3
| | | | | | | | the anonymous namespace to its parent. Semantically, this means that the anonymous namespaces defined in one module are distinct from the anonymous namespaces defined in another module. llvm-svn: 147782
* Switch NamespaceDecl from its own hand-rolled redeclaration chain overDouglas Gregor2012-01-071-0/+11
to Redeclarable<NamespaceDecl>, so that we benefit from the improveed redeclaration deserialization and merging logic provided by Redeclarable<T>. Otherwise, no functionality change. As a drive-by fix, collapse the "inline" bit into the low bit of the original namespace/anonymous namespace, saving 8 bytes per NamespaceDecl on x86_64. llvm-svn: 147729
OpenPOWER on IntegriCloud