]> granicus.if.org Git - clang/commit
libclang: reduce CXString abuse
authorDmitri Gribenko <gribozavr@gmail.com>
Thu, 7 Feb 2013 19:09:22 +0000 (19:09 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Thu, 7 Feb 2013 19:09:22 +0000 (19:09 +0000)
commit90b5ac660ef96b9d59dff837e96fd72d0673d7de
tree6a1bdae8dcacbcf78b8c2e6c22c3158387d3db33
parent953a61f26bf79932b9699b09add4c388764de170
libclang: reduce CXString abuse

ContainerUSR is not really a CXString, but it should own the underlying memory
buffer.  Thus, it is better to change the type to std::string.  This will not
introduce extra copying overhead, since the workaround that is being removed
was already making a copy.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174647 91177308-0d34-0410-b5e6-96231b3b80d8
tools/libclang/CIndexCodeCompletion.cpp