clang-tools  9.0.0
ClangTidyForceLinker.h
Go to the documentation of this file.
1 //===- ClangTidyForceLinker.h - clang-tidy --------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANGTIDYFORCELINKER_H
10 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANGTIDYFORCELINKER_H
11 
12 #include "clang/Config/config.h"
13 #include "llvm/Support/Compiler.h"
14 
15 namespace clang {
16 namespace tidy {
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 =
22 
23 // This anchor is used to force the linker to link the AbseilModule.
24 extern volatile int AbseilModuleAnchorSource;
25 static int LLVM_ATTRIBUTE_UNUSED AbseilModuleAnchorDestination =
27 
28 // This anchor is used to force the linker to link the BoostModule.
29 extern volatile int BoostModuleAnchorSource;
30 static int LLVM_ATTRIBUTE_UNUSED BoostModuleAnchorDestination =
32 
33 // This anchor is used to force the linker to link the BugproneModule.
34 extern volatile int BugproneModuleAnchorSource;
35 static int LLVM_ATTRIBUTE_UNUSED BugproneModuleAnchorDestination =
37 
38 // This anchor is used to force the linker to link the LLVMModule.
39 extern volatile int LLVMModuleAnchorSource;
40 static int LLVM_ATTRIBUTE_UNUSED LLVMModuleAnchorDestination =
42 
43 // This anchor is used to force the linker to link the CppCoreGuidelinesModule.
44 extern volatile int CppCoreGuidelinesModuleAnchorSource;
45 static int LLVM_ATTRIBUTE_UNUSED CppCoreGuidelinesModuleAnchorDestination =
47 
48 // This anchor is used to force the linker to link the FuchsiaModule.
49 extern volatile int FuchsiaModuleAnchorSource;
50 static int LLVM_ATTRIBUTE_UNUSED FuchsiaModuleAnchorDestination =
52 
53 // This anchor is used to force the linker to link the GoogleModule.
54 extern volatile int GoogleModuleAnchorSource;
55 static int LLVM_ATTRIBUTE_UNUSED GoogleModuleAnchorDestination =
57 
58 // This anchor is used to force the linker to link the AndroidModule.
59 extern volatile int AndroidModuleAnchorSource;
60 static int LLVM_ATTRIBUTE_UNUSED AndroidModuleAnchorDestination =
62 
63 // This anchor is used to force the linker to link the MiscModule.
64 extern volatile int MiscModuleAnchorSource;
65 static int LLVM_ATTRIBUTE_UNUSED MiscModuleAnchorDestination =
67 
68 // This anchor is used to force the linker to link the ModernizeModule.
69 extern volatile int ModernizeModuleAnchorSource;
70 static int LLVM_ATTRIBUTE_UNUSED ModernizeModuleAnchorDestination =
72 
73 #if CLANG_ENABLE_STATIC_ANALYZER
74 // This anchor is used to force the linker to link the MPIModule.
75 extern volatile int MPIModuleAnchorSource;
76 static int LLVM_ATTRIBUTE_UNUSED MPIModuleAnchorDestination =
78 #endif
79 
80 // This anchor is used to force the linker to link the OpenMPModule.
81 extern volatile int OpenMPModuleAnchorSource;
82 static int LLVM_ATTRIBUTE_UNUSED OpenMPModuleAnchorDestination =
84 
85 // This anchor is used to force the linker to link the PerformanceModule.
86 extern volatile int PerformanceModuleAnchorSource;
87 static int LLVM_ATTRIBUTE_UNUSED PerformanceModuleAnchorDestination =
89 
90 // This anchor is used to force the linker to link the PortabilityModule.
91 extern volatile int PortabilityModuleAnchorSource;
92 static int LLVM_ATTRIBUTE_UNUSED PortabilityModuleAnchorDestination =
94 
95 // This anchor is used to force the linker to link the ReadabilityModule.
96 extern volatile int ReadabilityModuleAnchorSource;
97 static int LLVM_ATTRIBUTE_UNUSED ReadabilityModuleAnchorDestination =
99 
100 // This anchor is used to force the linker to link the ObjCModule.
101 extern volatile int ObjCModuleAnchorSource;
102 static int LLVM_ATTRIBUTE_UNUSED ObjCModuleAnchorDestination =
104 
105 // This anchor is used to force the linker to link the HICPPModule.
106 extern volatile int HICPPModuleAnchorSource;
107 static int LLVM_ATTRIBUTE_UNUSED HICPPModuleAnchorDestination =
109 
110 // This anchor is used to force the linker to link the ZirconModule.
111 extern volatile int ZirconModuleAnchorSource;
112 static int LLVM_ATTRIBUTE_UNUSED ZirconModuleAnchorDestination =
114 
115 } // namespace tidy
116 } // namespace clang
117 
118 #endif
volatile int GoogleModuleAnchorSource
volatile int ReadabilityModuleAnchorSource
static int LLVM_ATTRIBUTE_UNUSED LLVMModuleAnchorDestination
volatile int AndroidModuleAnchorSource
volatile int LLVMModuleAnchorSource
volatile int PerformanceModuleAnchorSource
volatile int CppCoreGuidelinesModuleAnchorSource
static int LLVM_ATTRIBUTE_UNUSED ObjCModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED ReadabilityModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED BugproneModuleAnchorDestination
volatile int MPIModuleAnchorSource
volatile int HICPPModuleAnchorSource
static int LLVM_ATTRIBUTE_UNUSED ZirconModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED AndroidModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED OpenMPModuleAnchorDestination
volatile int PortabilityModuleAnchorSource
volatile int ZirconModuleAnchorSource
volatile int CERTModuleAnchorSource
volatile int OpenMPModuleAnchorSource
static int LLVM_ATTRIBUTE_UNUSED GoogleModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED HICPPModuleAnchorDestination
volatile int BoostModuleAnchorSource
volatile int ObjCModuleAnchorSource
volatile int MiscModuleAnchorSource
static int LLVM_ATTRIBUTE_UNUSED PerformanceModuleAnchorDestination
volatile int BugproneModuleAnchorSource
static int LLVM_ATTRIBUTE_UNUSED FuchsiaModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED MiscModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED CppCoreGuidelinesModuleAnchorDestination
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
static int LLVM_ATTRIBUTE_UNUSED ModernizeModuleAnchorDestination
volatile int AbseilModuleAnchorSource
volatile int ModernizeModuleAnchorSource
static int LLVM_ATTRIBUTE_UNUSED PortabilityModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED CERTModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED BoostModuleAnchorDestination
volatile int FuchsiaModuleAnchorSource
static int LLVM_ATTRIBUTE_UNUSED AbseilModuleAnchorDestination