llvm-capstone/clang/lib
Gabor Marton bd9e23943a [analyzer] Expand conversion check to check more expressions for overflow and underflow
This expands checking for more expressions. This will check underflow
and loss of precision when using call expressions like:

  void foo(unsigned);
  int i = -1;
  foo(i);

This also includes other expressions as well, so it can catch negative
indices to std::vector since it uses unsigned integers for [] and .at()
function.

Patch by: @pfultz2

Differential Revision: https://reviews.llvm.org/D46081
2021-12-15 11:41:34 +01:00
..
Analysis Revert "Revert "[clang][dataflow] Add framework for testing analyses."" 2021-12-11 23:16:59 +00:00
APINotes [clang][APINotes] Fix -Wunused-function warning (NFC) 2021-04-01 09:52:43 +08:00
ARCMigrate Revert "Revert "Use VersionTuple for parsing versions in Triple, fixing issues that caused the original change to be reverted. This makes it possible to distinguish between "16" and "16.0" after parsing, which previously was not possible."" 2021-12-07 23:15:21 +00:00
AST [AST] Remove an unnecessary continue (NFC) 2021-12-11 23:04:08 -08:00
ASTMatchers [NFC][clang] Return underlying strings directly instead of OS.str() 2021-12-09 16:05:46 -08:00
Basic [AArch64][SVE][NEON] Add NEON-SVE-Bridge intrinsics 2021-12-13 11:31:57 +00:00
CodeGen [CodeGen] Avoid some uses of deprecated Address constructor 2021-12-15 11:13:10 +01:00
CrossTU PR51018: Remove explicit conversions from SmallString to StringRef to future-proof against C++23 2021-07-08 13:37:57 -07:00
DirectoryWatcher [clang] [DirectoryWatcher] Remove leading \\?\ from GetFinalPathNameByHandleW 2021-11-08 22:21:30 +02:00
Driver [HIPSPV][2/4] Add HIPSPV tool chain 2021-12-14 10:22:38 -08:00
Edit [clang] Use llvm::is_contained (NFC) 2021-10-13 20:41:55 -07:00
Format [clang-format] FixNamespaceComments does not understand namespace aliases 2021-12-14 14:53:04 +00:00
Frontend [NFC][clang] Return underlying strings directly instead of OS.str() 2021-12-09 16:05:46 -08:00
FrontendTool [clang] Add plugin ActionType to run command line plugin before main action 2021-10-20 08:58:20 -07:00
Headers [gn build] Make arm_neon_sve_bridge.h header auto-syncable 2021-12-13 07:04:45 -05:00
Index [clang] Visit enum base specifiers in libIndex 2021-10-25 13:16:14 +02:00
IndexSerialization
Interpreter [clang-repl] Allow Interpreter::getSymbolAddress to take a mangled name. 2021-11-10 12:52:05 +00:00
Lex [C++20] [Module] Support extern C/C++ semantics 2021-12-08 13:29:16 +08:00
Parse Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
Rewrite [NFC][clang] Return underlying strings directly instead of OS.str() 2021-12-09 16:05:46 -08:00
Sema [clang] diagnose_as_builtin attribute for Fortify diagnosing like builtins. 2021-12-14 19:42:23 +00:00
Serialization [C++20] [Modules] [Concepts] Recognize same concepts more precisely in Serialization 2021-12-08 15:00:04 +08:00
StaticAnalyzer [analyzer] Expand conversion check to check more expressions for overflow and underflow 2021-12-15 11:41:34 +01:00
Testing
Tooling [Clang][ScanDeps] Use the virtual path for module maps 2021-12-14 11:21:42 -07:00
CMakeLists.txt [clang-repl] Recommit "Land initial infrastructure for incremental parsing" 2021-05-13 06:30:29 +00:00