summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2018-12-05 18:56:57 +0000
committerAaron Ballman <aaron@aaronballman.com>2018-12-05 18:56:57 +0000
commitc3463f6ba8f5b0baacd46a18a7c991e3a3d65403 (patch)
tree3b9c9fd6f815d580f7b7c55e7319397761aa687d /clang/lib/Sema/SemaDecl.cpp
parent83efe2f1f6aee588e15ed9a9a4bbea0e5d0ac1fe (diff)
downloadbcm5719-llvm-c3463f6ba8f5b0baacd46a18a7c991e3a3d65403.tar.gz
bcm5719-llvm-c3463f6ba8f5b0baacd46a18a7c991e3a3d65403.zip
Do not check for parameters shadowing fields in function declarations.
We would issue a false-positive diagnostic for parameters in function declarations shadowing fields; we now only issue the diagnostic on a function definition instead. llvm-svn: 348400
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 5ec59294330..da6d414a42e 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -12427,13 +12427,6 @@ Decl *Sema::ActOnParamDeclarator(Scope *S, Declarator &D) {
D.setInvalidType(true);
}
}
-
- if (LangOpts.CPlusPlus) {
- DeclarationNameInfo DNI = GetNameForDeclarator(D);
- if (auto *RD = dyn_cast<CXXRecordDecl>(CurContext))
- CheckShadowInheritedFields(DNI.getLoc(), DNI.getName(), RD,
- /*DeclIsField*/ false);
- }
}
// Temporarily put parameter variables in the translation unit, not
OpenPOWER on IntegriCloud