summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclCXX.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-10-09 23:42:09 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-10-09 23:42:09 +0000
commitb87720b77aee65e30a6181e239cbf708f4d29259 (patch)
tree5c9c3dc2f06f6e6a741f4833e2458858a1f57ad7 /clang/lib/AST/DeclCXX.cpp
parent8b53f7ca6daa21ea4510c0d2b35bee7edade6b0e (diff)
downloadbcm5719-llvm-b87720b77aee65e30a6181e239cbf708f4d29259.tar.gz
bcm5719-llvm-b87720b77aee65e30a6181e239cbf708f4d29259.zip
[Modules TS] Module ownership semantics for redeclarations.
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
Diffstat (limited to 'clang/lib/AST/DeclCXX.cpp')
-rw-r--r--clang/lib/AST/DeclCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclCXX.cpp b/clang/lib/AST/DeclCXX.cpp
index a9759b4c0a2..26e5c4ffbed 100644
--- a/clang/lib/AST/DeclCXX.cpp
+++ b/clang/lib/AST/DeclCXX.cpp
@@ -100,7 +100,7 @@ CXXRecordDecl::CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C,
CXXRecordDecl *CXXRecordDecl::Create(const ASTContext &C, TagKind TK,
DeclContext *DC, SourceLocation StartLoc,
SourceLocation IdLoc, IdentifierInfo *Id,
- CXXRecordDecl* PrevDecl,
+ CXXRecordDecl *PrevDecl,
bool DelayTypeCreation) {
CXXRecordDecl *R = new (C, DC) CXXRecordDecl(CXXRecord, TK, C, DC, StartLoc,
IdLoc, Id, PrevDecl);
OpenPOWER on IntegriCloud