[clang-tools-extra] r188308 - Enhanced test for header guards.

John Thompson John.Thompson.JTSoftware at gmail.com
Tue Aug 13 11:26:40 PDT 2013


Author: jtsoftware
Date: Tue Aug 13 13:26:40 2013
New Revision: 188308

URL: http://llvm.org/viewvc/llvm-project?rev=188308&view=rev
Log:
Enhanced test for header guards.

Added:
    clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSubSubDefined.h
Modified:
    clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub1.h
    clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub2.h

Modified: 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=188308&r1=188307&r2=188308&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub1.h (original)
+++ clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub1.h Tue Aug 13 13:26:40 2013
@@ -1,4 +1,5 @@
 #ifndef _HEADERGUARDSUB1_H_
 #define _HEADERGUARDSUB1_H_
 #include "HeaderGuardSubSub.h"
+#include "HeaderGuardSubSubDefined.h"
 #endif // _HEADERGUARDSUB1_H_

Modified: 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=188308&r1=188307&r2=188308&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub2.h (original)
+++ clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSub2.h Tue Aug 13 13:26:40 2013
@@ -1,4 +1,5 @@
 #ifndef _HEADERGUARDSUB2_H_
 #define _HEADERGUARDSUB2_H_
 #include "HeaderGuardSubSub.h"
+#include "HeaderGuardSubSubDefined.h"
 #endif // _HEADERGUARDSUB2_H_

Added: clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSubSubDefined.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSubSubDefined.h?rev=188308&view=auto
==============================================================================
--- clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSubSubDefined.h (added)
+++ clang-tools-extra/trunk/test/modularize/Inputs/HeaderGuardSubSubDefined.h Tue Aug 13 13:26:40 2013
@@ -0,0 +1,9 @@
+#if !defined(_HEADERGUARDSUBSUBDEFINED_H_)
+#define _HEADERGUARDSUBSUBDEFINED_H_
+
+#define SOMETHING_OTHER 1
+
+// Nest include.  Header guard should not confuse modularize.
+#include "HeaderGuard.h"
+
+#endif // _HEADERGUARDSUBSUBDEFINED_H_





More information about the cfe-commits mailing list