[clangd] Escape error message in AddUsing

Fixes https://github.com/clangd/clangd/issues/900
This commit is contained in:
Kadir Cetinkaya 2021-10-28 14:47:57 +02:00
parent 5d64bf00ac
commit fbf1745722
No known key found for this signature in database
GPG Key ID: E39E36B8D2057ED6
1 changed files with 1 additions and 1 deletions

View File

@ -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;