[all-commits] [llvm/llvm-project] 703a1b: [analyzer][MallocChecker][NFC] Split checkPostCall...

Louis Dionne via All-commits all-commits at lists.llvm.org
Mon Mar 30 07:02:10 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 703a1b8caf09a5262a45c2179b8131922f71cf25
      https://github.com/llvm/llvm-project/commit/703a1b8caf09a5262a45c2179b8131922f71cf25
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-03-30 (Mon, 30 Mar 2020)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp

  Log Message:
  -----------
  [analyzer][MallocChecker][NFC] Split checkPostCall up, deploy CallDescriptionMap

Since its important to know whether a function frees memory (even if its a
reallocating function!), I used two CallDescriptionMaps to merge all
CallDescriptions into it. MemFunctionInfoTy no longer makes sense, it may never
have, but for now, it would be more of a distraction then anything else.

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




More information about the All-commits mailing list