blob: 9cd58b4198fc7bc3777446c396e21561a31f1bc7 (
plain)
1
2
3
4
5
6
7
8
9
|
// RUN: %check_clang_tidy -std=c++11 %s modernize-make-unique %t -- -- -I %S/Inputs/modernize-smart-ptr
#include "unique_ptr.h"
// CHECK-FIXES: #include "unique_ptr.h"
void f() {
auto my_ptr = std::unique_ptr<int>(new int(1));
// CHECK-FIXES: auto my_ptr = std::unique_ptr<int>(new int(1));
}
|