projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adef754
)
Remove transient code I did not mean to check in.
author
Ted Kremenek
<kremenek@apple.com>
Tue, 8 Oct 2013 18:04:56 +0000
(18:04 +0000)
committer
Ted Kremenek
<kremenek@apple.com>
Tue, 8 Oct 2013 18:04:56 +0000
(18:04 +0000)
llvm-svn: 192211
clang/lib/Sema/SemaDecl.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaDecl.cpp
b/clang/lib/Sema/SemaDecl.cpp
index
1a0a58d
..
ba1822c
100644
(file)
--- a/
clang/lib/Sema/SemaDecl.cpp
+++ b/
clang/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.