Open guyutongxue opened 1 week ago
__PRETTY_FUNCTION__
is a g++/clang++ language extension and our compiler doesn't support that currently. A similar issue is https://github.com/microsoft/vscode-cpptools/issues/9968 .
Actually, it looks like our compiler does have support for this, so we need to investigate why it isn't working as expected.
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
In GCC/Clang, C++20
std::source_location::function_name
expands to__PRETTY_FUNCTION__
, that includes parameter type, template arguments and return type etc. But C/C++ extension just contains function name, i.e.__func__
.Steps to reproduce:
Expected behavior:
All above
static_assert
s should succeeded instead of failed. GodboltConfiguration and Logs
c_cpp_properties.json
:C/C++ diagnostic logs:
Language Server Log
Other Extensions
N/A
Additional context
No response