mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
[GH-ISSUE #295] Asist++ doesn't handle variables in class that are out of order #93
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ultimatepp#93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @klugier on GitHub (Aug 24, 2025).
Original GitHub issue: https://github.com/ultimatepp/ultimatepp/issues/295
The Assist++ doesn't work for following code:
However when the order or public and private will be changed, everything works as expected:
Also, for this code Assist++ works as expected:
To sum up, the first example should work without any problems. It is perfectly valid c++ code and it is common pattern to provide public variables at the top and then private at the bottom.
@mirek-fidler commented on GitHub (Aug 25, 2025):
Fair enough, very hard / impossible to solve. libclang only sees source up
to '.'
Mirek
On Mon, Aug 25, 2025 at 12:39 AM Zbigniew Rębacz @.***>
wrote:
@mirek-fidler commented on GitHub (Aug 25, 2025):
C:\upp\MyApps\assist_h\assist_h.cpp:9:2: error: expected unqualified-id
But I will try to think about it anyway; maybe there is a way to perform some kind of voodoo ritual and reorganize the code. Like finding boundaries of current inline, move it down before class clossing }