diff options
author | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-11-02 20:34:10 +0000 |
---|---|---|
committer | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-11-02 20:34:10 +0000 |
commit | 771ef6d4f15452d76387cd66552a38122be60925 (patch) | |
tree | 78449c43ffd29ef2bd0801c9f8bf80fced0ef3e4 /lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp | |
parent | 7463adadbf0ab2742b122a3d4adc8e2041c3ac01 (diff) | |
download | bcm5719-llvm-771ef6d4f15452d76387cd66552a38122be60925.tar.gz bcm5719-llvm-771ef6d4f15452d76387cd66552a38122be60925.zip |
Fix Clang-tidy readability-redundant-string-cstr warnings
Reviewers: zturner, labath
Subscribers: tberghammer, danalbert, lldb-commits
Differential Revision: https://reviews.llvm.org/D26233
llvm-svn: 285855
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp')
-rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp index 7a5f4f7a192..b55d6644845 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp @@ -922,7 +922,7 @@ static bool FindObjCMethodDeclsWithOrigin( std::string decl_name_string_without_colon(decl_name_string.c_str(), decl_name_string.length() - 1); IdentifierInfo *ident = - &original_ctx->Idents.get(decl_name_string_without_colon.c_str()); + &original_ctx->Idents.get(decl_name_string_without_colon); original_selector = original_ctx->Selectors.getSelector(1, &ident); } else { SmallVector<IdentifierInfo *, 4> idents; @@ -1293,7 +1293,7 @@ static bool FindObjCPropertyAndIvarDeclsWithOrigin( return false; std::string name_str = context.m_decl_name.getAsString(); - StringRef name(name_str.c_str()); + StringRef name(name_str); IdentifierInfo &name_identifier( origin_iface_decl->getASTContext().Idents.get(name)); |