forked from OSchip/llvm-project
[clangd] Escape error message in AddUsing
Fixes https://github.com/clangd/clangd/issues/900
This commit is contained in:
parent
5d64bf00ac
commit
fbf1745722
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue