diff options
author | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-11-02 10:39:27 +0000 |
---|---|---|
committer | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-11-02 10:39:27 +0000 |
commit | f76f6507c2359b0e2b1d6a2cc2305bf69932e4b8 (patch) | |
tree | 1ad0fc11d9a2a1573da6c1ca02c8a24a8a3760a5 /clang/unittests/AST/ASTImporterTest.cpp | |
parent | eaa419cf5e87a164d6a5b43f8f1bc7530c70c977 (diff) | |
download | bcm5719-llvm-f76f6507c2359b0e2b1d6a2cc2305bf69932e4b8.tar.gz bcm5719-llvm-f76f6507c2359b0e2b1d6a2cc2305bf69932e4b8.zip |
Fix Clang-tidy readability-redundant-string-cstr warnings
Reviewers: aaron.ballman, mehdi_amini, dblaikie
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D26206
llvm-svn: 285799
Diffstat (limited to 'clang/unittests/AST/ASTImporterTest.cpp')
-rw-r--r-- | clang/unittests/AST/ASTImporterTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/unittests/AST/ASTImporterTest.cpp b/clang/unittests/AST/ASTImporterTest.cpp index 39d6afee40b..2255d7652c2 100644 --- a/clang/unittests/AST/ASTImporterTest.cpp +++ b/clang/unittests/AST/ASTImporterTest.cpp @@ -71,8 +71,7 @@ testImport(const std::string &FromCode, Language FromLang, ToCtx.getSourceManager().getFileManager().getVirtualFileSystem().get()); vfs::InMemoryFileSystem *MFS = static_cast<vfs::InMemoryFileSystem *>( OFS->overlays_begin()->get()); - MFS->addFile(InputFileName, 0, - llvm::MemoryBuffer::getMemBuffer(FromCode.c_str())); + MFS->addFile(InputFileName, 0, llvm::MemoryBuffer::getMemBuffer(FromCode)); ASTImporter Importer(ToCtx, ToAST->getFileManager(), FromCtx, FromAST->getFileManager(), false); |