Closed JL102 closed 1 year ago
this is not related to tree-sitter at all
That being said, this code does fail to parse
I've fixed the parse bug - for the LSP you will need to generate a compile_commands.json file so the LSP can pick up on how it should compile the code - you likely need some sort of flag to pass in the proper arch/setup. you can output the file with -MJ iirc, just going off my memory.
I've fixed the parse bug - for the LSP you will need to generate a compile_commands.json file so the LSP can pick up on how it should compile the code - you likely need some sort of flag to pass in the proper arch/setup. you can output the file with -MJ iirc, just going off my memory.
Thanks for the info! I don't entirely understand the terms you're using though; how do I pass those flags into the LSP?
Hi,
I'm writing some C code which includes custom instructions for a RISC-V processor. I'm using a header file which includes macros for those custom instructions.
Here's an example of one of my functions after the macros have been evaluated:
The clang LSP gives this error when it notices this code:
Is there some way to bypass this error, like for example to "inform" Clang that the register 'x10' exists?