[all-commits] [llvm/llvm-project] 265568: [clang-cl] Fix value of __FUNCTION__ and __FUNC__ ...
Zahira Ammarguellat via All-commits
all-commits at lists.llvm.org
Fri Sep 22 05:46:06 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 265568c136f94b108790e9be73cd8071e714aad1
https://github.com/llvm/llvm-project/commit/265568c136f94b108790e9be73cd8071e714aad1
Author: Zahira Ammarguellat <zahira.ammarguellat at intel.com>
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M clang/include/clang/AST/PrettyPrinter.h
M clang/lib/AST/Expr.cpp
M clang/lib/AST/TypePrinter.cpp
M clang/test/AST/Interp/literals.cpp
M clang/test/Analysis/eval-predefined-exprs.cpp
M clang/test/CodeGenCXX/predefined-expr.cpp
M clang/test/SemaCXX/source_location.cpp
Log Message:
-----------
[clang-cl] Fix value of __FUNCTION__ and __FUNC__ in MSVC mode for c++. (#66120)
Predefined macro FUNCTION (and __FUNC__) in clang is not returning the
same string than MS for templated functions.
See https://godbolt.org/z/88n1rGs3b
For this test case MSVC is returning:
function: TestClass<class UnitTestNative>::TestClass
func: TestClass
---------
Co-authored-by: Reid Kleckner <rnk at google.com>
More information about the All-commits
mailing list