[all-commits] [llvm/llvm-project] da69eb: [NFC] [ASTMatchers] Share code of `forEachArgument...

Ilya Biryukov via All-commits all-commits at lists.llvm.org
Fri Apr 4 05:35:37 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: da69eb75cbc634a56886e94de3e546c63c17567e
      https://github.com/llvm/llvm-project/commit/da69eb75cbc634a56886e94de3e546c63c17567e
  Author: Ilya Biryukov <ibiryukov at google.com>
  Date:   2025-04-04 (Fri, 04 Apr 2025)

  Changed paths:
    M clang/include/clang/ASTMatchers/ASTMatchers.h
    A clang/include/clang/ASTMatchers/LowLevelHelpers.h
    M clang/lib/ASTMatchers/CMakeLists.txt
    A clang/lib/ASTMatchers/LowLevelHelpers.cpp
    M clang/lib/Analysis/UnsafeBufferUsage.cpp

  Log Message:
  -----------
  [NFC] [ASTMatchers] Share code of `forEachArgumentWithParamType` with UnsafeBufferUsage (#132387)

This changes exposes a low-level helper that is used to implement
`forEachArgumentWithParamType` but can also be used without matchers,
e.g. if performance is a concern.

Commit f5ee10538b68835112323c241ca7db67ca78bf62 introduced a copy of the
implementation of the `forEachArgumentWithParamType` matcher that was
needed for optimizing performance of `-Wunsafe-buffer-usage`.

This change shares the code between the two so that we do not repeat
ourselves and any bugfixes or changes will be picked up by both
implementations in the future.



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