Unverified Commit 6503b015 authored by Zahira Ammarguellat's avatar Zahira Ammarguellat Committed by GitHub
Browse files

[clang-cl] Fix value of __FUNCTION__ in MSVC mode. (#84014)

Predefined macro FUNCTION in clang is not returning the same string than
MS for templated functions.

See https://godbolt.org/z/q3EKn5zq4

For the same test case MSVC is returning:

function: TestClass::TestClass
function: TestStruct::TestStruct
function: TestEnum::TestEnum

The initial work for this was in the reverted patch
(https://github.com/llvm/llvm-project/pull/66120). This patch solves the
issues raised in the reverted patch.
parent 6872a646
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment