[llvm] [clangd] Support square bracket escaping in Annotations (PR #69379)

Aleksey Fefelov via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 18 11:49:41 PDT 2023


fefaleksey wrote:

> The usual workaround for this is to use the digraph `<:` in place of `[`. Does this work for your case?
> 
> I'd prefer not to add a second escaping mechanism if the existing one does work, maybe we should document it though.

Yes, this works well, but in this case we will not be able to test the `[[ ... ]]` attributes. This may be important, for example, for testing a tweak for moving functions (with its attributes). What do you think about it?

https://github.com/llvm/llvm-project/pull/69379


More information about the llvm-commits mailing list