[cfe-commits] [PATCH] Support auto-completion on stdin

Dan Gohman gohman at apple.com
Tue Oct 26 15:06:11 PDT 2010


On Oct 26, 2010, at 10:09 AM, Douglas Gregor wrote:
> 
> but there is already an existing mechanism for overridding the contents of a file in SourceManager::overrideFileContents(). Can we get more re-use out of that code?

Ah, I didn't notice overrideFileContents with its const_cast. What do
you think of this new patch, which is substantially shorter?

Thanks,

Dan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-autocomplete-stdin.patch
Type: application/octet-stream
Size: 1837 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101026/1455d03b/attachment.obj>


More information about the cfe-commits mailing list