[all-commits] [llvm/llvm-project] f0c90d: Rename 'free' in warning messages to 'release' (#1...

Baghirov Feyruz via All-commits all-commits at lists.llvm.org
Mon Jul 28 09:03:18 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0c90dfcd8f2b641c17db578bdfeb9b02994e06b
      https://github.com/llvm/llvm-project/commit/f0c90dfcd8f2b641c17db578bdfeb9b02994e06b
  Author: Baghirov Feyruz <113597150+feyruzb at users.noreply.github.com>
  Date:   2025-07-28 (Mon, 28 Jul 2025)

  Changed paths:
    M clang-tools-extra/test/clang-tidy/infrastructure/static-analyzer-config.cpp
    M clang-tools-extra/test/clang-tidy/infrastructure/static-analyzer.cpp
    M clang/docs/analyzer/checkers/unix_malloc_example.c
    M clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
    M clang/test/Analysis/Inputs/expected-plists/NewDelete-path-notes.cpp.plist
    M clang/test/Analysis/Inputs/expected-plists/malloc-plist.c.plist
    M clang/test/Analysis/Inputs/overloaded-delete-in-header.h
    M clang/test/Analysis/Malloc+MismatchedDeallocator+NewDelete.cpp
    M clang/test/Analysis/NewDelete-checker-test.cpp
    M clang/test/Analysis/NewDelete-intersections.mm
    M clang/test/Analysis/NewDelete-path-notes.cpp
    M clang/test/Analysis/diagnostics/dtors.cpp
    M clang/test/Analysis/dtor.cpp
    M clang/test/Analysis/getline-alloc.c
    M clang/test/Analysis/gmalloc.c
    M clang/test/Analysis/malloc-annotations.c
    M clang/test/Analysis/malloc-annotations.cpp
    M clang/test/Analysis/malloc-free-after-return.cpp
    M clang/test/Analysis/malloc-interprocedural.c
    M clang/test/Analysis/malloc-plist.c
    M clang/test/Analysis/malloc-refcounted.c
    M clang/test/Analysis/malloc.c
    M clang/test/Analysis/malloc.mm
    M clang/test/Analysis/new.cpp
    M clang/test/Analysis/retain-count-alloc.cpp
    M clang/test/Analysis/self-assign.cpp
    M clang/test/Analysis/stack-frame-context-revision.cpp
    M clang/test/Analysis/std-string.cpp

  Log Message:
  -----------
  Rename 'free' in warning messages to 'release' (#150935)

Changed the warning message:

- **From**: 'Attempt to free released memory'
   **To**: 'Attempt to release already released memory'
- **From**: 'Attempt to free non-owned memory'
   **To**: 'Attempt to release non-owned memory'
- **From**: 'Use of memory after it is freed' 
   **To**: 'Use of memory after it is released'

All connected tests and their expectations have been changed
accordingly.

Inspired by [this
PR](https://github.com/llvm/llvm-project/pull/147542#discussion_r2195197922)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list