[clang-tools-extra] r317487 - [clangd] Squash namespace warning
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 6 07:50:36 PST 2017
Author: sammccall
Date: Mon Nov 6 07:50:35 2017
New Revision: 317487
URL: http://llvm.org/viewvc/llvm-project?rev=317487&view=rev
Log:
[clangd] Squash namespace warning
Modified:
clang-tools-extra/trunk/clangd/JSONExpr.cpp
Modified: clang-tools-extra/trunk/clangd/JSONExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/JSONExpr.cpp?rev=317487&r1=317486&r2=317487&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/JSONExpr.cpp (original)
+++ clang-tools-extra/trunk/clangd/JSONExpr.cpp Mon Nov 6 07:50:35 2017
@@ -180,11 +180,16 @@ void clang::clangd::json::Expr::print(ra
}
}
-llvm::raw_ostream &clang::clangd::json::operator<<(raw_ostream &OS,
- const Expr &E) {
+namespace clang {
+namespace clangd {
+namespace json {
+llvm::raw_ostream &operator<<(raw_ostream &OS, const Expr &E) {
E.print(OS, [](IndenterAction A) { /*ignore*/ });
return OS;
}
+} // namespace json
+} // namespace clangd
+} // namespace clang
void llvm::format_provider<clang::clangd::json::Expr>::format(
const clang::clangd::json::Expr &E, raw_ostream &OS, StringRef Options) {
More information about the cfe-commits
mailing list