llvm-project/clang/lib/StaticAnalyzer/Core
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
..
APSIntType.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
AnalysisManager.cpp [analyzer] CheckerContext: Make the Preprocessor available 2020-01-30 17:05:52 +01:00
AnalyzerOptions.cpp [analyzer] Analysis: Silence checkers 2019-08-16 01:53:14 +00:00
BasicValueFactory.cpp [cxx2a] P1236R1: the validity of a left shift does not depend on the 2019-06-25 01:45:26 +00:00
BlockCounter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
BugReporter.cpp [analyzer] Assign truly stable identifiers to exploded nodes. 2019-10-17 23:10:09 +00:00
BugReporterVisitors.cpp [analyzer] DynamicSize: Remove 'getExtent()' from regions 2020-01-30 16:05:18 +01:00
CMakeLists.txt [analyzer] DynamicSize: Remove 'getExtent()' from regions 2020-01-30 16:05:18 +01:00
CallEvent.cpp Remove Expr.h include from ASTContext.h, NFC 2019-12-06 15:30:49 -08:00
Checker.cpp [analyzer][NFC] Fix inconsistent references to checkers as "checks" 2019-09-12 19:09:24 +00:00
CheckerContext.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CheckerHelpers.cpp [analyzer] StdLibraryFunctionsChecker: Use platform dependent EOF and UCharMax 2020-02-13 13:51:51 +01:00
CheckerManager.cpp [Analyzer] Use a reference in a range-based for 2019-11-12 20:53:08 +01:00
CommonBugCategories.cpp [analyzer] Improve VirtualCallChecker and enable parts of it by default. 2019-08-20 21:41:14 +00:00
ConstraintManager.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CoreEngine.cpp [analyzer] Fix clang-tidy crash on GCCAsmStmt 2019-06-27 22:46:40 +00:00
DynamicSize.cpp [analyzer] DynamicSize: Remove 'getSizeInElements()' from store 2020-01-30 16:51:48 +01:00
DynamicType.cpp [analyzer] CastValueChecker: Provide DynamicTypeMap with pointer types only. 2019-08-23 03:24:01 +00:00
Environment.cpp [analyzer] pr43036: Fix support for operator 'sizeof...'. 2019-08-28 18:44:35 +00:00
ExplodedGraph.cpp [analyzer] Assign truly stable identifiers to exploded nodes. 2019-10-17 23:10:09 +00:00
ExprEngine.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
ExprEngineC.cpp [analyzer] Escape symbols conjured into specific regions during a conservative EvalCall 2019-12-11 11:44:10 -08:00
ExprEngineCXX.cpp [NFC] Refactor representation of materialized temporaries 2019-11-19 18:20:45 +01:00
ExprEngineCallAndReturn.cpp [analyzer] Escape symbols conjured into specific regions during a conservative EvalCall 2019-12-11 11:44:10 -08:00
ExprEngineObjC.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FunctionSummary.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
HTMLDiagnostics.cpp [analyzer] Fix a couple of bugs in HTML report generation. 2020-02-05 17:16:38 +03:00
IssueHash.cpp Make SourceManager::createFileID(UnownedTag, ...) take a const llvm::MemoryBuffer* 2019-04-04 21:06:41 +00:00
LoopUnrolling.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
LoopWidening.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MemRegion.cpp [analyzer] DynamicSize: Remove 'getExtent()' from regions 2020-01-30 16:05:18 +01:00
PlistDiagnostics.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
PrettyStackTraceLocationContext.h [analyzer] print() JSONify: Environment implementation 2019-05-29 15:36:58 +00:00
ProgramState.cpp Revert "[analyzer] Keep track of escaped locals" 2019-12-10 16:42:03 -08:00
RangeConstraintManager.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
RangedConstraintManager.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RegionStore.cpp [analyzer] DynamicSize: Remove 'getSizeInElements()' from store 2020-01-30 16:51:48 +01:00
SMTConstraintManager.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
SValBuilder.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SVals.cpp [analyzer] print() JSONify: SVal implementation 2019-05-29 18:38:52 +00:00
SarifDiagnostics.cpp [clang] Replace SmallStr.str().str() with std::string conversion operator. 2020-01-29 21:27:46 -08:00
SimpleConstraintManager.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SimpleSValBuilder.cpp Fix parameter name comments using clang-tidy. NFC. 2019-07-16 04:46:31 +00:00
Store.cpp [analysis] Re-discard type sugar when casting values retrieved from the Store. 2019-12-18 18:00:57 -08:00
SubEngine.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SymbolManager.cpp [analyzer] DynamicSize: Remove 'getExtent()' from regions 2020-01-30 16:05:18 +01:00
WorkList.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00