aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/cxx-decls.cpp
AgeCommit message (Collapse)AuthorFilesLines
2015-06-16[modules] Simplify -cc1 interface for enabling implicit module maps.Richard Smith1-2/+2
We used to have a flag to enable module maps, and two more flags to enable implicit module maps. This is all redundant; we don't need any flag for enabling module maps in the abstract, and we don't usually have -fno- flags for -cc1. We now have just a single flag, -fimplicit-module-maps, that enables implicitly searching the file system for module map files and loading them. The driver interface is unchanged for now. We should probably rename -fmodule-maps to -fimplicit-module-maps at some point. llvm-svn: 239789
2015-02-27[modules] For an inheriting constructor, the inherited constructor is stored inRichard Smith1-0/+2
a map keyed off the canonical declaration. Don't try to set it if we're loading some non-canonical merged declaration. llvm-svn: 230716
2014-09-03[modules] Make NamespaceAliasDecl redeclarable, as it should be. This fixesRichard Smith1-0/+2
merging of namespace aliases across modules and improves source fidelity. Incidentally also fixes PR20816. llvm-svn: 217103
2014-08-30[modules] Fix deserialization cycle when loading a tag declaration with a ↵Richard Smith1-0/+3
typedef name for linkage purposes. When loading the type, delay loading its typedef until we've finished loading and merging the type. In its place, save out the name of the typedef, which we need for merging purposes. llvm-svn: 216806
2014-08-29Add some missing test coverage for merging 'extern "C"' functions with modules.Richard Smith1-0/+6
llvm-svn: 216796
2014-08-26[modules] Don't assert when merging virtual functions that override otherRichard Smith1-0/+3
functions. Also don't needlessly pull in non-canonical declarations of the overridden virtual functions. llvm-svn: 216503
2014-08-23[modules] When merging a tag declaration that has a typedef name for linkageRichard Smith1-0/+6
purposes, look for other typedefs with that same name and merge into their named tag declaration if there is one. llvm-svn: 216312
2014-06-16[modules] When we merge redecl chains or mark a decl used with an updateRichard Smith1-0/+8
record, mark all subsequent decls as 'used' too, to maintain the AST invariant that getPreviousDecl()->Used implies this->Used. llvm-svn: 211050
2014-05-16Push implicitly-declared allocation functions into the IdResolver. Otherwise,Richard Smith1-0/+4
declaration merging in modules is unable to find them and we get bogus errors and even crashes. llvm-svn: 208944
2014-04-17Add missing serialization code for one of the CXXRecordDecl definition flags.Richard Smith1-0/+3
llvm-svn: 206493
2013-08-30Map from local decl IDs to global decl IDs when lazily deserializing friend ↵Richard Smith1-0/+9
decl chains. llvm-svn: 189629
2013-07-14If an unimported submodule of an imported module contains a declaration of aRichard Smith1-0/+12
global allocation or deallocation function, that should not cause that global allocation or deallocation function to become unavailable. llvm-svn: 186270