зеркало из https://github.com/microsoft/clang-1.git
Small cosmetic cleanups in code I will change anyway.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147424 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
dcbe5f71df
Коммит
b5d763d87c
|
@ -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;
|
||||
|
|
|
@ -456,7 +456,7 @@ namespace test22 {
|
|||
}
|
||||
|
||||
namespace PR10113 {
|
||||
namespace foo __attribute__ ((__visibility__ ("default"))) {
|
||||
namespace foo DEFAULT {
|
||||
template<typename T>
|
||||
class bar {
|
||||
void zed() {}
|
||||
|
|
Загрузка…
Ссылка в новой задаче