Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: tools/clang/rewrite_scoped_array/tests/test-original.cc

Issue 13482006: Add clang tool to rewrite scoped_array<T> to scoped_ptr<T[]>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fold into main() Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/clang/rewrite_scoped_array/tests/test-expected.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/rewrite_scoped_array/tests/test-original.cc
diff --git a/tools/clang/rewrite_scoped_array/tests/test-original.cc b/tools/clang/rewrite_scoped_array/tests/test-original.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e0408ca7503b03c0e6c1a06b0a5639f5f7bf5d0f
--- /dev/null
+++ b/tools/clang/rewrite_scoped_array/tests/test-original.cc
@@ -0,0 +1,21 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+template <class T> class scoped_array {
+ private:
+ T* data_;
+};
+
+class TestClass {
+ private:
+ scoped_array<int> test_field_;
+};
+
+scoped_array<int> TestFunction(scoped_array<int> x, scoped_array<int>) {
+ scoped_array<scoped_array<int>(scoped_array<int> test, scoped_array<int>)> y;
+ scoped_array<int>(*function_pointer)(scoped_array<int> test,
+ scoped_array<int>);
+ scoped_array<int> test_variable;
+}
+
« no previous file with comments | « tools/clang/rewrite_scoped_array/tests/test-expected.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698