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 =
22 CERTModuleAnchorSource;
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 =
27 AbseilModuleAnchorSource;
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 =
32 BoostModuleAnchorSource;
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 =
37 BugproneModuleAnchorSource;
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 =
42 LLVMModuleAnchorSource;
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 =
47 CppCoreGuidelinesModuleAnchorSource;
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 =
52 FuchsiaModuleAnchorSource;
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 =
57 GoogleModuleAnchorSource;
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 =
62 AndroidModuleAnchorSource;
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 =
67 MiscModuleAnchorSource;
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 =
72 ModernizeModuleAnchorSource;
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 =
78 MPIModuleAnchorSource;
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 =
84 PerformanceModuleAnchorSource;
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 =
89 PortabilityModuleAnchorSource;
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 =
94 ReadabilityModuleAnchorSource;
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 =
99 ObjCModuleAnchorSource;
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 =
104 HICPPModuleAnchorSource;
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 =
109 ZirconModuleAnchorSource;
110
111 } // namespace tidy
112 } // namespace clang
113
114 #endif
clang::tidy::GoogleModuleAnchorSource
volatile int GoogleModuleAnchorSource
Definition: GoogleTidyModule.cpp:98
clang::tidy::ReadabilityModuleAnchorSource
volatile int ReadabilityModuleAnchorSource
Definition: ReadabilityTidyModule.cpp:128
clang::tidy::LLVMModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED LLVMModuleAnchorDestination
Definition: ClangTidyForceLinker.h:41
clang::tidy::AndroidModuleAnchorSource
volatile int AndroidModuleAnchorSource
Definition: AndroidTidyModule.cpp:67
clang::tidy::LLVMModuleAnchorSource
volatile int LLVMModuleAnchorSource
Definition: LLVMTidyModule.cpp:41
clang::tidy::PerformanceModuleAnchorSource
volatile int PerformanceModuleAnchorSource
Definition: PerformanceTidyModule.cpp:68
clang::tidy::CppCoreGuidelinesModuleAnchorSource
volatile int CppCoreGuidelinesModuleAnchorSource
Definition: CppCoreGuidelinesTidyModule.cpp:107
clang::tidy::ObjCModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED ObjCModuleAnchorDestination
Definition: ClangTidyForceLinker.h:98
clang::tidy::ReadabilityModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED ReadabilityModuleAnchorDestination
Definition: ClangTidyForceLinker.h:93
clang::tidy::BugproneModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED BugproneModuleAnchorDestination
Definition: ClangTidyForceLinker.h:36
clang::tidy::MPIModuleAnchorSource
volatile int MPIModuleAnchorSource
Definition: MPITidyModule.cpp:36
clang::tidy::HICPPModuleAnchorSource
volatile int HICPPModuleAnchorSource
Definition: HICPPTidyModule.cpp:122
clang::tidy::ZirconModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED ZirconModuleAnchorDestination
Definition: ClangTidyForceLinker.h:108
clang::tidy::AndroidModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED AndroidModuleAnchorDestination
Definition: ClangTidyForceLinker.h:61
clang::tidy::PortabilityModuleAnchorSource
volatile int PortabilityModuleAnchorSource
Definition: PortabilityTidyModule.cpp:35
clang::tidy::ZirconModuleAnchorSource
volatile int ZirconModuleAnchorSource
Definition: ZirconTidyModule.cpp:37
clang::tidy::CERTModuleAnchorSource
volatile int CERTModuleAnchorSource
Definition: CERTTidyModule.cpp:102
clang::tidy::GoogleModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED GoogleModuleAnchorDestination
Definition: ClangTidyForceLinker.h:56
clang::tidy::HICPPModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED HICPPModuleAnchorDestination
Definition: ClangTidyForceLinker.h:103
clang::tidy::BoostModuleAnchorSource
volatile int BoostModuleAnchorSource
Definition: BoostTidyModule.cpp:35
clang::tidy::ObjCModuleAnchorSource
volatile int ObjCModuleAnchorSource
Definition: ObjCTidyModule.cpp:47
clang::tidy::MiscModuleAnchorSource
volatile int MiscModuleAnchorSource
Definition: MiscTidyModule.cpp:69
clang::tidy::PerformanceModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED PerformanceModuleAnchorDestination
Definition: ClangTidyForceLinker.h:83
clang::tidy::BugproneModuleAnchorSource
volatile int BugproneModuleAnchorSource
Definition: BugproneTidyModule.cpp:155
clang::tidy::FuchsiaModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED FuchsiaModuleAnchorDestination
Definition: ClangTidyForceLinker.h:51
clang::tidy::MiscModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED MiscModuleAnchorDestination
Definition: ClangTidyForceLinker.h:66
clang::tidy::CppCoreGuidelinesModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED CppCoreGuidelinesModuleAnchorDestination
Definition: ClangTidyForceLinker.h:46
clang
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Definition: ChangeNamespace.cpp:18
clang::tidy::ModernizeModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED ModernizeModuleAnchorDestination
Definition: ClangTidyForceLinker.h:71
clang::tidy::AbseilModuleAnchorSource
volatile int AbseilModuleAnchorSource
Definition: AbseilTidyModule.cpp:67
clang::tidy::ModernizeModuleAnchorSource
volatile int ModernizeModuleAnchorSource
Definition: ModernizeTidyModule.cpp:124
clang::tidy::PortabilityModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED PortabilityModuleAnchorDestination
Definition: ClangTidyForceLinker.h:88
clang::tidy::CERTModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED CERTModuleAnchorDestination
Definition: ClangTidyForceLinker.h:21
clang::tidy::BoostModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED BoostModuleAnchorDestination
Definition: ClangTidyForceLinker.h:31
clang::tidy::FuchsiaModuleAnchorSource
volatile int FuchsiaModuleAnchorSource
Definition: FuchsiaTidyModule.cpp:57
clang::tidy::AbseilModuleAnchorDestination
static int LLVM_ATTRIBUTE_UNUSED AbseilModuleAnchorDestination
Definition: ClangTidyForceLinker.h:26