[clang-tools-extra] r187943 - Expanded modularize tests.

John Thompson John.Thompson.JTSoftware at gmail.com
Wed Aug 7 17:01:10 PDT 2013


Author: jtsoftware
Date: Wed Aug  7 19:01:09 2013
New Revision: 187943

URL: http://llvm.org/viewvc/llvm-project?rev=187943&view=rev
Log:
Expanded modularize tests.

Modified:
    clang-tools-extra/trunk/test/modularize/Inputs/SomeDecls.h
    clang-tools-extra/trunk/test/modularize/Inputs/SomeTypes.h

Modified: clang-tools-extra/trunk/test/modularize/Inputs/SomeDecls.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/modularize/Inputs/SomeDecls.h?rev=187943&r1=187942&r2=187943&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/modularize/Inputs/SomeDecls.h (original)
+++ clang-tools-extra/trunk/test/modularize/Inputs/SomeDecls.h Wed Aug  7 19:01:09 2013
@@ -3,3 +3,14 @@
 void FuncOne();
 
 int FuncTwo(int arg);
+
+void FuncOverload(int arg) {}
+void FuncOverload(char *arg) {}
+
+namespace Namespace1 {
+  void FuncNameSpace() {}
+}
+
+namespace Namespace2 {
+  void FuncNameSpace() {}
+}

Modified: clang-tools-extra/trunk/test/modularize/Inputs/SomeTypes.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/modularize/Inputs/SomeTypes.h?rev=187943&r1=187942&r2=187943&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/modularize/Inputs/SomeTypes.h (original)
+++ clang-tools-extra/trunk/test/modularize/Inputs/SomeTypes.h Wed Aug  7 19:01:09 2013
@@ -14,3 +14,25 @@ public:
 private:
   int Member;
 };
+
+/*
+This currently doesn't work.  Can't handle same name in different namespaces.
+namespace Namespace1 {
+  class NamespaceClass {
+  public:
+    NamespaceClass() : Member(0) {}
+  private:
+    int Member;
+  };
+}
+
+namespace Namespace2 {
+  class NamespaceClass {
+  public:
+    NamespaceClass() : Member(0) {}
+  private:
+    int Member;
+  };
+}
+*/
+





More information about the cfe-commits mailing list