Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [Modules TS] Module ownership semantics for redeclarations. | Richard Smith | 2017-10-10 | 3 | -0/+118 |
| | | | | | | | | | | | | | | | | | When declaring an entity in the "purview" of a module, it's never a redeclaration of an entity in the purview of a default module or in no module ("in the global module"). Don't consider those other declarations as possible redeclaration targets if they're not visible, and reject any cases where we pick a prior visible declaration that violates this rule. This reinstates r315251 and r315256, reverted in r315309 and r315308 respectively, tweaked to avoid triggering a linkage calculation when declaring implicit special members (this exposed our pre-existing issue with typedef names for linkage changing the linkage of types whose linkage has already been computed and cached in more cases). A testcase for that regression has been added in r315366. llvm-svn: 315379 | ||||
* | Revert "[Modules TS] Module ownership semantics for redeclarations." | Eric Liu | 2017-10-10 | 3 | -118/+0 |
| | | | | | | This reverts commit r315251. See the original commit thread for reason. llvm-svn: 315309 | ||||
* | [Modules TS] Module ownership semantics for redeclarations. | Richard Smith | 2017-10-09 | 3 | -0/+118 |
When declaring an entity in the "purview" of a module, it's never a redeclaration of an entity in the purview of a default module or in no module ("in the global module"). Don't consider those other declarations as possible redeclaration targets if they're not visible, and reject any cases where we pick a prior visible declaration that violates this rule. llvm-svn: 315251 |