From fbf1745722a0df95608128561d58744ae7b6f311 Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Thu, 28 Oct 2021 14:47:57 +0200 Subject: [PATCH] [clangd] Escape error message in AddUsing Fixes https://github.com/clangd/clangd/issues/900 --- clang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp b/clang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp index c1adbdde6199..c87b8864d6e6 100644 --- a/clang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp +++ b/clang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp @@ -187,7 +187,7 @@ findInsertionPoint(const Tweak::Selection &Inputs, return Tok.kind() == tok::l_brace; }); if (Tok == Toks.end() || Tok->endLocation().isInvalid()) { - return error("Namespace with no {"); + return error("Namespace with no {{"); } if (!Tok->endLocation().isMacroID() && IsValidPoint(Tok->endLocation())) { InsertionPointData Out;