[clang-tools-extra] r187759 - Add test for header guard work-around.

John Thompson John.Thompson.JTSoftware at gmail.com
Mon Aug 5 17:17:41 PDT 2013


Author: jtsoftware
Date: Mon Aug  5 19:17:40 2013
New Revision: 187759

URL: http://llvm.org/viewvc/llvm-project?rev=187759&view=rev
Log:
Add test for header guard work-around.

Added:
    clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuard.h
    clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub1.h
    clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub2.h
    clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSubSub.h
    clang-tools-extra/trunk/test/modularize/NoProblemsGuard.modularize

Added: clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuard.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuard.h?rev=187759&view=auto
==============================================================================
--- clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuard.h (added)
+++ clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuard.h Mon Aug  5 19:17:40 2013
@@ -0,0 +1,5 @@
+#ifndef _HEADERGUARD_H_
+#define _HEADERGUARD_H_
+#include "HeaderGuardSub1.h"
+#include "HeaderGuardSub2.h"
+#endif // _HEADERGUARD_H_

Added: clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub1.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub1.h?rev=187759&view=auto
==============================================================================
--- clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub1.h (added)
+++ clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub1.h Mon Aug  5 19:17:40 2013
@@ -0,0 +1,4 @@
+#ifndef _HEADERGUARDSUB1_H_
+#define _HEADERGUARDSUB1_H_
+#include "HeaderGuardSubSub.h"
+#endif // _HEADERGUARDSUBSUB_H_

Added: clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub2.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub2.h?rev=187759&view=auto
==============================================================================
--- clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub2.h (added)
+++ clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub2.h Mon Aug  5 19:17:40 2013
@@ -0,0 +1,4 @@
+#ifndef _HEADERGUARDSUB2_H_
+#define _HEADERGUARDSUB2_H_
+#include "HeaderGuardSubSub.h"
+#endif // _HEADERGUARDSUB2_H_

Added: clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSubSub.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSubSub.h?rev=187759&view=auto
==============================================================================
--- clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSubSub.h (added)
+++ clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSubSub.h Mon Aug  5 19:17:40 2013
@@ -0,0 +1,9 @@
+#ifndef _HEADERGUARDSUBSUB_H_
+#define _HEADERGUARDSUBSUB_H_
+
+#define SOMETHING 1
+
+// Nest include.  Header guard should not confuse modularize.
+#include "HeaderGuard.h"
+
+#endif // _HEADERGUARDSUBSUB_H_

Added: clang-tools-extra/trunk/test/modularize/NoProblemsGuard.modularize
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/modularize/NoProblemsGuard.modularize?rev=187759&view=auto
==============================================================================
--- clang-tools-extra/trunk/test/modularize/NoProblemsGuard.modularize (added)
+++ clang-tools-extra/trunk/test/modularize/NoProblemsGuard.modularize Mon Aug  5 19:17:40 2013
@@ -0,0 +1,4 @@
+# RUN: modularize %s -x c++
+
+Inputs/HeaderGuardSub1.h
+Inputs/HeaderGuardSub2.h





More information about the cfe-commits mailing list