llvm-project/clang/lib/StaticAnalyzer/Checkers
Kazu Hirata 97afce08cb [clang] Don't use Optional::hasValue (NFC)
This patch replaces Optional::hasValue with the implicit cast to bool
in conditionals only.
2022-06-25 22:26:24 -07:00
..
MPI-Checker [analyzer][NFC] Prefer using isa<> instead getAs<> in conditions 2022-06-15 16:58:13 +02:00
RetainCountChecker [clang] Add a raw_ostream operator<< overload for QualType 2022-04-20 22:09:05 +01:00
UninitializedObject [analyzer][NFC] Prefer using isa<> instead getAs<> in conditions 2022-06-15 16:58:13 +02:00
WebKit [clang] Remove unused forward declarations (NFC) 2022-01-08 11:56:40 -08:00
cert [analyzer][NFC] Add partial specializations for ProgramStateTraits 2022-06-02 19:46:38 +02:00
AllocationState.h
AnalysisOrderChecker.cpp
AnalyzerStatsChecker.cpp [analyzer][NFC] Refactor llvm::isa<> usages in the StaticAnalyzer 2021-10-20 17:43:31 +02:00
ArrayBoundChecker.cpp [analyzer] Replace adjacent assumeInBound calls to assumeInBoundDual 2022-05-10 10:16:55 +02:00
ArrayBoundCheckerV2.cpp [analyzer][NFC] Prefer using isa<> instead getAs<> in conditions 2022-06-15 16:58:13 +02:00
BasicObjCFoundationChecks.cpp [clang] Don't use Optional::hasValue (NFC) 2022-06-25 22:26:24 -07:00
BlockInCriticalSectionChecker.cpp [analyzer][NFC] Switch to using CallDescription::matches() instead of isCalled() 2021-11-19 18:32:13 +01:00
BoolAssignmentChecker.cpp [analyzer] Add taint to the BoolAssignmentChecker 2022-05-13 09:27:28 +02:00
BuiltinFunctionChecker.cpp [Clang] Add __builtin_function_start 2021-12-20 12:55:33 -08:00
CMakeLists.txt [clang][analyzer] Add checker for bad use of 'errno'. 2022-06-20 10:07:31 +02:00
CStringChecker.cpp [analyzer][NFC] Prefer using isa<> instead getAs<> in conditions 2022-06-15 16:58:13 +02:00
CStringSyntaxChecker.cpp
CXXSelfAssignmentChecker.cpp
CallAndMessageChecker.cpp [analyzer] Clean checker options from bool to DefaultBool (NFC) 2022-04-23 14:47:29 -05:00
CastSizeChecker.cpp
CastToStructChecker.cpp
CastValueChecker.cpp [analyzer] Fix null pointer deref in CastValueChecker 2022-06-07 13:34:06 -04:00
CheckObjCDealloc.cpp [clang] Don't use Optional::getValue (NFC) 2022-06-20 22:59:26 -07:00
CheckObjCInstMethSignature.cpp [clang] Add a raw_ostream operator<< overload for QualType 2022-04-20 22:09:05 +01:00
CheckPlacementNew.cpp
CheckSecuritySyntaxOnly.cpp [analyzer] Clean checker options from bool to DefaultBool (NFC) 2022-04-23 14:47:29 -05:00
CheckSizeofPointer.cpp
CheckerDocumentation.cpp
ChrootChecker.cpp [analyzer][NFC] Switch to using CallDescription::matches() instead of isCalled() 2021-11-19 18:32:13 +01:00
CloneChecker.cpp [analyzer] Clean checker options from bool to DefaultBool (NFC) 2022-04-23 14:47:29 -05:00
ContainerModeling.cpp [analyzer][NFC] Use enum for CallDescription flags 2021-11-19 18:32:13 +01:00
ConversionChecker.cpp [analyzer] Expand conversion check to check more expressions for overflow and underflow 2021-12-15 11:41:34 +01:00
DeadStoresChecker.cpp [analyzer][NFC] Merge similar conditional paths 2022-03-07 22:05:27 +05:30
DebugCheckers.cpp [clang] Use true/false instead of 1/0 (NFC) 2022-01-09 00:19:47 -08:00
DebugContainerModeling.cpp [analyzer][NFC] Use enum for CallDescription flags 2021-11-19 18:32:13 +01:00
DebugIteratorModeling.cpp [analyzer][NFC] Use enum for CallDescription flags 2021-11-19 18:32:13 +01:00
DeleteWithNonVirtualDtorChecker.cpp
DereferenceChecker.cpp [analyzer][NFC] Prefer using isa<> instead getAs<> in conditions 2022-06-15 16:58:13 +02:00
DirectIvarAssignment.cpp [Sema, StaticAnalyzer] Use StringRef::contains (NFC) 2021-10-20 08:02:36 -07:00
DivZeroChecker.cpp [analyzer] Expose Taint.h to plugins 2022-04-19 16:55:01 +02:00
DynamicTypeChecker.cpp
DynamicTypePropagation.cpp [analyzer][NFC] Remove dead code and modernize surroundings 2022-06-15 16:50:12 +02:00
EnumCastOutOfRangeChecker.cpp [clang][NFC] Inclusive terms: Replace uses of whitelist in clang/lib/StaticAnalyzer 2021-10-29 16:51:36 -04:00
ErrnoChecker.cpp [clang][analyzer] Add checker for bad use of 'errno'. 2022-06-20 10:07:31 +02:00
ErrnoModeling.cpp [clang][analyzer] Add checker for bad use of 'errno'. 2022-06-20 10:07:31 +02:00
ErrnoModeling.h [clang][analyzer] Add checker for bad use of 'errno'. 2022-06-20 10:07:31 +02:00
ErrnoTesterChecker.cpp [clang][analyzer] Add checker for bad use of 'errno'. 2022-06-20 10:07:31 +02:00
ExprInspectionChecker.cpp [analyzer] Add UnarySymExpr 2022-05-26 14:00:27 +02:00
FixedAddressChecker.cpp
FuchsiaHandleChecker.cpp [analyzer][NFC] Remove dead code and modernize surroundings 2022-06-15 16:50:12 +02:00
GCDAntipatternChecker.cpp [clang] Rename StringRef _lower() method calls to _insensitive() 2021-06-25 00:22:01 +03:00
GTestChecker.cpp [clang] Don't use Optional::hasValue (NFC) 2022-06-25 22:26:24 -07:00
GenericTaintChecker.cpp [clang] Don't use Optional::getValue (NFC) 2022-06-20 22:59:26 -07:00
IdenticalExprChecker.cpp
InnerPointerChecker.cpp [analyzer] Check for std::__addressof for inner pointer checker 2022-05-03 14:05:19 +02:00
InterCheckerAPI.h
InvalidatedIteratorChecker.cpp
Iterator.cpp [analyzer][NFC] Prefer using isa<> instead getAs<> in conditions 2022-06-15 16:58:13 +02:00
Iterator.h [analyzer][NFC] Remove dead code and modernize surroundings 2022-06-15 16:50:12 +02:00
IteratorModeling.cpp [analyzer][NFC] Prefer using isa<> instead getAs<> in conditions 2022-06-15 16:58:13 +02:00
IteratorRangeChecker.cpp [analyzer][NFC] Separate CallDescription from CallEvent 2021-11-15 19:10:46 +01:00
IvarInvalidationChecker.cpp [analyzer] Clean checker options from bool to DefaultBool (NFC) 2022-04-23 14:47:29 -05:00
LLVMConventionsChecker.cpp [clang] Add a raw_ostream operator<< overload for QualType 2022-04-20 22:09:05 +01:00
LocalizationChecker.cpp [clang] Don't use Optional::hasValue (NFC) 2022-06-20 10:51:34 -07:00
MIGChecker.cpp [clang][NFC] Inclusive terms: replace some uses of sanity in clang 2021-11-19 14:58:35 -05:00
MacOSKeychainAPIChecker.cpp [analyzer][NFC] Refactor llvm::isa<> usages in the StaticAnalyzer 2021-10-20 17:43:31 +02:00
MacOSXAPIChecker.cpp
MallocChecker.cpp [clang] Don't use Optional::hasValue (NFC) 2022-06-25 22:26:24 -07:00
MallocOverflowSecurityChecker.cpp [analyzer][NFC] Refactor llvm::isa<> usages in the StaticAnalyzer 2021-10-20 17:43:31 +02:00
MallocSizeofChecker.cpp [clang] Add a raw_ostream operator<< overload for QualType 2022-04-20 22:09:05 +01:00
MismatchedIteratorChecker.cpp
MmapWriteExecChecker.cpp [analyzer][NFC] Prefer using isa<> instead getAs<> in conditions 2022-06-15 16:58:13 +02:00
Move.h
MoveChecker.cpp [analyzer][NFC] Remove dead code and modernize surroundings 2022-06-15 16:50:12 +02:00
NSAutoreleasePoolChecker.cpp
NSErrorChecker.cpp [analyzer][NFC] Prefer using isa<> instead getAs<> in conditions 2022-06-15 16:58:13 +02:00
NoReturnFunctionChecker.cpp
NonNullParamChecker.cpp Revert "Don't use Optional::hasValue (NFC)" 2022-06-25 11:56:50 -07:00
NonnullGlobalConstantsChecker.cpp
NullabilityChecker.cpp [analyzer] Clean checker options from bool to DefaultBool (NFC) 2022-04-23 14:47:29 -05:00
NumberObjectConversionChecker.cpp [clang] Add a raw_ostream operator<< overload for QualType 2022-04-20 22:09:05 +01:00
OSObjectCStyleCast.cpp
ObjCAtSyncChecker.cpp [analyzer][NFC] Prefer using isa<> instead getAs<> in conditions 2022-06-15 16:58:13 +02:00
ObjCAutoreleaseWriteChecker.cpp [analyzer] Fix return of llvm::StringRef to destroyed std::string 2022-05-01 12:24:32 +01:00
ObjCContainersASTChecker.cpp [clang] Add a raw_ostream operator<< overload for QualType 2022-04-20 22:09:05 +01:00
ObjCContainersChecker.cpp [analyzer][NFC] Remove dead code and modernize surroundings 2022-06-15 16:50:12 +02:00
ObjCMissingSuperCallChecker.cpp
ObjCPropertyChecker.cpp
ObjCSelfInitChecker.cpp [analyzer][NFC] Prefer using isa<> instead getAs<> in conditions 2022-06-15 16:58:13 +02:00
ObjCSuperDeallocChecker.cpp
ObjCUnusedIVarsChecker.cpp
PaddingChecker.cpp [analyzer] Fix calculating offset for fields with an empty type 2021-07-04 06:57:11 +03:00
PointerArithChecker.cpp
PointerIterationChecker.cpp
PointerSortingChecker.cpp
PointerSubChecker.cpp
PthreadLockChecker.cpp [analyzer] Clean checker options from bool to DefaultBool (NFC) 2022-04-23 14:47:29 -05:00
ReturnPointerRangeChecker.cpp [analyzer] Replace adjacent assumeInBound calls to assumeInBoundDual 2022-05-10 10:16:55 +02:00
ReturnUndefChecker.cpp
ReturnValueChecker.cpp Remove redundant string initialization (NFC) 2021-12-26 09:39:26 -08:00
RunLoopAutoreleaseLeakChecker.cpp
STLAlgorithmModeling.cpp [analyzer][NFC] Prefer using isa<> instead getAs<> in conditions 2022-06-15 16:58:13 +02:00
SimpleStreamChecker.cpp [analyzer][NFC] Remove dead code and modernize surroundings 2022-06-15 16:50:12 +02:00
SmartPtr.h [StaticAnalyzer] Remove redundant declaration isStdSmartPtr (NFC) 2021-12-25 00:35:41 -08:00
SmartPtrChecker.cpp
SmartPtrModeling.cpp [analyzer][NFC] Remove dead code and modernize surroundings 2022-06-15 16:50:12 +02:00
StackAddrEscapeChecker.cpp [analyzer] Clean checker options from bool to DefaultBool (NFC) 2022-04-23 14:47:29 -05:00
StdLibraryFunctionsChecker.cpp [clang][analyzer] Fix StdLibraryFunctionsChecker 'mkdir' return value. 2022-06-23 11:27:26 +02:00
StreamChecker.cpp [analyzer] Fix StreamErrorState hash bug 2022-06-15 16:50:12 +02:00
StringChecker.cpp [clang] Don't use Optional::hasValue (NFC) 2022-06-20 10:51:34 -07:00
Taint.cpp [Analyzer] Fix clang::ento::taint::dumpTaint definition 2022-05-02 17:44:06 +02:00
TaintTesterChecker.cpp [analyzer][NFC] Remove dead code and modernize surroundings 2022-06-15 16:50:12 +02:00
TestAfterDivZeroChecker.cpp
TraversalChecker.cpp
TrustNonnullChecker.cpp
TrustReturnsNonnullChecker.cpp [analyzer] Add support for __attribute__((returns_nonnull)). 2022-02-02 11:46:52 -08:00
UndefBranchChecker.cpp
UndefCapturedBlockVarChecker.cpp [analyzer] Change FindLastStoreBRVisitor to use Tracker 2021-06-11 12:49:03 +03:00
UndefResultChecker.cpp [analyzer] Replace adjacent assumeInBound calls to assumeInBoundDual 2022-05-10 10:16:55 +02:00
UndefinedArraySubscriptChecker.cpp
UndefinedAssignmentChecker.cpp
UnixAPIChecker.cpp Revert "Don't use Optional::hasValue (NFC)" 2022-06-25 11:56:50 -07:00
UnreachableCodeChecker.cpp
VLASizeChecker.cpp [analyzer][NFC] Prefer using isa<> instead getAs<> in conditions 2022-06-15 16:58:13 +02:00
ValistChecker.cpp [analyzer] Fix ValistChecker false-positive involving symbolic pointers 2022-04-26 08:49:05 +02:00
VforkChecker.cpp [clang][NFC] Inclusive terms: Replace uses of whitelist in clang/lib/StaticAnalyzer 2021-10-29 16:51:36 -04:00
VirtualCallChecker.cpp
Yaml.h [NFC] Fix endif comments to match with include guard 2022-01-07 15:52:59 +08:00