-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<source_location>
: Use __builtin_FUNCSIG
when Clang 17 is available
#3729
Comments
I'm wondering why we can't have both the simple function name as well as the full signature. Alternatively: How would I best go about extending/modifying this to my needs? (not only on clang) |
You can always just copy the definition of source_location and customize it to your needs. |
Maybe it's only available in MSVC mode? Yeah (IIRC this is rc4):
|
Oh thanks - I deleted my comments because I had gotten very confused about what I was seeing on Compiler Explorer. |
I'm more confused that Intellisense shows I did indeed have to adapt std::source_location to include what I need (i.e. the simple function name) |
IntelliSense is powered by a different compiler front-end (EDG). MSVC's "C1XX" front-end is what's used by |
I've implemented
__builtin_FUNCSIG
in Clang recently (llvm/llvm-project@78d8312):We should use this builtin in
source_location
implementation after VS gets Clang 17:STL/stl/inc/source_location
Lines 28 to 32 in a621095
Comparison:
The text was updated successfully, but these errors were encountered: