[clang-tools-extra] r264050 - Moving files that were placed in the wrong directory from r264049.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 22 06:44:36 PDT 2016


Author: aaronballman
Date: Tue Mar 22 08:44:36 2016
New Revision: 264050

URL: http://llvm.org/viewvc/llvm-project?rev=264050&view=rev
Log:
Moving files that were placed in the wrong directory from r264049.

Added:
    clang-tools-extra/trunk/test/clang-tidy/cppcoreguidelines-pro-type-member-init-delayed.cpp
    clang-tools-extra/trunk/test/clang-tidy/modernize-redundant-void-arg-delayed.cpp
Removed:
    clang-tools-extra/trunk/clang-tidy/cppcoreguidelines-pro-type-member-init-delayed.cpp
    clang-tools-extra/trunk/clang-tidy/modernize-redundant-void-arg-delayed.cpp

Removed: clang-tools-extra/trunk/clang-tidy/cppcoreguidelines-pro-type-member-init-delayed.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/cppcoreguidelines-pro-type-member-init-delayed.cpp?rev=264049&view=auto
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/cppcoreguidelines-pro-type-member-init-delayed.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/cppcoreguidelines-pro-type-member-init-delayed.cpp (removed)
@@ -1,32 +0,0 @@
-// RUN: %check_clang_tidy %s cppcoreguidelines-pro-type-member-init %t -- -- -fdelayed-template-parsing
-
-template<class T>
-struct PositiveFieldBeforeConstructor {
-  PositiveFieldBeforeConstructor() {}
-  // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: constructor does not initialize these built-in/pointer fields: F, G, H
-  int F;
-  bool G /* with comment */;
-  int *H;
-};
-// Explicit instantiation.
-template class PositiveFieldBeforeConstructor<int>;
-
-template<class T>
-struct PositiveFieldAfterConstructor {
-  PositiveFieldAfterConstructor() {}
-  // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: constructor does not initialize these built-in/pointer fields: F, G, H
-  int F;
-  bool G /* with comment */;
-  int *H;
-};
-// Explicit instantiation.
-template class PositiveFieldAfterConstructor<int>;
-
-// This declaration isn't used and won't be parsed 'delayed-template-parsing'.
-// The body of the declaration is 'null' and may cause crash if not handled
-// properly by checkers.
-template<class T>
-struct UnusedDelayedConstructor {
-  UnusedDelayedConstructor() {}
-  int F;
-};

Removed: clang-tools-extra/trunk/clang-tidy/modernize-redundant-void-arg-delayed.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/modernize-redundant-void-arg-delayed.cpp?rev=264049&view=auto
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/modernize-redundant-void-arg-delayed.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/modernize-redundant-void-arg-delayed.cpp (removed)
@@ -1,28 +0,0 @@
-// RUN: %check_clang_tidy %s modernize-redundant-void-arg %t -- -- -fdelayed-template-parsing
-
-int foo(void) {
-// CHECK-MESSAGES: :[[@LINE-1]]:9: warning: redundant void argument list in function definition [modernize-redundant-void-arg]
-// CHECK-FIXES: {{^}}int foo() {{{$}}
-    return 0;
-}
-
-template <class T>
-struct MyFoo {
-  int foo(void) {
-// CHECK-MESSAGES: :[[@LINE-1]]:11: warning: redundant void argument list in function definition [modernize-redundant-void-arg]
-// CHECK-FIXES: {{^}}  int foo() {{{$}}
-    return 0;
-  }
-};
-// Explicit instantiation.
-template class MyFoo<int>;
-
-template <class T>
-struct MyBar {
-  // This declaration isn't instantiated and won't be parsed 'delayed-template-parsing'.
-  int foo(void) {
-// CHECK-MESSAGES: :[[@LINE-1]]:11: warning: redundant void argument list in function definition [modernize-redundant-void-arg]
-// CHECK-FIXES: {{^}}  int foo() {{{$}}
-    return 0;
-  }
-};

Added: clang-tools-extra/trunk/test/clang-tidy/cppcoreguidelines-pro-type-member-init-delayed.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/cppcoreguidelines-pro-type-member-init-delayed.cpp?rev=264050&view=auto
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/cppcoreguidelines-pro-type-member-init-delayed.cpp (added)
+++ clang-tools-extra/trunk/test/clang-tidy/cppcoreguidelines-pro-type-member-init-delayed.cpp Tue Mar 22 08:44:36 2016
@@ -0,0 +1,32 @@
+// RUN: %check_clang_tidy %s cppcoreguidelines-pro-type-member-init %t -- -- -fdelayed-template-parsing
+
+template<class T>
+struct PositiveFieldBeforeConstructor {
+  PositiveFieldBeforeConstructor() {}
+  // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: constructor does not initialize these built-in/pointer fields: F, G, H
+  int F;
+  bool G /* with comment */;
+  int *H;
+};
+// Explicit instantiation.
+template class PositiveFieldBeforeConstructor<int>;
+
+template<class T>
+struct PositiveFieldAfterConstructor {
+  PositiveFieldAfterConstructor() {}
+  // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: constructor does not initialize these built-in/pointer fields: F, G, H
+  int F;
+  bool G /* with comment */;
+  int *H;
+};
+// Explicit instantiation.
+template class PositiveFieldAfterConstructor<int>;
+
+// This declaration isn't used and won't be parsed 'delayed-template-parsing'.
+// The body of the declaration is 'null' and may cause crash if not handled
+// properly by checkers.
+template<class T>
+struct UnusedDelayedConstructor {
+  UnusedDelayedConstructor() {}
+  int F;
+};

Added: clang-tools-extra/trunk/test/clang-tidy/modernize-redundant-void-arg-delayed.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/modernize-redundant-void-arg-delayed.cpp?rev=264050&view=auto
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/modernize-redundant-void-arg-delayed.cpp (added)
+++ clang-tools-extra/trunk/test/clang-tidy/modernize-redundant-void-arg-delayed.cpp Tue Mar 22 08:44:36 2016
@@ -0,0 +1,28 @@
+// RUN: %check_clang_tidy %s modernize-redundant-void-arg %t -- -- -fdelayed-template-parsing
+
+int foo(void) {
+// CHECK-MESSAGES: :[[@LINE-1]]:9: warning: redundant void argument list in function definition [modernize-redundant-void-arg]
+// CHECK-FIXES: {{^}}int foo() {{{$}}
+    return 0;
+}
+
+template <class T>
+struct MyFoo {
+  int foo(void) {
+// CHECK-MESSAGES: :[[@LINE-1]]:11: warning: redundant void argument list in function definition [modernize-redundant-void-arg]
+// CHECK-FIXES: {{^}}  int foo() {{{$}}
+    return 0;
+  }
+};
+// Explicit instantiation.
+template class MyFoo<int>;
+
+template <class T>
+struct MyBar {
+  // This declaration isn't instantiated and won't be parsed 'delayed-template-parsing'.
+  int foo(void) {
+// CHECK-MESSAGES: :[[@LINE-1]]:11: warning: redundant void argument list in function definition [modernize-redundant-void-arg]
+// CHECK-FIXES: {{^}}  int foo() {{{$}}
+    return 0;
+  }
+};




More information about the cfe-commits mailing list