brintos

brintos / llvm-project-archived public Read only

0
0
Text · 289 B · e2944b8 Raw
10 lines · cpp
1// RUN: %check_clang_tidy -std=c++11 %s modernize-make-unique %t -- -- -I %S/Inputs/smart-ptr2 3#include "unique_ptr.h"4// CHECK-FIXES: #include "unique_ptr.h"5 6void f() {7  auto my_ptr = std::unique_ptr<int>(new int(1));8  // CHECK-FIXES: auto my_ptr = std::unique_ptr<int>(new int(1));9}10