Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Hover over variable (esp. a constant) could show its initial value #260

Closed
HighCommander4 opened this issue Jan 7, 2018 · 3 comments
Closed

Comments

@HighCommander4
Copy link
Contributor

In the following code:

#include <iostream>
constexpr int ANSWER = 42;
int main() {
  std::cout << ANSWER;
}

hovering over the use of ANSWER in main() shows const int ANSWER. It would be useful if the hover also included the value.

MaskRay added a commit that referenced this issue Jan 8, 2018
…qualified types. Qualified names may also be useful but they can not be easily combined.

See #260
@MaskRay
Copy link
Contributor

MaskRay commented Jan 8, 2018

It now displays constexpr int ANSWER = 42; for literal const-qualified types (it will not expand type aliases)

@MaskRay
Copy link
Contributor

MaskRay commented Jan 17, 2018

Enumerators are now shown as Foo::A = 0

@MaskRay
Copy link
Contributor

MaskRay commented Jan 17, 2018

Closed via 64f0058 3d3e01e

@MaskRay MaskRay closed this as completed Jan 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants