Small cosmetic cleanups in code I will change anyway.

llvm-svn: 147424
This commit is contained in:
Rafael Espindola 2012-01-02 06:26:22 +00:00
parent b6cc74c809
commit eeb9d9fef6
2 changed files with 5 additions and 5 deletions

View File

@ -115,7 +115,7 @@ struct LVFlags {
/// \brief Get the most restrictive linkage for the types in the given
/// template parameter list.
static LVPair
static LVPair
getLVForTemplateParameterList(const TemplateParameterList *Params) {
LVPair LV(ExternalLinkage, DefaultVisibility);
for (TemplateParameterList::const_iterator P = Params->begin(),
@ -130,7 +130,7 @@ getLVForTemplateParameterList(const TemplateParameterList *Params) {
}
continue;
}
if (!NTTP->getType()->isDependentType()) {
LV = merge(LV, NTTP->getType()->getLinkageAndVisibility());
continue;
@ -162,7 +162,7 @@ static LVPair getLVForTemplateArgumentList(const TemplateArgument *Args,
case TemplateArgument::Integral:
case TemplateArgument::Expression:
break;
case TemplateArgument::Type:
LV = merge(LV, Args[I].getAsType()->getLinkageAndVisibility());
break;
@ -178,7 +178,7 @@ static LVPair getLVForTemplateArgumentList(const TemplateArgument *Args,
case TemplateArgument::Template:
case TemplateArgument::TemplateExpansion:
if (TemplateDecl *Template
if (TemplateDecl *Template
= Args[I].getAsTemplateOrTemplatePattern().getAsTemplateDecl())
LV = merge(LV, getLVForDecl(Template, F));
break;

View File

@ -456,7 +456,7 @@ namespace test22 {
}
namespace PR10113 {
namespace foo __attribute__ ((__visibility__ ("default"))) {
namespace foo DEFAULT {
template<typename T>
class bar {
void zed() {}