Skip to content

Commit a2384b3

Browse files
committed
merge anonymous namespaces (NFC)
1 parent 6d8d09e commit a2384b3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/ClangImporter/SwiftifyDecl.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,7 @@ class SwiftifyInfoPrinter {
167167
out << ".param(" << pointerIndex + 1 << ")";
168168
}
169169
};
170-
} // namespace
171170

172-
namespace {
173171
struct CountedByExpressionValidator
174172
: clang::ConstStmtVisitor<CountedByExpressionValidator, bool> {
175173
bool VisitDeclRefExpr(const clang::DeclRefExpr *e) { return true; }
@@ -229,7 +227,6 @@ struct CountedByExpressionValidator
229227

230228
bool VisitStmt(const clang::Stmt *) { return false; }
231229
};
232-
} // namespace
233230

234231

235232
// Don't try to transform any Swift types that _SwiftifyImport doesn't know how
@@ -267,8 +264,6 @@ static bool SwiftifiableCAT(const clang::ASTContext &ctx,
267264
: SwiftifiableCountedByPointerType(swiftType));
268265
}
269266

270-
namespace {
271-
272267
// Searches for template instantiations that are not behind type aliases.
273268
// FIXME: make sure the generated code compiles for template
274269
// instantiations that are not behind type aliases.
@@ -284,7 +279,6 @@ struct UnaliasedInstantiationVisitor
284279
return false;
285280
}
286281
};
287-
} // namespace
288282

289283
// until CountAttributedType::getAttributeName lands in our LLVM branch
290284
static StringRef getAttributeName(const clang::CountAttributedType *CAT) {
@@ -301,6 +295,7 @@ static StringRef getAttributeName(const clang::CountAttributedType *CAT) {
301295
llvm_unreachable("CountAttributedType cannot be ended_by");
302296
}
303297
}
298+
} // namespace
304299

305300
static bool swiftifyImpl(ClangImporter::Implementation &Self,
306301
SwiftifyInfoPrinter &printer,

0 commit comments

Comments
 (0)