| Summary: | Selection expansion on arguments inside macro function call expands to the call | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Marc-André Laperle <malaperle> |
| Component: | cdt-editor | Assignee: | Project Inbox <cdt-editor-inbox> |
| Status: | NEW --- | QA Contact: | Jonah Graham <jonah> |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdtdoug, yevshif |
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Not sure if related but I also noticed that macro expansion hover presents outer macro for nested macro expressions when pointed to inner one. If I point mouse cursor to INNER_MACRO trying to see its value it will show OUTER_MACRO expansion instead: int x = OUTER_MACRO(INNER_MACRO); |
Example: #define Foo(a) bar(a) int main() { int test; Foo(test); return 0; } Place cursor in the middle of the second 'test', expand (Alt+shift+up). 'Foo(test)' is selected instead of 'test'.