[cfe-dev] clangd, completion in header files

Duncan P. N. Exon Smith via cfe-dev cfe-dev at lists.llvm.org
Fri Mar 30 09:55:19 PDT 2018


> On Mar 26, 2018, at 01:22, Sam McCall via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> 
> When there's no compile command provided, we fall back to 'clang $filename'. Clang treats .h files as C.

I wonder if, as a fallback, `clang -x objective-c++ $filename` would be more generally useful... it puts Clang into "accept almost everything" mode.  This is the mode LLDB uses for expression evaluation IIRC.



More information about the cfe-dev mailing list