[all-commits] [llvm/llvm-project] d56a1c: [clang][analyzer] Errno modeling code refactor (NFC).

Balázs Kéri via All-commits all-commits at lists.llvm.org
Thu Sep 1 00:07:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d56a1c68247751e94c4fc46dda282643d3739689
      https://github.com/llvm/llvm-project/commit/d56a1c68247751e94c4fc46dda282643d3739689
  Author: Balázs Kéri <1.int32 at gmail.com>
  Date:   2022-09-01 (Thu, 01 Sep 2022)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/ErrnoModeling.cpp
    M clang/lib/StaticAnalyzer/Checkers/ErrnoModeling.h
    M clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp

  Log Message:
  -----------
  [clang][analyzer] Errno modeling code refactor (NFC).

Some of the code used in StdLibraryFunctionsChecker is applicable to
other checkers, this is put into common functions. Errno related
parts of the checker are simplified and renamed. Documentations in
errno_modeling functions are updated.

This change makes it available to have more checkers that perform
modeling of some standard functions. These can set the errno state
with common functions and the bug report messages (note tags) can
look similar.

Reviewed By: steakhal, martong

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




More information about the All-commits mailing list