Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:36:23

0001 //===- ClangTidyForceLinker.h - clang-tidy --------------------------------===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANGTIDYFORCELINKER_H
0010 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANGTIDYFORCELINKER_H
0011 
0012 #include "clang-tidy-config.h"
0013 #include "llvm/Support/Compiler.h"
0014 
0015 namespace clang::tidy {
0016 
0017 // This anchor is used to force the linker to link the AbseilModule.
0018 extern volatile int AbseilModuleAnchorSource;
0019 static int LLVM_ATTRIBUTE_UNUSED AbseilModuleAnchorDestination =
0020     AbseilModuleAnchorSource;
0021 
0022 // This anchor is used to force the linker to link the AlteraModule.
0023 extern volatile int AlteraModuleAnchorSource;
0024 static int LLVM_ATTRIBUTE_UNUSED AlteraModuleAnchorDestination =
0025     AlteraModuleAnchorSource;
0026 
0027 // This anchor is used to force the linker to link the AndroidModule.
0028 extern volatile int AndroidModuleAnchorSource;
0029 static int LLVM_ATTRIBUTE_UNUSED AndroidModuleAnchorDestination =
0030     AndroidModuleAnchorSource;
0031 
0032 // This anchor is used to force the linker to link the BoostModule.
0033 extern volatile int BoostModuleAnchorSource;
0034 static int LLVM_ATTRIBUTE_UNUSED BoostModuleAnchorDestination =
0035     BoostModuleAnchorSource;
0036 
0037 // This anchor is used to force the linker to link the BugproneModule.
0038 extern volatile int BugproneModuleAnchorSource;
0039 static int LLVM_ATTRIBUTE_UNUSED BugproneModuleAnchorDestination =
0040     BugproneModuleAnchorSource;
0041 
0042 // This anchor is used to force the linker to link the CERTModule.
0043 extern volatile int CERTModuleAnchorSource;
0044 static int LLVM_ATTRIBUTE_UNUSED CERTModuleAnchorDestination =
0045     CERTModuleAnchorSource;
0046 
0047 // This anchor is used to force the linker to link the ConcurrencyModule.
0048 extern volatile int ConcurrencyModuleAnchorSource;
0049 static int LLVM_ATTRIBUTE_UNUSED ConcurrencyModuleAnchorDestination =
0050     ConcurrencyModuleAnchorSource;
0051 
0052 // This anchor is used to force the linker to link the CppCoreGuidelinesModule.
0053 extern volatile int CppCoreGuidelinesModuleAnchorSource;
0054 static int LLVM_ATTRIBUTE_UNUSED CppCoreGuidelinesModuleAnchorDestination =
0055     CppCoreGuidelinesModuleAnchorSource;
0056 
0057 // This anchor is used to force the linker to link the DarwinModule.
0058 extern volatile int DarwinModuleAnchorSource;
0059 static int LLVM_ATTRIBUTE_UNUSED DarwinModuleAnchorDestination =
0060     DarwinModuleAnchorSource;
0061 
0062 // This anchor is used to force the linker to link the FuchsiaModule.
0063 extern volatile int FuchsiaModuleAnchorSource;
0064 static int LLVM_ATTRIBUTE_UNUSED FuchsiaModuleAnchorDestination =
0065     FuchsiaModuleAnchorSource;
0066 
0067 // This anchor is used to force the linker to link the GoogleModule.
0068 extern volatile int GoogleModuleAnchorSource;
0069 static int LLVM_ATTRIBUTE_UNUSED GoogleModuleAnchorDestination =
0070     GoogleModuleAnchorSource;
0071 
0072 // This anchor is used to force the linker to link the HICPPModule.
0073 extern volatile int HICPPModuleAnchorSource;
0074 static int LLVM_ATTRIBUTE_UNUSED HICPPModuleAnchorDestination =
0075     HICPPModuleAnchorSource;
0076 
0077 // This anchor is used to force the linker to link the LinuxKernelModule.
0078 extern volatile int LinuxKernelModuleAnchorSource;
0079 static int LLVM_ATTRIBUTE_UNUSED LinuxKernelModuleAnchorDestination =
0080     LinuxKernelModuleAnchorSource;
0081 
0082 // This anchor is used to force the linker to link the LLVMModule.
0083 extern volatile int LLVMModuleAnchorSource;
0084 static int LLVM_ATTRIBUTE_UNUSED LLVMModuleAnchorDestination =
0085     LLVMModuleAnchorSource;
0086 
0087 // This anchor is used to force the linker to link the LLVMLibcModule.
0088 extern volatile int LLVMLibcModuleAnchorSource;
0089 static int LLVM_ATTRIBUTE_UNUSED LLVMLibcModuleAnchorDestination =
0090     LLVMLibcModuleAnchorSource;
0091 
0092 // This anchor is used to force the linker to link the MiscModule.
0093 extern volatile int MiscModuleAnchorSource;
0094 static int LLVM_ATTRIBUTE_UNUSED MiscModuleAnchorDestination =
0095     MiscModuleAnchorSource;
0096 
0097 // This anchor is used to force the linker to link the ModernizeModule.
0098 extern volatile int ModernizeModuleAnchorSource;
0099 static int LLVM_ATTRIBUTE_UNUSED ModernizeModuleAnchorDestination =
0100     ModernizeModuleAnchorSource;
0101 
0102 #if CLANG_TIDY_ENABLE_STATIC_ANALYZER &&                                       \
0103     !defined(CLANG_TIDY_DISABLE_STATIC_ANALYZER_CHECKS)
0104 // This anchor is used to force the linker to link the MPIModule.
0105 extern volatile int MPIModuleAnchorSource;
0106 static int LLVM_ATTRIBUTE_UNUSED MPIModuleAnchorDestination =
0107     MPIModuleAnchorSource;
0108 #endif
0109 
0110 // This anchor is used to force the linker to link the ObjCModule.
0111 extern volatile int ObjCModuleAnchorSource;
0112 static int LLVM_ATTRIBUTE_UNUSED ObjCModuleAnchorDestination =
0113     ObjCModuleAnchorSource;
0114 
0115 // This anchor is used to force the linker to link the OpenMPModule.
0116 extern volatile int OpenMPModuleAnchorSource;
0117 static int LLVM_ATTRIBUTE_UNUSED OpenMPModuleAnchorDestination =
0118     OpenMPModuleAnchorSource;
0119 
0120 // This anchor is used to force the linker to link the PerformanceModule.
0121 extern volatile int PerformanceModuleAnchorSource;
0122 static int LLVM_ATTRIBUTE_UNUSED PerformanceModuleAnchorDestination =
0123     PerformanceModuleAnchorSource;
0124 
0125 // This anchor is used to force the linker to link the PortabilityModule.
0126 extern volatile int PortabilityModuleAnchorSource;
0127 static int LLVM_ATTRIBUTE_UNUSED PortabilityModuleAnchorDestination =
0128     PortabilityModuleAnchorSource;
0129 
0130 // This anchor is used to force the linker to link the ReadabilityModule.
0131 extern volatile int ReadabilityModuleAnchorSource;
0132 static int LLVM_ATTRIBUTE_UNUSED ReadabilityModuleAnchorDestination =
0133     ReadabilityModuleAnchorSource;
0134 
0135 // This anchor is used to force the linker to link the ZirconModule.
0136 extern volatile int ZirconModuleAnchorSource;
0137 static int LLVM_ATTRIBUTE_UNUSED ZirconModuleAnchorDestination =
0138     ZirconModuleAnchorSource;
0139 
0140 } // namespace clang::tidy
0141 
0142 #endif