[all-commits] [llvm/llvm-project] 0a1f0a: [clang][Analysis] Add argument accessors to clang:...

PushkarSingh via All-commits all-commits at lists.llvm.org
Fri Jul 31 05:07:14 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a1f0aafed6dfce910e18090bfd408838b9a727a
      https://github.com/llvm/llvm-project/commit/0a1f0aafed6dfce910e18090bfd408838b9a727a
  Author: PushkarSingh <149073046+iitianpushkar at users.noreply.github.com>
  Date:   2026-07-31 (Fri, 31 Jul 2026)

  Changed paths:
    M clang/include/clang/Analysis/AnyCall.h
    A clang/unittests/Analysis/AnyCallTest.cpp
    M clang/unittests/Analysis/CMakeLists.txt

  Log Message:
  -----------
  [clang][Analysis] Add argument accessors to clang::AnyCall (#212934)

Add APIs to `clang::AnyCall` for accessing expression-backed call
arguments.

`AnyCall` already exposes formal parameters through `parameters()`,
`param_begin()`, `param_end()`, `param_size()`, and `param_empty()`.
This adds the corresponding argument-side helpers:

- `arguments()`
- `arg_begin()`
- `arg_end()`
- `arg_size()`
- `arg_empty()`
- `getArg()`

This lets clients reuse `AnyCall` for callee/argument inspection instead
of
open-coding argument extraction.

Prequel PR to #206337



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