[all-commits] [llvm/llvm-project] f887cb: [NFC][clang] Fix static analyzer concerns

Mariya Podchishchaeva via All-commits all-commits at lists.llvm.org
Thu Aug 3 08:37:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f887cb10acc9fb21e389703062398adf1331232f
      https://github.com/llvm/llvm-project/commit/f887cb10acc9fb21e389703062398adf1331232f
  Author: Podchishchaeva, Mariya <mariya.podchishchaeva at intel.com>
  Date:   2023-08-03 (Thu, 03 Aug 2023)

  Changed paths:
    M clang/include/clang/Tooling/Tooling.h

  Log Message:
  -----------
  [NFC][clang] Fix static analyzer concerns

ToolInvocation frees resources in the destructor but doesn't
have user-written copy c'tor or assignment operator, so copying it using
default ones can cause double free.

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list