ArcsinX wrote:

> We have the same pattern here 
> https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/Support/LSP/Transport.h#L171
> 
> I think if we decide to commit this, we need to fix it in two places using a 
> single function that creates an `LSPError` (and use this function in both 
> places). BTW, the name `parseError` isn't quite right, since we aren't 
> parsing an error, but handling it.

Sorry, it looks like 
https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/Support/LSP is 
a separate, independent LSP implementation, so a common function to create 
`LSPError` can't be implemented; however, it still makes sense to apply the 
changes simultaneously in a single MR, since the pattern is the same.

https://github.com/llvm/llvm-project/pull/203121
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to