[all-commits] [llvm/llvm-project] 735897: [CLANG-CL] Remove the 'static' specifier for _FUNC...

Zahira Ammarguellat via All-commits all-commits at lists.llvm.org
Thu Mar 6 04:52:07 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7358973df1b53785cace2e3431d141078dc53e7c
      https://github.com/llvm/llvm-project/commit/7358973df1b53785cace2e3431d141078dc53e7c
  Author: Zahira Ammarguellat <zahira.ammarguellat at intel.com>
  Date:   2025-03-06 (Thu, 06 Mar 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/Expr.cpp
    M clang/test/SemaCXX/source_location.cpp

  Log Message:
  -----------
  [CLANG-CL] Remove the 'static' specifier for _FUNCTION_ in MSVC mode. (#128184)

The macro `FUNCTION` is returning the `static` specifier for static
templated functions. It's not the case for MSVC.
See https://godbolt.org/z/KnhWhqs47
Clang-cl is returning:
`__FUNCTION__ static inner::C<class A>::f`
`__FUNCTION__ static inner::C<class A>::f`
for the reproducer.



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