Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df5fa48

Browse files
committed
[clang-tidy][NFC] Add missing check group docs and order entries
Differential Revision: https://reviews.llvm.org/D76541
1 parent 7cdbf1e commit df5fa48

File tree

2 files changed

+36
-34
lines changed

2 files changed

+36
-34
lines changed

clang-tools-extra/clang-tidy/ClangTidyForceLinker.h

+33-33
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
namespace clang {
1616
namespace tidy {
1717

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 =
21-
CERTModuleAnchorSource;
22-
2318
// This anchor is used to force the linker to link the AbseilModule.
2419
extern volatile int AbseilModuleAnchorSource;
2520
static int LLVM_ATTRIBUTE_UNUSED AbseilModuleAnchorDestination =
2621
AbseilModuleAnchorSource;
2722

23+
// This anchor is used to force the linker to link the AndroidModule.
24+
extern volatile int AndroidModuleAnchorSource;
25+
static int LLVM_ATTRIBUTE_UNUSED AndroidModuleAnchorDestination =
26+
AndroidModuleAnchorSource;
27+
2828
// This anchor is used to force the linker to link the BoostModule.
2929
extern volatile int BoostModuleAnchorSource;
3030
static int LLVM_ATTRIBUTE_UNUSED BoostModuleAnchorDestination =
@@ -35,20 +35,10 @@ extern volatile int BugproneModuleAnchorSource;
3535
static int LLVM_ATTRIBUTE_UNUSED BugproneModuleAnchorDestination =
3636
BugproneModuleAnchorSource;
3737

38-
// This anchor is used to force the linker to link the LinuxKernelModule.
39-
extern volatile int LinuxKernelModuleAnchorSource;
40-
static int LLVM_ATTRIBUTE_UNUSED LinuxKernelModuleAnchorDestination =
41-
LinuxKernelModuleAnchorSource;
42-
43-
// This anchor is used to force the linker to link the LLVMModule.
44-
extern volatile int LLVMModuleAnchorSource;
45-
static int LLVM_ATTRIBUTE_UNUSED LLVMModuleAnchorDestination =
46-
LLVMModuleAnchorSource;
47-
48-
// This anchor is used to force the linker to link the LLVMLibcModule.
49-
extern volatile int LLVMLibcModuleAnchorSource;
50-
static int LLVM_ATTRIBUTE_UNUSED LLVMLibcModuleAnchorDestination =
51-
LLVMLibcModuleAnchorSource;
38+
// This anchor is used to force the linker to link the CERTModule.
39+
extern volatile int CERTModuleAnchorSource;
40+
static int LLVM_ATTRIBUTE_UNUSED CERTModuleAnchorDestination =
41+
CERTModuleAnchorSource;
5242

5343
// This anchor is used to force the linker to link the CppCoreGuidelinesModule.
5444
extern volatile int CppCoreGuidelinesModuleAnchorSource;
@@ -70,10 +60,25 @@ extern volatile int GoogleModuleAnchorSource;
7060
static int LLVM_ATTRIBUTE_UNUSED GoogleModuleAnchorDestination =
7161
GoogleModuleAnchorSource;
7262

73-
// This anchor is used to force the linker to link the AndroidModule.
74-
extern volatile int AndroidModuleAnchorSource;
75-
static int LLVM_ATTRIBUTE_UNUSED AndroidModuleAnchorDestination =
76-
AndroidModuleAnchorSource;
63+
// This anchor is used to force the linker to link the HICPPModule.
64+
extern volatile int HICPPModuleAnchorSource;
65+
static int LLVM_ATTRIBUTE_UNUSED HICPPModuleAnchorDestination =
66+
HICPPModuleAnchorSource;
67+
68+
// This anchor is used to force the linker to link the LinuxKernelModule.
69+
extern volatile int LinuxKernelModuleAnchorSource;
70+
static int LLVM_ATTRIBUTE_UNUSED LinuxKernelModuleAnchorDestination =
71+
LinuxKernelModuleAnchorSource;
72+
73+
// This anchor is used to force the linker to link the LLVMModule.
74+
extern volatile int LLVMModuleAnchorSource;
75+
static int LLVM_ATTRIBUTE_UNUSED LLVMModuleAnchorDestination =
76+
LLVMModuleAnchorSource;
77+
78+
// This anchor is used to force the linker to link the LLVMLibcModule.
79+
extern volatile int LLVMLibcModuleAnchorSource;
80+
static int LLVM_ATTRIBUTE_UNUSED LLVMLibcModuleAnchorDestination =
81+
LLVMLibcModuleAnchorSource;
7782

7883
// This anchor is used to force the linker to link the MiscModule.
7984
extern volatile int MiscModuleAnchorSource;
@@ -93,6 +98,11 @@ static int LLVM_ATTRIBUTE_UNUSED MPIModuleAnchorDestination =
9398
MPIModuleAnchorSource;
9499
#endif
95100

101+
// This anchor is used to force the linker to link the ObjCModule.
102+
extern volatile int ObjCModuleAnchorSource;
103+
static int LLVM_ATTRIBUTE_UNUSED ObjCModuleAnchorDestination =
104+
ObjCModuleAnchorSource;
105+
96106
// This anchor is used to force the linker to link the OpenMPModule.
97107
extern volatile int OpenMPModuleAnchorSource;
98108
static int LLVM_ATTRIBUTE_UNUSED OpenMPModuleAnchorDestination =
@@ -113,16 +123,6 @@ extern volatile int ReadabilityModuleAnchorSource;
113123
static int LLVM_ATTRIBUTE_UNUSED ReadabilityModuleAnchorDestination =
114124
ReadabilityModuleAnchorSource;
115125

116-
// This anchor is used to force the linker to link the ObjCModule.
117-
extern volatile int ObjCModuleAnchorSource;
118-
static int LLVM_ATTRIBUTE_UNUSED ObjCModuleAnchorDestination =
119-
ObjCModuleAnchorSource;
120-
121-
// This anchor is used to force the linker to link the HICPPModule.
122-
extern volatile int HICPPModuleAnchorSource;
123-
static int LLVM_ATTRIBUTE_UNUSED HICPPModuleAnchorDestination =
124-
HICPPModuleAnchorSource;
125-
126126
// This anchor is used to force the linker to link the ZirconModule.
127127
extern volatile int ZirconModuleAnchorSource;
128128
static int LLVM_ATTRIBUTE_UNUSED ZirconModuleAnchorDestination =

clang-tools-extra/docs/clang-tidy/index.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,13 @@ Name prefix Description
6262
``boost-`` Checks related to Boost library.
6363
``bugprone-`` Checks that target bugprone code constructs.
6464
``cert-`` Checks related to CERT Secure Coding Guidelines.
65-
``cppcoreguidelines-`` Checks related to C++ Core Guidelines.
6665
``clang-analyzer-`` Clang Static Analyzer checks.
66+
``cppcoreguidelines-`` Checks related to C++ Core Guidelines.
67+
``darwin-`` Checks related to Darwin coding conventions.
6768
``fuchsia-`` Checks related to Fuchsia coding conventions.
6869
``google-`` Checks related to Google coding conventions.
6970
``hicpp-`` Checks related to High Integrity C++ Coding Standard.
71+
``linuxkernel-`` Checks related to the Linux Kernel coding conventions.
7072
``llvm-`` Checks related to the LLVM coding conventions.
7173
``llvmlibc-`` Checks related to the LLVM-libc coding standards.
7274
``misc-`` Checks that we didn't have a better category for.

0 commit comments

Comments
 (0)