hanchenye-llvm-project/clang-tools-extra/clang-tidy/readability
Jun Zhang ac616fbb05
[Clang-tidy] Check the existence of ElaboratedType's qualifiers
The ElaboratedType can have no qualifiers, so we should check it before
use.

Fix #issue53874(https://github.com/llvm/llvm-project/issues/53874)

Differential Revision: https://reviews.llvm.org/D119949
2022-03-01 23:52:44 +08:00
..
AvoidConstParamsInDecls.cpp
AvoidConstParamsInDecls.h
BracesAroundStatementsCheck.cpp Use StringRef::contains (NFC) 2021-12-24 22:05:34 -08:00
BracesAroundStatementsCheck.h [clang-tidy] Simplify readability checks to not need ignoring* matchers 2021-03-28 11:25:41 +01:00
CMakeLists.txt [clang-tidy] Add `readability-container-contains` check 2022-01-24 12:57:18 +01:00
ConstReturnTypeCheck.cpp [clang-tidy] Fix `readability-const-return-type` for pure virtual function. 2022-03-01 20:55:28 +08:00
ConstReturnTypeCheck.h [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
ContainerContainsCheck.cpp [clang-tidy] Add `readability-container-contains` check 2022-01-24 12:57:18 +01:00
ContainerContainsCheck.h [clang-tidy] Add `readability-container-contains` check 2022-01-24 12:57:18 +01:00
ContainerDataPointerCheck.cpp [clang-tidy] Make `readability-container-data-pointer` more robust 2022-01-18 21:08:59 +01:00
ContainerDataPointerCheck.h [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
ContainerSizeEmptyCheck.cpp [clang-tidy] ContainerSizeEmptyCheck::check - simplify isa<> and dyn_cast<> repeated calls 2022-02-12 11:31:27 +00:00
ContainerSizeEmptyCheck.h
ConvertMemberFunctionsToStatic.cpp [llvm][clang][NFC] updates inline licence info 2021-08-11 02:48:53 +00:00
ConvertMemberFunctionsToStatic.h [llvm][clang][NFC] updates inline licence info 2021-08-11 02:48:53 +00:00
DeleteNullPointerCheck.cpp
DeleteNullPointerCheck.h
DuplicateIncludeCheck.cpp [clang-tidy] Pop Files only if FileChangeReason is ExitFile 2022-01-25 22:46:12 +08:00
DuplicateIncludeCheck.h [clang-tidy] Add readability-duplicate-include check 2022-01-23 09:23:04 -07:00
ElseAfterReturnCheck.cpp [clang-tidy] Simplify readability checks to not need ignoring* matchers 2021-03-28 11:25:41 +01:00
ElseAfterReturnCheck.h [clang-tidy] Simplify readability checks to not need ignoring* matchers 2021-03-28 11:25:41 +01:00
FunctionCognitiveComplexityCheck.cpp [clang-tidy] FunctionASTVisitor::TraverseStmt - use cast<> instead of dyn_cast<> to avoid dereference of nullptr 2022-02-12 11:04:20 +00:00
FunctionCognitiveComplexityCheck.h [clang-tidy] Add option to ignore macros in readability-function-cognitive-complexity check. 2021-04-12 18:46:12 +02:00
FunctionSizeCheck.cpp [llvm][ADT] Implement `BitVector::{pop_,}back` 2022-01-21 14:50:53 +01:00
FunctionSizeCheck.h
IdentifierLengthCheck.cpp Add a check for enforcing minimum length for variable names 2021-08-12 11:31:26 -04:00
IdentifierLengthCheck.h Add a check for enforcing minimum length for variable names 2021-08-12 11:31:26 -04:00
IdentifierNamingCheck.cpp [clang-tidy] Use nullptr instead of 0 or NULL (NFC) 2021-12-31 13:54:34 -08:00
IdentifierNamingCheck.h [clang-tools-extra] Remove unused forward declarations (NFC) 2022-01-30 16:05:00 -08:00
ImplicitBoolConversionCheck.cpp
ImplicitBoolConversionCheck.h
InconsistentDeclarationParameterNameCheck.cpp [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
InconsistentDeclarationParameterNameCheck.h [clang-tidy] Simplify readability checks to not need ignoring* matchers 2021-03-28 11:25:41 +01:00
IsolateDeclarationCheck.cpp
IsolateDeclarationCheck.h
MagicNumbersCheck.cpp
MagicNumbersCheck.h
MakeMemberFunctionConstCheck.cpp
MakeMemberFunctionConstCheck.h
MisleadingIndentationCheck.cpp [clang-tidy] Simplify readability checks to not need ignoring* matchers 2021-03-28 11:25:41 +01:00
MisleadingIndentationCheck.h [clang-tidy] Simplify readability checks to not need ignoring* matchers 2021-03-28 11:25:41 +01:00
MisplacedArrayIndexCheck.cpp
MisplacedArrayIndexCheck.h
NamedParameterCheck.cpp Use StringRef::contains (NFC) 2021-12-24 22:05:34 -08:00
NamedParameterCheck.h [clang-tidy] Simplify readability checks to not need ignoring* matchers 2021-03-28 11:25:41 +01:00
NamespaceCommentCheck.cpp
NamespaceCommentCheck.h
NonConstParameterCheck.cpp [clang-tidy] Fix `readability-non-const-parameter` for parameter referenced by an lvalue 2022-02-25 14:53:11 +08:00
NonConstParameterCheck.h [clang-tidy] Simplify readability checks to not need ignoring* matchers 2021-03-28 11:25:41 +01:00
QualifiedAutoCheck.cpp [clang] retain type sugar in auto / template argument deduction 2021-11-15 23:07:45 +01:00
QualifiedAutoCheck.h
ReadabilityTidyModule.cpp [clang-tidy] Add `readability-container-contains` check 2022-01-24 12:57:18 +01:00
RedundantAccessSpecifiersCheck.cpp
RedundantAccessSpecifiersCheck.h
RedundantControlFlowCheck.cpp [clang-tidy] RedundantControlFlowCheck::issueDiagnostic - use cast<> instead of dyn_cast<> to avoid dereference of nullptr 2022-02-12 11:05:59 +00:00
RedundantControlFlowCheck.h [clang-tidy] Simplify readability checks to not need ignoring* matchers 2021-03-28 11:25:41 +01:00
RedundantDeclarationCheck.cpp [clang-tidy] Fix `readability-redundant-declaration` false positive for template friend declaration 2022-01-17 20:50:32 +01:00
RedundantDeclarationCheck.h
RedundantFunctionPtrDereferenceCheck.cpp
RedundantFunctionPtrDereferenceCheck.h
RedundantMemberInitCheck.cpp
RedundantMemberInitCheck.h
RedundantPreprocessorCheck.cpp [clang-tidy][NFC] replace some redundant std::string creations 2022-01-19 18:36:35 +00:00
RedundantPreprocessorCheck.h
RedundantSmartptrGetCheck.cpp
RedundantSmartptrGetCheck.h
RedundantStringCStrCheck.cpp
RedundantStringCStrCheck.h
RedundantStringInitCheck.cpp
RedundantStringInitCheck.h
SimplifyBooleanExprCheck.cpp [clang-tidy] SimplifyBooleanExprCheck - use cast<> instead of dyn_cast<> to avoid dereference of nullptr 2022-02-12 19:59:30 +00:00
SimplifyBooleanExprCheck.h [clang-tidy] Recognize labelled statements when simplifying boolean exprs 2022-01-28 16:09:46 -07:00
SimplifyBooleanExprMatchers.h [clang-tidy] Make header compile standalone. NFC. 2022-01-31 11:18:00 +01:00
SimplifySubscriptExprCheck.cpp [clang-tidy] Simplify readability checks to not need ignoring* matchers 2021-03-28 11:25:41 +01:00
SimplifySubscriptExprCheck.h [clang-tidy] Simplify readability checks to not need ignoring* matchers 2021-03-28 11:25:41 +01:00
StaticAccessedThroughInstanceCheck.cpp [Clang-tidy] Check the existence of ElaboratedType's qualifiers 2022-03-01 23:52:44 +08:00
StaticAccessedThroughInstanceCheck.h [clang-tidy] Simplify readability checks to not need ignoring* matchers 2021-03-28 11:25:41 +01:00
StaticDefinitionInAnonymousNamespaceCheck.cpp [clang-tidy] Fix nested namespaces in `readability-static-definition-in-anonymous-namespace` check 2022-01-26 21:54:17 -07:00
StaticDefinitionInAnonymousNamespaceCheck.h
StringCompareCheck.cpp
StringCompareCheck.h
SuspiciousCallArgumentCheck.cpp [clang-tidy] Fix `readability-suspicious-call-argument` crash for arguments without name-like identifier 2022-02-25 16:24:27 +01:00
SuspiciousCallArgumentCheck.h [clang-tidy] Add 'readability-suspicious-call-argument' check 2021-07-19 10:18:09 +02:00
UniqueptrDeleteReleaseCheck.cpp [clang-tidy] Simplify readability checks to not need ignoring* matchers 2021-03-28 11:25:41 +01:00
UniqueptrDeleteReleaseCheck.h [clang-tidy] Simplify readability checks to not need ignoring* matchers 2021-03-28 11:25:41 +01:00
UppercaseLiteralSuffixCheck.cpp Add a missing include to appease the build bots 2021-09-27 14:19:39 -04:00
UppercaseLiteralSuffixCheck.h [clang-tidy] Simplify readability checks to not need ignoring* matchers 2021-03-28 11:25:41 +01:00
UseAnyOfAllOfCheck.cpp [llvm][clang][NFC] updates inline licence info 2021-08-11 02:48:53 +00:00
UseAnyOfAllOfCheck.h [llvm][clang][NFC] updates inline licence info 2021-08-11 02:48:53 +00:00