[cfe-dev] CodeCompletion for C++ Code in Buffers

David Chisnall David.Chisnall at cl.cam.ac.uk
Sun Apr 5 02:39:18 PDT 2015


On 5 Apr 2015, at 10:16, fmclang <fmclang at mailinator.com> wrote:
> 
> I played around with the remapped file option but
> that does not work
> since a real file seems always be required

A file name is always required for things like the __FILE__ builtin macro to work, but it doesn't have to be a real file.  You can just specify a name ("<unsaved file>" or similar) and it will work fine.

David





More information about the cfe-dev mailing list