[cfe-dev] Easier debugging with Visual Studio Visualizers

David Blaikie dblaikie at gmail.com
Tue Jul 26 10:19:23 PDT 2011


> Added visualizer for StringRef (assumes null terminated string which I know
> isn't the case always, but I don't think there's a way around this)

That's curious - though I just verified that even VS2010's
std::basic_string visualizer has the same limitation. Pity.

int main()
{
    const char xs[] = "foo\0bar";
    std::string x(xs, xs + sizeof(xs));
}

(mouseover at 'x' shows only "foo" in the preview, though the details
show a size of 8 & both null characters in there)



More information about the cfe-dev mailing list