15
15
namespace clang {
16
16
namespace tidy {
17
17
18
- // This anchor is used to force the linker to link the CERTModule.
19
- extern volatile int CERTModuleAnchorSource;
20
- static int LLVM_ATTRIBUTE_UNUSED CERTModuleAnchorDestination =
21
- CERTModuleAnchorSource;
22
-
23
18
// This anchor is used to force the linker to link the AbseilModule.
24
19
extern volatile int AbseilModuleAnchorSource;
25
20
static int LLVM_ATTRIBUTE_UNUSED AbseilModuleAnchorDestination =
26
21
AbseilModuleAnchorSource;
27
22
23
+ // This anchor is used to force the linker to link the AndroidModule.
24
+ extern volatile int AndroidModuleAnchorSource;
25
+ static int LLVM_ATTRIBUTE_UNUSED AndroidModuleAnchorDestination =
26
+ AndroidModuleAnchorSource;
27
+
28
28
// This anchor is used to force the linker to link the BoostModule.
29
29
extern volatile int BoostModuleAnchorSource;
30
30
static int LLVM_ATTRIBUTE_UNUSED BoostModuleAnchorDestination =
@@ -35,20 +35,10 @@ extern volatile int BugproneModuleAnchorSource;
35
35
static int LLVM_ATTRIBUTE_UNUSED BugproneModuleAnchorDestination =
36
36
BugproneModuleAnchorSource;
37
37
38
- // This anchor is used to force the linker to link the LinuxKernelModule.
39
- extern volatile int LinuxKernelModuleAnchorSource;
40
- static int LLVM_ATTRIBUTE_UNUSED LinuxKernelModuleAnchorDestination =
41
- LinuxKernelModuleAnchorSource;
42
-
43
- // This anchor is used to force the linker to link the LLVMModule.
44
- extern volatile int LLVMModuleAnchorSource;
45
- static int LLVM_ATTRIBUTE_UNUSED LLVMModuleAnchorDestination =
46
- LLVMModuleAnchorSource;
47
-
48
- // This anchor is used to force the linker to link the LLVMLibcModule.
49
- extern volatile int LLVMLibcModuleAnchorSource;
50
- static int LLVM_ATTRIBUTE_UNUSED LLVMLibcModuleAnchorDestination =
51
- LLVMLibcModuleAnchorSource;
38
+ // This anchor is used to force the linker to link the CERTModule.
39
+ extern volatile int CERTModuleAnchorSource;
40
+ static int LLVM_ATTRIBUTE_UNUSED CERTModuleAnchorDestination =
41
+ CERTModuleAnchorSource;
52
42
53
43
// This anchor is used to force the linker to link the CppCoreGuidelinesModule.
54
44
extern volatile int CppCoreGuidelinesModuleAnchorSource;
@@ -70,10 +60,25 @@ extern volatile int GoogleModuleAnchorSource;
70
60
static int LLVM_ATTRIBUTE_UNUSED GoogleModuleAnchorDestination =
71
61
GoogleModuleAnchorSource;
72
62
73
- // This anchor is used to force the linker to link the AndroidModule.
74
- extern volatile int AndroidModuleAnchorSource;
75
- static int LLVM_ATTRIBUTE_UNUSED AndroidModuleAnchorDestination =
76
- AndroidModuleAnchorSource;
63
+ // This anchor is used to force the linker to link the HICPPModule.
64
+ extern volatile int HICPPModuleAnchorSource;
65
+ static int LLVM_ATTRIBUTE_UNUSED HICPPModuleAnchorDestination =
66
+ HICPPModuleAnchorSource;
67
+
68
+ // This anchor is used to force the linker to link the LinuxKernelModule.
69
+ extern volatile int LinuxKernelModuleAnchorSource;
70
+ static int LLVM_ATTRIBUTE_UNUSED LinuxKernelModuleAnchorDestination =
71
+ LinuxKernelModuleAnchorSource;
72
+
73
+ // This anchor is used to force the linker to link the LLVMModule.
74
+ extern volatile int LLVMModuleAnchorSource;
75
+ static int LLVM_ATTRIBUTE_UNUSED LLVMModuleAnchorDestination =
76
+ LLVMModuleAnchorSource;
77
+
78
+ // This anchor is used to force the linker to link the LLVMLibcModule.
79
+ extern volatile int LLVMLibcModuleAnchorSource;
80
+ static int LLVM_ATTRIBUTE_UNUSED LLVMLibcModuleAnchorDestination =
81
+ LLVMLibcModuleAnchorSource;
77
82
78
83
// This anchor is used to force the linker to link the MiscModule.
79
84
extern volatile int MiscModuleAnchorSource;
@@ -93,6 +98,11 @@ static int LLVM_ATTRIBUTE_UNUSED MPIModuleAnchorDestination =
93
98
MPIModuleAnchorSource;
94
99
#endif
95
100
101
+ // This anchor is used to force the linker to link the ObjCModule.
102
+ extern volatile int ObjCModuleAnchorSource;
103
+ static int LLVM_ATTRIBUTE_UNUSED ObjCModuleAnchorDestination =
104
+ ObjCModuleAnchorSource;
105
+
96
106
// This anchor is used to force the linker to link the OpenMPModule.
97
107
extern volatile int OpenMPModuleAnchorSource;
98
108
static int LLVM_ATTRIBUTE_UNUSED OpenMPModuleAnchorDestination =
@@ -113,16 +123,6 @@ extern volatile int ReadabilityModuleAnchorSource;
113
123
static int LLVM_ATTRIBUTE_UNUSED ReadabilityModuleAnchorDestination =
114
124
ReadabilityModuleAnchorSource;
115
125
116
- // This anchor is used to force the linker to link the ObjCModule.
117
- extern volatile int ObjCModuleAnchorSource;
118
- static int LLVM_ATTRIBUTE_UNUSED ObjCModuleAnchorDestination =
119
- ObjCModuleAnchorSource;
120
-
121
- // This anchor is used to force the linker to link the HICPPModule.
122
- extern volatile int HICPPModuleAnchorSource;
123
- static int LLVM_ATTRIBUTE_UNUSED HICPPModuleAnchorDestination =
124
- HICPPModuleAnchorSource;
125
-
126
126
// This anchor is used to force the linker to link the ZirconModule.
127
127
extern volatile int ZirconModuleAnchorSource;
128
128
static int LLVM_ATTRIBUTE_UNUSED ZirconModuleAnchorDestination =
0 commit comments