Skip to content

Commit

Permalink
[FOLD] more cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian committed Oct 22, 2024
1 parent 5a7b621 commit cfff947
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions clang/lib/Sema/SemaCXXScopeSpec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,16 +685,6 @@ bool Sema::BuildCXXNestedNameSpecifier(Scope *S, NestedNameSpecInfo &IdInfo,
if (ErrorRecoveryLookup)
return true;

#if 0
// If we didn't find anything during our lookup, try again with
// ordinary name lookup, which can help us produce better error
// messages.
if (Found.empty()) {
Found.clear(LookupOrdinaryName);
LookupName(Found, S);
}
#endif

// In Microsoft mode, if we are within a templated function and we can't
// resolve Identifier, then extend the SS with Identifier. This will have
// the effect of resolving Identifier during template instantiation.
Expand Down Expand Up @@ -735,7 +725,6 @@ bool Sema::BuildCXXNestedNameSpecifier(Scope *S, NestedNameSpecInfo &IdInfo,
}
}

#if 1
if (!Found.empty()) {
if (TypeDecl *TD = Found.getAsSingle<TypeDecl>()) {
Diag(IdInfo.IdentifierLoc, diag::err_expected_class_or_namespace)
Expand All @@ -757,7 +746,6 @@ bool Sema::BuildCXXNestedNameSpecifier(Scope *S, NestedNameSpecInfo &IdInfo,
else
Diag(IdInfo.IdentifierLoc, diag::err_undeclared_var_use)
<< IdInfo.Identifier;
#endif

return true;
}
Expand Down

0 comments on commit cfff947

Please sign in to comment.