Skip to content
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

Function template arguments are not shown #501

Closed
leg0 opened this issue Aug 31, 2022 · 1 comment
Closed

Function template arguments are not shown #501

leg0 opened this issue Aug 31, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@leg0
Copy link

leg0 commented Aug 31, 2022

Given this code:

#include <utility>
static int s1;
static int s2;
std::pair<int const&, int const&> fun() { return std::make_pair(s1, s2);
}

The output is

#include <utility>

static int s1;
static int s2;

std::pair<const int &, const int &> fun()
{
  return std::pair<const int &, const int &>(std::make_pair(s1, s2));
}

But I expected to see:

#include <utility>

static int s1;
static int s2;

std::pair<const int &, const int &> fun()
{
  return std::pair<const int &, const int &>(std::make_pair<int, int>(s1, s2));
}
@andreasfertig
Copy link
Owner

Hello @leg0,

thanks for spotting and reporting this issue! I will look into it. I assume that the CallExpr does not consider the template arguments.

Andreas

@andreasfertig andreasfertig added the bug Something isn't working label Sep 2, 2022
andreasfertig added a commit that referenced this issue Sep 26, 2023
Fixed #501: Added a dedicated option to show all `CallExpr` template parameters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants