[all-commits] [llvm/llvm-project] a36498: [analyzer][NFC] Use `SValVisitor` instead of expli...

Denys Petrov via All-commits all-commits at lists.llvm.org
Tue Jul 19 13:10:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a364987368a1c586088c62eb7cffcdef0f4ee852
      https://github.com/llvm/llvm-project/commit/a364987368a1c586088c62eb7cffcdef0f4ee852
  Author: Denys Petrov <dpetrov at accesssoftek.com>
  Date:   2022-07-19 (Tue, 19 Jul 2022)

  Changed paths:
    M clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h
    M clang/lib/StaticAnalyzer/Core/SValBuilder.cpp

  Log Message:
  -----------
  [analyzer][NFC] Use `SValVisitor` instead of explicit helper functions

Summary: Get rid of explicit function splitting in favor of specifically designed Visitor. Move logic from a family of `evalCastKind` and `evalCastSubKind` helper functions to `SValVisitor`.

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




More information about the All-commits mailing list