-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Add support for SourceLocExpr
#598
Comments
Hello @Ukilele, thanks for bringing this up. I don't understand what role I'm a bit reluctant to implement this transformation. Getting the correct information from Andreas |
Hi Andreas, I just brought up std::source_location::current(/* INSIGHTS-TODO: CodeGenerator.cpp:3851 stmt: SourceLocExpr */) I agree that it definitely is no urgent or important issue. |
Hello @Ukilele, usually I appreciate reduced issue reports, as I did here. Yet, your new Andreas |
Fixed #598: Added basic support for `SourceLocExpr`.
Awesome, that was quick :) Thanks a lot 👍 |
The following input:
auto X = __builtin_LINE();
generates following output:
According to https://docs.hdoc.io/hdoc/llvm-project/r728584FDD0102CEF.html the class
SourceLocExpr
represents a function call to one of__builtin_LINE()
,__builtin_COLUMN()
,__builtin_FUNCTION()
,__builtin_FILE()
, or__builtin_source_location()
.Especially with the C++20 std::source_location it would be neat if cppinsights would support this.
Best regards!
The text was updated successfully, but these errors were encountered: