From: Ted Kremenek Date: Tue, 8 Oct 2013 18:04:56 +0000 (+0000) Subject: Remove transient code I did not mean to check in. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bbec341e3685168fec20b5ca4a22a88e26ca0c57;p=clang Remove transient code I did not mean to check in. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192211 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 1a0a58dd0f..ba1822cfc4 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -5433,18 +5433,6 @@ void Sema::CheckShadow(Scope *S, VarDecl *D, const LookupResult& R) { if (D->hasGlobalStorage()) return; - // Don't diagnose variables whose declarations and scope are expanded - // from the same macro instantiation. - SourceLocation DLoc = D->getLocation(); - if (DLoc.isMacroID()) { - - - - - } - - - DeclContext *NewDC = D->getDeclContext(); // Only diagnose if we're shadowing an unambiguous field or variable.