diff options
author | Manuel Klimek <klimek@google.com> | 2011-06-02 16:58:33 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2011-06-02 16:58:33 +0000 |
commit | 16f213142f8f8f5410672205a19f79ed3c232929 (patch) | |
tree | a11e620036d64fa4f97884a4ea22c26c06ee3b24 /test/Tooling | |
parent | fb3f4aad0436a9c40e9130598162150890c405b5 (diff) |
Reverts the Tooling changes as requested by Chris.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132462 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Tooling')
-rw-r--r-- | test/Tooling/remove-cstr-calls.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test/Tooling/remove-cstr-calls.cpp b/test/Tooling/remove-cstr-calls.cpp deleted file mode 100644 index 701683b285..0000000000 --- a/test/Tooling/remove-cstr-calls.cpp +++ /dev/null @@ -1,21 +0,0 @@ -// RUN: rm -rf %t -// RUN: mkdir %t -// RUN: echo '[{"directory":".","command":"clang++ '$(llvm-config --cppflags all)' -c %s","file":"%s"}]' > %t/compile_commands.json -// RUN: remove-cstr-calls %t %s | FileCheck %s -// XFAIL: * - -#include <string> - -namespace llvm { struct StringRef { StringRef(const char *p); }; } - -void f1(const std::string &s) { - f1(s.c_str()); // CHECK:remove-cstr-calls.cpp:11:6:11:14:s -} -void f2(const llvm::StringRef r) { - std::string s; - f2(s.c_str()); // CHECK:remove-cstr-calls.cpp:15:6:15:14:s -} -void f3(const llvm::StringRef &r) { - std::string s; - f3(s.c_str()); // CHECK:remove-cstr-calls.cpp:19:6:19:14:s -} |