Nathan Ridge
Nathan Ridge
Are you trying to run clangd **on** Android? Or are you trying to use clangd to edit a codebase that's cross-compiled to target Android? (I haven't heard of anyone doing...
I don't fully understand this feature based on the description given. What is the "generated ASTMatcher sequence"? Could you give a concrete code example?
Thank you for elaborating. This sounds like a really neat feature. I would suggest starting with a simpler building block: an AST Matcher search feature where you type the query...
> @sam-mccall I have interest, to work on this myself, is there a chance this proposal will be accepted? I obviously can't speak for Sam, but I'm personally supportive of...
The error shown in the log doesn't look like an error from clangd, it looks like an error during the build itself. Clangd is not involved in building.
Here's what the AST looks like for the code snippet above: ```c++ |-FunctionDecl 0x556b655f6450 col:6 invalid use 'void (int)' | `-ParmVarDecl 0x556b655f6388 col:25 invalid 'int' `-FunctionDecl 0x556b655f6558 line:3:5 main 'int...
> The next step is to investigate why the `RecoveryExpr` for the call argument _doesn't_ have a `DeclRefExpr` child, and (hopefully) fix things so that it does. In both cases,...
> The `AcceptInvalidDecl=true` argument at the `ActOnNameClassifiedAsNonType` call site was added in [this patch](https://reviews.llvm.org/D121599), whose motivation was specifically to improve error recovery. [This review comment](https://reviews.llvm.org/D121599#inline-1176996) mentions `ActOnIdExpression` as another call...
Proposed fix: https://github.com/llvm/llvm-project/pull/81662
This is deliberate: if a source file does not have its own compile command in `compile_commands.json`, clangd chooses another source file and reuses its command. If that does not produce...