llvm-project/clang/lib/StaticAnalyzer/Checkers
Gabor Marton 536456a7e9 [analyzer] StdLibraryFunctionsChecker: Use platform dependent EOF and UCharMax
Summary:
Both EOF and the max value of unsigned char is platform dependent. In this
patch we try our best to deduce the value of EOF from the Preprocessor,
if we can't we fall back to -1.

Reviewers: Szelethus, NoQ

Subscribers: whisperity, xazax.hun, kristof.beyls, baloghadamsoftware, szepet, rnkovacs, a.sidorin, mikhail.ramalh

Tags: #clang

Differential Revision: https://reviews.llvm.org/D74473
2020-02-13 13:51:51 +01:00
..
MPI-Checker [analyzer] DynamicSize: Remove 'getSizeInElements()' from store 2020-01-30 16:51:48 +01:00
RetainCountChecker Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
UninitializedObject Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
AllocationState.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
AnalysisOrderChecker.cpp [analyzer] Escape symbols conjured into specific regions during a conservative EvalCall 2019-12-11 11:44:10 -08:00
AnalyzerStatsChecker.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
ArrayBoundChecker.cpp [analyzer] DynamicSize: Remove 'getSizeInElements()' from store 2020-01-30 16:51:48 +01:00
ArrayBoundCheckerV2.cpp [analyzer] DynamicSize: Remove 'getExtent()' from regions 2020-01-30 16:05:18 +01:00
BasicObjCFoundationChecks.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
BlockInCriticalSectionChecker.cpp BlockInCriticalSectionChecker - silence static analyzer dyn_cast null dereference warning. NFCI. 2019-10-13 11:30:06 +00:00
BoolAssignmentChecker.cpp [analyzer] Simplify BoolAssignmentChecker 2020-01-27 14:51:35 -04:00
BuiltinFunctionChecker.cpp [analyzer] DynamicSize: Remove 'getExtent()' from regions 2020-01-30 16:05:18 +01:00
CMakeLists.txt [Analyzer] Model STL Algoirthms to improve the iterator checkers 2020-02-05 17:59:08 +01:00
CStringChecker.cpp [analyzer] DynamicSize: Remove 'getExtent()' from regions 2020-01-30 16:05:18 +01:00
CStringSyntaxChecker.cpp [analyzer] Fix analyzer warnings on analyzer. 2019-08-28 18:44:38 +00:00
CXXSelfAssignmentChecker.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
CallAndMessageChecker.cpp [analyzer][NFC] Fix inconsistent references to checkers as "checks" 2019-09-12 19:09:24 +00:00
CastSizeChecker.cpp [analyzer] DynamicSize: Remove 'getExtent()' from regions 2020-01-30 16:05:18 +01:00
CastToStructChecker.cpp [analyzer] Supply all checkers with a shouldRegister function 2019-01-26 14:23:08 +00:00
CastValueChecker.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
CheckObjCDealloc.cpp [analyzer] NFC: Move PathDiagnostic classes to libAnalysis. 2019-09-11 20:54:27 +00:00
CheckObjCInstMethSignature.cpp [analyzer] NFC: Move PathDiagnostic classes to libAnalysis. 2019-09-11 20:54:27 +00:00
CheckPlacementNew.cpp [analyzer] DynamicSize: Remove 'getExtent()' from regions 2020-01-30 16:05:18 +01:00
CheckSecuritySyntaxOnly.cpp [analyzer] Add a syntactic security check for ObjC NSCoder API. 2019-12-19 14:54:29 -08:00
CheckSizeofPointer.cpp [analyzer] Supply all checkers with a shouldRegister function 2019-01-26 14:23:08 +00:00
CheckerDocumentation.cpp [analyzer] Fix a typo in docs 2019-01-29 10:15:52 +00:00
ChrootChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
CloneChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
ContainerModeling.cpp [Analyzer] Split container modeling from iterator modeling 2020-01-29 16:10:45 +01:00
ConversionChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
DeadStoresChecker.cpp [analyzer] Add minimal support for fix-it hints. 2019-09-06 20:55:29 +00:00
DebugCheckers.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
DebugContainerModeling.cpp [Analyzer] Split container modeling from iterator modeling 2020-01-29 16:10:45 +01:00
DebugIteratorModeling.cpp [Analyzer] Split container modeling from iterator modeling 2020-01-29 16:10:45 +01:00
DeleteWithNonVirtualDtorChecker.cpp [analyzer][NFC] Fix inconsistent references to checkers as "checks" 2019-09-12 19:09:24 +00:00
DereferenceChecker.cpp Add `QualType::hasAddressSpace`. NFC. 2019-12-06 13:08:55 -05:00
DirectIvarAssignment.cpp Redeclare Objective-C property accessors inside the ObjCImplDecl in which they are synthesized. 2019-11-08 08:23:22 -08:00
DivZeroChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
DynamicTypeChecker.cpp [analyzer] NFC: Move getStmt() and createEndOfPath() out of PathDiagnostic. 2019-09-11 20:54:21 +00:00
DynamicTypePropagation.cpp [analyzer] NFC: Move getStmt() and createEndOfPath() out of PathDiagnostic. 2019-09-11 20:54:21 +00:00
EnumCastOutOfRangeChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
ExprInspectionChecker.cpp [analyzer] DynamicSize: Remove 'getExtent()' from regions 2020-01-30 16:05:18 +01:00
FixedAddressChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
FuchsiaHandleChecker.cpp [analyzer] Fix handle leak false positive when the handle dies too early 2020-01-27 09:52:06 -08:00
GCDAntipatternChecker.cpp Use C++14-style return type deduction in clang. 2020-02-11 14:41:22 -08:00
GTestChecker.cpp [analyzer] Supply all checkers with a shouldRegister function 2019-01-26 14:23:08 +00:00
GenericTaintChecker.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
IdenticalExprChecker.cpp Fix parameter name comments using clang-tidy. NFC. 2019-07-16 04:46:31 +00:00
InnerPointerChecker.cpp [Analyzer] Use a reference in a range-based for 2019-12-21 14:52:29 +01:00
InterCheckerAPI.h [analyzer] Reimplement dependencies between checkers 2019-01-26 20:06:54 +00:00
InvalidatedIteratorChecker.cpp [Analyzer][NFC] Iterator Checkers - Separate iterator modeling and the actual checkers 2019-12-11 13:06:19 +01:00
Iterator.cpp [Analyzer] Model STL Algoirthms to improve the iterator checkers 2020-02-05 17:59:08 +01:00
Iterator.h [Analyzer] Model STL Algoirthms to improve the iterator checkers 2020-02-05 17:59:08 +01:00
IteratorModeling.cpp [Analyzer] Model STL Algoirthms to improve the iterator checkers 2020-02-05 17:59:08 +01:00
IteratorRangeChecker.cpp [Analyzer][NFC] Iterator Checkers - Separate iterator modeling and the actual checkers 2019-12-11 13:06:19 +01:00
IvarInvalidationChecker.cpp [analyzer][NFC] Fix inconsistent references to checkers as "checks" 2019-09-12 19:09:24 +00:00
LLVMConventionsChecker.cpp [analyzer] Supply all checkers with a shouldRegister function 2019-01-26 14:23:08 +00:00
LocalizationChecker.cpp [analyzer] LocalizationChecker: Fix a crash on synthesized accessor stubs. 2019-12-11 11:22:36 -08:00
MIGChecker.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
MacOSKeychainAPIChecker.cpp [NFCI] Return PathSensitiveBugReport where appropriate 2019-09-23 22:24:47 +00:00
MacOSXAPIChecker.cpp Remove Expr.h include from ASTContext.h, NFC 2019-12-06 15:30:49 -08:00
MallocChecker.cpp [analyzer] DynamicSize: Remove 'getExtent()' from regions 2020-01-30 16:05:18 +01:00
MallocOverflowSecurityChecker.cpp [analyzer] Supply all checkers with a shouldRegister function 2019-01-26 14:23:08 +00:00
MallocSizeofChecker.cpp [analyzer] Fix analyzer warnings on analyzer. 2019-08-28 18:44:38 +00:00
MismatchedIteratorChecker.cpp [Analyzer][NFC] Iterator Checkers - Separate iterator modeling and the actual checkers 2019-12-11 13:06:19 +01:00
MmapWriteExecChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
Move.h [analyzer] PR41269: Add a bit of C++ smart pointer modeling. 2019-04-23 02:45:42 +00:00
MoveChecker.cpp [NFC] Fixes -Wrange-loop-analysis warnings 2020-01-01 20:01:37 +01:00
NSAutoreleasePoolChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
NSErrorChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
NoReturnFunctionChecker.cpp [analyzer] Supply all checkers with a shouldRegister function 2019-01-26 14:23:08 +00:00
NonNullParamChecker.cpp [NFCI] Return PathSensitiveBugReport where appropriate 2019-09-23 22:24:47 +00:00
NonnullGlobalConstantsChecker.cpp [analyzer] NonnullGlobalConstants: Add support for kCFNull. 2019-12-18 12:08:15 -08:00
NullabilityChecker.cpp [analyzer] Nullability: Don't infer nullable when passing as nullable parameter. 2019-11-08 18:27:14 -08:00
NumberObjectConversionChecker.cpp [analyzer] Remove the default value arg from getChecker*Option 2019-05-17 15:52:13 +00:00
OSObjectCStyleCast.cpp Use C++14-style return type deduction in clang. 2020-02-11 14:41:22 -08:00
ObjCAtSyncChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
ObjCAutoreleaseWriteChecker.cpp Use C++14-style return type deduction in clang. 2020-02-11 14:41:22 -08:00
ObjCContainersASTChecker.cpp [analyzer] Supply all checkers with a shouldRegister function 2019-01-26 14:23:08 +00:00
ObjCContainersChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
ObjCMissingSuperCallChecker.cpp [analyzer] NFC: Move PathDiagnostic classes to libAnalysis. 2019-09-11 20:54:27 +00:00
ObjCPropertyChecker.cpp [analyzer] Supply all checkers with a shouldRegister function 2019-01-26 14:23:08 +00:00
ObjCSelfInitChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
ObjCSuperDeallocChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
ObjCUnusedIVarsChecker.cpp [analyzer] NFC: Move PathDiagnostic classes to libAnalysis. 2019-09-11 20:54:27 +00:00
PaddingChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
PointerArithChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
PointerIterationChecker.cpp [Analyzer] Checker for non-determinism caused by iteration of unordered container of pointers 2019-05-24 19:24:08 +00:00
PointerSortingChecker.cpp Use C++14-style return type deduction in clang. 2020-02-11 14:41:22 -08:00
PointerSubChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
PthreadLockChecker.cpp [analyzer] Move fuchsia.Lock checker to alpha 2020-02-05 16:11:06 -08:00
ReturnPointerRangeChecker.cpp [analyzer] DynamicSize: Remove 'getSizeInElements()' from store 2020-01-30 16:51:48 +01:00
ReturnUndefChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
ReturnValueChecker.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
RunLoopAutoreleaseLeakChecker.cpp Fix parameter name comments using clang-tidy. NFC. 2019-07-16 04:46:31 +00:00
STLAlgorithmModeling.cpp [Analyzer] Model STL Algoirthms to improve the iterator checkers 2020-02-05 17:59:08 +01:00
SimpleStreamChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
SmartPtrModeling.cpp [analyzer] NFC: Change evalCall() to provide a CallEvent. 2019-06-19 23:33:42 +00:00
StackAddrEscapeChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
StdLibraryFunctionsChecker.cpp [analyzer] StdLibraryFunctionsChecker: Use platform dependent EOF and UCharMax 2020-02-13 13:51:51 +01:00
StreamChecker.cpp [analyzer]StreamChecker refactoring (NFC). 2020-02-12 12:50:49 +01:00
Taint.cpp [analyzer] Add custom filter functions for GenericTaintChecker 2019-11-23 20:12:15 +01:00
Taint.h [analyzer] Add custom filter functions for GenericTaintChecker 2019-11-23 20:12:15 +01:00
TaintTesterChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
TestAfterDivZeroChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
TraversalChecker.cpp [analyzer] Supply all checkers with a shouldRegister function 2019-01-26 14:23:08 +00:00
TrustNonnullChecker.cpp Fix parameter name comments using clang-tidy. NFC. 2019-07-16 04:46:31 +00:00
UndefBranchChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
UndefCapturedBlockVarChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
UndefResultChecker.cpp [analyzer] DynamicSize: Remove 'getSizeInElements()' from store 2020-01-30 16:51:48 +01:00
UndefinedArraySubscriptChecker.cpp [analyzer][NFC] Fix inconsistent references to checkers as "checks" 2019-09-12 19:09:24 +00:00
UndefinedAssignmentChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
UnixAPIChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
UnreachableCodeChecker.cpp [analyzer][NFC] Refactoring BugReporter.cpp P4.: If it can be const, make it const 2019-08-13 18:48:08 +00:00
VLASizeChecker.cpp [analyzer] DynamicSize: Remove 'getExtent()' from regions 2020-01-30 16:05:18 +01:00
ValistChecker.cpp [analyzer][NFC] Fix inconsistent references to checkers as "checks" 2019-09-12 19:09:24 +00:00
VforkChecker.cpp [analyzer] NFC: Introduce sub-classes for path-sensitive and basic reports. 2019-09-09 20:34:40 +00:00
VirtualCallChecker.cpp Remove Expr.h include from ASTContext.h, NFC 2019-12-06 15:30:49 -08:00
Yaml.h Remove +x permission on some files 2019-11-16 14:47:20 +01:00