Skip to content

Commit 0ed8d48

Browse files
committed
[clangd] Squash namespace warning
llvm-svn: 317487
1 parent dd0566b commit 0ed8d48

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

clang-tools-extra/clangd/JSONExpr.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,16 @@ void clang::clangd::json::Expr::print(raw_ostream &OS,
180180
}
181181
}
182182

183-
llvm::raw_ostream &clang::clangd::json::operator<<(raw_ostream &OS,
184-
const Expr &E) {
183+
namespace clang {
184+
namespace clangd {
185+
namespace json {
186+
llvm::raw_ostream &operator<<(raw_ostream &OS, const Expr &E) {
185187
E.print(OS, [](IndenterAction A) { /*ignore*/ });
186188
return OS;
187189
}
190+
} // namespace json
191+
} // namespace clangd
192+
} // namespace clang
188193

189194
void llvm::format_provider<clang::clangd::json::Expr>::format(
190195
const clang::clangd::json::Expr &E, raw_ostream &OS, StringRef Options) {

0 commit comments

Comments
 (0)