================
@@ -0,0 +1,160 @@
+// RUN: %check_clang_tidy -std=c++11-or-later %s 
bugprone-smart-ptr-initialization %t -- -- -I%S
+
+#include "Inputs/smart-ptr-initialization/std_smart_ptr.h"
+
+struct A {
+  int x;
+};
+
+A& getA();
+A* getAPtr();
+
+// Should trigger the check for shared_ptr constructor
----------------
vbvictor wrote:

Can we remove all this obvious comments?
Function names already tell what test is checking

https://github.com/llvm/llvm-project/pull/181570
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to