[cfe-commits] r145439 - /cfe/trunk/lib/Lex/ModuleMap.cpp
Douglas Gregor
dgregor at apple.com
Wed Nov 30 07:04:08 PST 2011
On Nov 29, 2011, at 11:01 PM, Benjamin Kramer wrote:
> On 30.11.2011, at 02:00, Douglas Gregor <dgregor at apple.com> wrote:
>
>>
>>
>> Sent from my iPhone
>>
>> On Nov 29, 2011, at 2:57 PM, Chris Lattner <clattner at apple.com> wrote:
>>
>>> On Nov 29, 2011, at 2:27 PM, Douglas Gregor wrote:
>>>> URL: http://llvm.org/viewvc/llvm-project?rev=145439&view=rev
>>>> Log:
>>>> Escape strings when printing module maps, for silly operating systems
>>>> that use \ as a separator.
>>>>
>>>> +static void printEscapedString(llvm::raw_ostream &OS, StringRef String) {
>>>
>>> This looks familiar, should it become a method on StringRef or something?
>>
>> I couldn't decide where up put it <g>. I'll move it into StringRef.
>
> raw_ostream::write_escaped does the same thing.
Ahhh, thanks! I'm using this in r145491.
- Doug
More information about the cfe-commits
mailing list