[cfe-dev] Code completion in memory buffers
David Chisnall
theraven at sucs.org
Wed Nov 10 13:36:30 PST 2010
Is there a reason why you are not using libclang, which allows you to provide unsaved files as buffers for doing exactly this?
David
On 10 Nov 2010, at 21:27, Axel Naumann wrote:
> Hi,
>
> I need code a completion callback in a memory buffer. Naively I thought
> I could replace the FileEntry* Preprocessor::CodeCompletionFile by
> FileID - but that doesn't work because the interface allows the
> completion to be requested on a file that is not yet included. I could
> duplicate every code completion interface there is to alternatively take
> a MemoryBuffer* - but that sounds horrible.
>
> Is there a common concept for "file" and "buffer" that I could use for
> the interface?
>
> Cheers, Axel.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-- Sent from my brain
More information about the cfe-dev
mailing list