1515namespace clang {
1616namespace tidy {
1717
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-
2318// This anchor is used to force the linker to link the AbseilModule.
2419extern volatile int AbseilModuleAnchorSource;
2520static int LLVM_ATTRIBUTE_UNUSED AbseilModuleAnchorDestination =
2621 AbseilModuleAnchorSource;
2722
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+
2828// This anchor is used to force the linker to link the BoostModule.
2929extern volatile int BoostModuleAnchorSource;
3030static int LLVM_ATTRIBUTE_UNUSED BoostModuleAnchorDestination =
@@ -35,20 +35,10 @@ extern volatile int BugproneModuleAnchorSource;
3535static int LLVM_ATTRIBUTE_UNUSED BugproneModuleAnchorDestination =
3636 BugproneModuleAnchorSource;
3737
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;
5242
5343// This anchor is used to force the linker to link the CppCoreGuidelinesModule.
5444extern volatile int CppCoreGuidelinesModuleAnchorSource;
@@ -70,10 +60,25 @@ extern volatile int GoogleModuleAnchorSource;
7060static int LLVM_ATTRIBUTE_UNUSED GoogleModuleAnchorDestination =
7161 GoogleModuleAnchorSource;
7262
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;
7782
7883// This anchor is used to force the linker to link the MiscModule.
7984extern volatile int MiscModuleAnchorSource;
@@ -93,6 +98,11 @@ static int LLVM_ATTRIBUTE_UNUSED MPIModuleAnchorDestination =
9398 MPIModuleAnchorSource;
9499#endif
95100
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+
96106// This anchor is used to force the linker to link the OpenMPModule.
97107extern volatile int OpenMPModuleAnchorSource;
98108static int LLVM_ATTRIBUTE_UNUSED OpenMPModuleAnchorDestination =
@@ -113,16 +123,6 @@ extern volatile int ReadabilityModuleAnchorSource;
113123static int LLVM_ATTRIBUTE_UNUSED ReadabilityModuleAnchorDestination =
114124 ReadabilityModuleAnchorSource;
115125
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-
126126// This anchor is used to force the linker to link the ZirconModule.
127127extern volatile int ZirconModuleAnchorSource;
128128static int LLVM_ATTRIBUTE_UNUSED ZirconModuleAnchorDestination =
0 commit comments