@@ -16,132 +16,131 @@ namespace clang::tidy {
1616
1717// This anchor is used to force the linker to link the AbseilModule.
1818extern volatile int AbseilModuleAnchorSource;
19- static int LLVM_ATTRIBUTE_UNUSED AbseilModuleAnchorDestination =
19+ [[maybe_unused]] static int AbseilModuleAnchorDestination =
2020 AbseilModuleAnchorSource;
2121
2222// This anchor is used to force the linker to link the AlteraModule.
2323extern volatile int AlteraModuleAnchorSource;
24- static int LLVM_ATTRIBUTE_UNUSED AlteraModuleAnchorDestination =
24+ [[maybe_unused]] static int AlteraModuleAnchorDestination =
2525 AlteraModuleAnchorSource;
2626
2727// This anchor is used to force the linker to link the AndroidModule.
2828extern volatile int AndroidModuleAnchorSource;
29- static int LLVM_ATTRIBUTE_UNUSED AndroidModuleAnchorDestination =
29+ [[maybe_unused]] static int AndroidModuleAnchorDestination =
3030 AndroidModuleAnchorSource;
3131
3232// This anchor is used to force the linker to link the BoostModule.
3333extern volatile int BoostModuleAnchorSource;
34- static int LLVM_ATTRIBUTE_UNUSED BoostModuleAnchorDestination =
34+ [[maybe_unused]] static int BoostModuleAnchorDestination =
3535 BoostModuleAnchorSource;
3636
3737// This anchor is used to force the linker to link the BugproneModule.
3838extern volatile int BugproneModuleAnchorSource;
39- static int LLVM_ATTRIBUTE_UNUSED BugproneModuleAnchorDestination =
39+ [[maybe_unused]] static int BugproneModuleAnchorDestination =
4040 BugproneModuleAnchorSource;
4141
4242// This anchor is used to force the linker to link the CERTModule.
4343extern volatile int CERTModuleAnchorSource;
44- static int LLVM_ATTRIBUTE_UNUSED CERTModuleAnchorDestination =
44+ [[maybe_unused]] static int CERTModuleAnchorDestination =
4545 CERTModuleAnchorSource;
4646
4747// This anchor is used to force the linker to link the ConcurrencyModule.
4848extern volatile int ConcurrencyModuleAnchorSource;
49- static int LLVM_ATTRIBUTE_UNUSED ConcurrencyModuleAnchorDestination =
49+ [[maybe_unused]] static int ConcurrencyModuleAnchorDestination =
5050 ConcurrencyModuleAnchorSource;
5151
5252// This anchor is used to force the linker to link the CppCoreGuidelinesModule.
5353extern volatile int CppCoreGuidelinesModuleAnchorSource;
54- static int LLVM_ATTRIBUTE_UNUSED CppCoreGuidelinesModuleAnchorDestination =
54+ [[maybe_unused]] static int CppCoreGuidelinesModuleAnchorDestination =
5555 CppCoreGuidelinesModuleAnchorSource;
5656
5757#if CLANG_TIDY_ENABLE_QUERY_BASED_CUSTOM_CHECKS
5858// This anchor is used to force the linker to link the CustomModule.
5959extern volatile int CustomModuleAnchorSource;
60- static int LLVM_ATTRIBUTE_UNUSED CustomModuleAnchorDestination =
60+ [[maybe_unused]] static int CustomModuleAnchorDestination =
6161 CustomModuleAnchorSource;
6262#endif
6363
6464// This anchor is used to force the linker to link the DarwinModule.
6565extern volatile int DarwinModuleAnchorSource;
66- static int LLVM_ATTRIBUTE_UNUSED DarwinModuleAnchorDestination =
66+ [[maybe_unused]] static int DarwinModuleAnchorDestination =
6767 DarwinModuleAnchorSource;
6868
6969// This anchor is used to force the linker to link the FuchsiaModule.
7070extern volatile int FuchsiaModuleAnchorSource;
71- static int LLVM_ATTRIBUTE_UNUSED FuchsiaModuleAnchorDestination =
71+ [[maybe_unused]] static int FuchsiaModuleAnchorDestination =
7272 FuchsiaModuleAnchorSource;
7373
7474// This anchor is used to force the linker to link the GoogleModule.
7575extern volatile int GoogleModuleAnchorSource;
76- static int LLVM_ATTRIBUTE_UNUSED GoogleModuleAnchorDestination =
76+ [[maybe_unused]] static int GoogleModuleAnchorDestination =
7777 GoogleModuleAnchorSource;
7878
7979// This anchor is used to force the linker to link the HICPPModule.
8080extern volatile int HICPPModuleAnchorSource;
81- static int LLVM_ATTRIBUTE_UNUSED HICPPModuleAnchorDestination =
81+ [[maybe_unused]] static int HICPPModuleAnchorDestination =
8282 HICPPModuleAnchorSource;
8383
8484// This anchor is used to force the linker to link the LinuxKernelModule.
8585extern volatile int LinuxKernelModuleAnchorSource;
86- static int LLVM_ATTRIBUTE_UNUSED LinuxKernelModuleAnchorDestination =
86+ [[maybe_unused]] static int LinuxKernelModuleAnchorDestination =
8787 LinuxKernelModuleAnchorSource;
8888
8989// This anchor is used to force the linker to link the LLVMModule.
9090extern volatile int LLVMModuleAnchorSource;
91- static int LLVM_ATTRIBUTE_UNUSED LLVMModuleAnchorDestination =
91+ [[maybe_unused]] static int LLVMModuleAnchorDestination =
9292 LLVMModuleAnchorSource;
9393
9494// This anchor is used to force the linker to link the LLVMLibcModule.
9595extern volatile int LLVMLibcModuleAnchorSource;
96- static int LLVM_ATTRIBUTE_UNUSED LLVMLibcModuleAnchorDestination =
96+ [[maybe_unused]] static int LLVMLibcModuleAnchorDestination =
9797 LLVMLibcModuleAnchorSource;
9898
9999// This anchor is used to force the linker to link the MiscModule.
100100extern volatile int MiscModuleAnchorSource;
101- static int LLVM_ATTRIBUTE_UNUSED MiscModuleAnchorDestination =
101+ [[maybe_unused]] static int MiscModuleAnchorDestination =
102102 MiscModuleAnchorSource;
103103
104104// This anchor is used to force the linker to link the ModernizeModule.
105105extern volatile int ModernizeModuleAnchorSource;
106- static int LLVM_ATTRIBUTE_UNUSED ModernizeModuleAnchorDestination =
106+ [[maybe_unused]] static int ModernizeModuleAnchorDestination =
107107 ModernizeModuleAnchorSource;
108108
109109#if CLANG_TIDY_ENABLE_STATIC_ANALYZER && \
110110 !defined (CLANG_TIDY_DISABLE_STATIC_ANALYZER_CHECKS)
111111// This anchor is used to force the linker to link the MPIModule.
112112extern volatile int MPIModuleAnchorSource;
113- static int LLVM_ATTRIBUTE_UNUSED MPIModuleAnchorDestination =
114- MPIModuleAnchorSource;
113+ [[maybe_unused]] static int MPIModuleAnchorDestination = MPIModuleAnchorSource;
115114#endif
116115
117116// This anchor is used to force the linker to link the ObjCModule.
118117extern volatile int ObjCModuleAnchorSource;
119- static int LLVM_ATTRIBUTE_UNUSED ObjCModuleAnchorDestination =
118+ [[maybe_unused]] static int ObjCModuleAnchorDestination =
120119 ObjCModuleAnchorSource;
121120
122121// This anchor is used to force the linker to link the OpenMPModule.
123122extern volatile int OpenMPModuleAnchorSource;
124- static int LLVM_ATTRIBUTE_UNUSED OpenMPModuleAnchorDestination =
123+ [[maybe_unused]] static int OpenMPModuleAnchorDestination =
125124 OpenMPModuleAnchorSource;
126125
127126// This anchor is used to force the linker to link the PerformanceModule.
128127extern volatile int PerformanceModuleAnchorSource;
129- static int LLVM_ATTRIBUTE_UNUSED PerformanceModuleAnchorDestination =
128+ [[maybe_unused]] static int PerformanceModuleAnchorDestination =
130129 PerformanceModuleAnchorSource;
131130
132131// This anchor is used to force the linker to link the PortabilityModule.
133132extern volatile int PortabilityModuleAnchorSource;
134- static int LLVM_ATTRIBUTE_UNUSED PortabilityModuleAnchorDestination =
133+ [[maybe_unused]] static int PortabilityModuleAnchorDestination =
135134 PortabilityModuleAnchorSource;
136135
137136// This anchor is used to force the linker to link the ReadabilityModule.
138137extern volatile int ReadabilityModuleAnchorSource;
139- static int LLVM_ATTRIBUTE_UNUSED ReadabilityModuleAnchorDestination =
138+ [[maybe_unused]] static int ReadabilityModuleAnchorDestination =
140139 ReadabilityModuleAnchorSource;
141140
142141// This anchor is used to force the linker to link the ZirconModule.
143142extern volatile int ZirconModuleAnchorSource;
144- static int LLVM_ATTRIBUTE_UNUSED ZirconModuleAnchorDestination =
143+ [[maybe_unused]] static int ZirconModuleAnchorDestination =
145144 ZirconModuleAnchorSource;
146145
147146} // namespace clang::tidy
0 commit comments