[all-commits] [llvm/llvm-project] d835dd: [analyzer] Produce SymbolCast symbols for integral...

Denys Petrov via All-commits all-commits at lists.llvm.org
Tue Jan 18 06:08:19 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d835dd4cf5cc32bcc983c23eda60f7b016118dd3
      https://github.com/llvm/llvm-project/commit/d835dd4cf5cc32bcc983c23eda60f7b016118dd3
  Author: Denys Petrov <dpetrov at accesssoftek.com>
  Date:   2022-01-18 (Tue, 18 Jan 2022)

  Changed paths:
    M clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.def
    M clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h
    M clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
    M clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
    M clang/test/Analysis/analyzer-config.c
    A clang/test/Analysis/produce-symbolcast_x64.cpp
    A clang/test/Analysis/produce-symbolcast_x86.cpp

  Log Message:
  -----------
  [analyzer] Produce SymbolCast symbols for integral types in SValBuilder::evalCast

Summary: Produce SymbolCast for integral types in `evalCast` function. Apply several simplification techniques while producing the symbols. Added a boolean option `handle-integral-cast-for-ranges` under `-analyzer-config` flag. Disabled the feature by default.

Differential Revision: https://reviews.llvm.org/D105340




More information about the All-commits mailing list