clang-tools  8.0.0
ClangTidyForceLinker.h
Go to the documentation of this file.
1 //===- ClangTidyForceLinker.h - clang-tidy --------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANGTIDYFORCELINKER_H
11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANGTIDYFORCELINKER_H
12 
13 #include "clang/Config/config.h"
14 #include "llvm/Support/Compiler.h"
15 
16 namespace clang {
17 namespace tidy {
18 
19 // This anchor is used to force the linker to link the CERTModule.
20 extern volatile int CERTModuleAnchorSource;
21 static int LLVM_ATTRIBUTE_UNUSED CERTModuleAnchorDestination =
23 
24 // This anchor is used to force the linker to link the AbseilModule.
25 extern volatile int AbseilModuleAnchorSource;
26 static int LLVM_ATTRIBUTE_UNUSED AbseilModuleAnchorDestination =
28 
29 // This anchor is used to force the linker to link the BoostModule.
30 extern volatile int BoostModuleAnchorSource;
31 static int LLVM_ATTRIBUTE_UNUSED BoostModuleAnchorDestination =
33 
34 // This anchor is used to force the linker to link the BugproneModule.
35 extern volatile int BugproneModuleAnchorSource;
36 static int LLVM_ATTRIBUTE_UNUSED BugproneModuleAnchorDestination =
38 
39 // This anchor is used to force the linker to link the LLVMModule.
40 extern volatile int LLVMModuleAnchorSource;
41 static int LLVM_ATTRIBUTE_UNUSED LLVMModuleAnchorDestination =
43 
44 // This anchor is used to force the linker to link the CppCoreGuidelinesModule.
45 extern volatile int CppCoreGuidelinesModuleAnchorSource;
46 static int LLVM_ATTRIBUTE_UNUSED CppCoreGuidelinesModuleAnchorDestination =
48 
49 // This anchor is used to force the linker to link the FuchsiaModule.
50 extern volatile int FuchsiaModuleAnchorSource;
51 static int LLVM_ATTRIBUTE_UNUSED FuchsiaModuleAnchorDestination =
53 
54 // This anchor is used to force the linker to link the GoogleModule.
55 extern volatile int GoogleModuleAnchorSource;
56 static int LLVM_ATTRIBUTE_UNUSED GoogleModuleAnchorDestination =
58 
59 // This anchor is used to force the linker to link the AndroidModule.
60 extern volatile int AndroidModuleAnchorSource;
61 static int LLVM_ATTRIBUTE_UNUSED AndroidModuleAnchorDestination =
63 
64 // This anchor is used to force the linker to link the MiscModule.
65 extern volatile int MiscModuleAnchorSource;
66 static int LLVM_ATTRIBUTE_UNUSED MiscModuleAnchorDestination =
68 
69 // This anchor is used to force the linker to link the ModernizeModule.
70 extern volatile int ModernizeModuleAnchorSource;
71 static int LLVM_ATTRIBUTE_UNUSED ModernizeModuleAnchorDestination =
73 
74 #if CLANG_ENABLE_STATIC_ANALYZER
75 // This anchor is used to force the linker to link the MPIModule.
76 extern volatile int MPIModuleAnchorSource;
77 static int LLVM_ATTRIBUTE_UNUSED MPIModuleAnchorDestination =
79 #endif
80 
81 // This anchor is used to force the linker to link the PerformanceModule.
82 extern volatile int PerformanceModuleAnchorSource;
83 static int LLVM_ATTRIBUTE_UNUSED PerformanceModuleAnchorDestination =
85 
86 // This anchor is used to force the linker to link the PortabilityModule.
87 extern volatile int PortabilityModuleAnchorSource;
88 static int LLVM_ATTRIBUTE_UNUSED PortabilityModuleAnchorDestination =
90 
91 // This anchor is used to force the linker to link the ReadabilityModule.
92 extern volatile int ReadabilityModuleAnchorSource;
93 static int LLVM_ATTRIBUTE_UNUSED ReadabilityModuleAnchorDestination =
95 
96 // This anchor is used to force the linker to link the ObjCModule.
97 extern volatile int ObjCModuleAnchorSource;
98 static int LLVM_ATTRIBUTE_UNUSED ObjCModuleAnchorDestination =
100 
101 // This anchor is used to force the linker to link the HICPPModule.
102 extern volatile int HICPPModuleAnchorSource;
103 static int LLVM_ATTRIBUTE_UNUSED HICPPModuleAnchorDestination =
105 
106 // This anchor is used to force the linker to link the ZirconModule.
107 extern volatile int ZirconModuleAnchorSource;
108 static int LLVM_ATTRIBUTE_UNUSED ZirconModuleAnchorDestination =
110 
111 } // namespace tidy
112 } // namespace clang
113 
114 #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
volatile int PortabilityModuleAnchorSource
volatile int ZirconModuleAnchorSource
volatile int CERTModuleAnchorSource
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