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

Unified Diff: tools/clang/plugins/tests/auto_raw_pointer.cpp

Issue 2118653003: clang-plugin: Remove system include from auto_raw_pointer test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | tools/clang/plugins/tests/auto_raw_pointer.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/plugins/tests/auto_raw_pointer.cpp
diff --git a/tools/clang/plugins/tests/auto_raw_pointer.cpp b/tools/clang/plugins/tests/auto_raw_pointer.cpp
index 55214a8bbdab1e9b7e5ce9d9b05e5399acd013b4..d9ddeb326c2c2a3cce23a5eb9f0e317bdfea6e38 100644
--- a/tools/clang/plugins/tests/auto_raw_pointer.cpp
+++ b/tools/clang/plugins/tests/auto_raw_pointer.cpp
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <utility>
-
class Foo {
public:
void foo() {}
@@ -33,7 +31,7 @@ int main() {
auto* raw_foo_ptr_valid = &foo;
const auto* const_raw_foo_ptr_valid = &foo;
- int *int_ptr;
+ int* int_ptr;
auto double_ptr_auto = &int_ptr;
auto* double_ptr_auto_ptr = &int_ptr;
@@ -42,11 +40,11 @@ int main() {
auto function_ptr = &f;
auto method_ptr = &Foo::foo;
- int *const *const volatile **const *pointer_awesomeness;
+ int* const* const volatile** const* pointer_awesomeness;
auto auto_awesome = pointer_awesomeness;
auto& int_ptr_ref = int_ptr;
const auto& const_int_ptr_ref = int_ptr;
- auto&& int_ptr_rref = std::move(int_ptr);
- const auto&& const_int_ptr_rref = std::move(int_ptr);
+ auto&& int_ptr_rref = static_cast<int*&&>(int_ptr);
+ const auto&& const_int_ptr_rref = static_cast<int*&&>(int_ptr);
}
« no previous file with comments | « no previous file | tools/clang/plugins/tests/auto_raw_pointer.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698