summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/TreeTransform.h
diff options
context:
space:
mode:
authorIlia K <ki.stfu@gmail.com>2015-09-25 08:28:58 +0000
committerIlia K <ki.stfu@gmail.com>2015-09-25 08:28:58 +0000
commitb2b0170c0e1bc25498477d76975a3a671ab87c11 (patch)
tree3e519d3ffdbcffcf6cca7cd6e10255e757e3d99e /clang/lib/Sema/TreeTransform.h
parentf69d45efc3c119c53cd725b422d88fe7edcfdb10 (diff)
downloadbcm5719-llvm-b2b0170c0e1bc25498477d76975a3a671ab87c11.tar.gz
bcm5719-llvm-b2b0170c0e1bc25498477d76975a3a671ab87c11.zip
Allow to construct CMIUtilString using std::string directly + cleanup CMIUtilString (MI)
Summary: Allow to construct CMIUtilString using std::string directly + cleanup CMIUtilString (MI) This patch cleans up lldb-mi code, and serves to simplify the following case: ``` std::string strGoodbye = "!Hello"; CMIUtilString strHello(strGoodbye.substr(1).c_str()); ``` With CMIUtilString(std::string) we can omit .c_str(): ``` std::string strGoodbye = "!Hello"; CMIUtilString strHello(strGoodbye.substr(1)); ``` Also, it removes 2 ctors because they aren't needed: # CMIUtilString::CMIUtilString(const char *const *vpData) # CMIUtilString::CMIUtilString(const char *vpData, size_t nLen) and cleans up CMIUtilString::operator=(const std::string &vrRhs). Reviewers: brucem, abidh Subscribers: lldb-commits, brucem, abidh Differential Revision: http://reviews.llvm.org/D13158 llvm-svn: 248566
Diffstat (limited to 'clang/lib/Sema/TreeTransform.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud