-
Notifications
You must be signed in to change notification settings - Fork 94
refs #424 / fixes #589 - do not store reference to filelist in simplecpp::Location / added simplecpp::TokenList::file() / cleanups
#573
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
base: master
Are you sure you want to change the base?
Conversation
|
CC @glankk |
|
This affects the implementation in Cppcheck. Still working on integrating it. |
|
|
||
| Location &operator=(const Location &other) { | ||
| if (this != &other) { | ||
| fileIndex = other.fileIndex; | ||
| line = other.line; | ||
| col = other.col; | ||
| } | ||
| return *this; | ||
| } | ||
| Location &operator=(const Location &other) = default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was lacking the assignment of files. I have no idea how that could have ever been a valid object - beside the fact that containing a reference is even problematic to begin with.
ee3d11c to
29156d6
Compare
|
Should not be merged before we post a release with the MinGW fixes. I also want to get in some preprocessor cleanups on the Cppcheck side first. |
…ocation` / cleanups
…e from location
29156d6 to
dac4823
Compare
simplecpp::Location / added simplecpp::TokenList::file() / cleanupssimplecpp::Location / added simplecpp::TokenList::file() / cleanups
|
if this fixes a crash in cppcheck I am pretty interested to get this in. what do you think must happen before we can merge this PR ? It is still in a draft state. |
|
To land this downstream it requires changes to the Cppcheck code which I still haven't finished locally as I keep running into issues, low quality code and missing test coverage. That is what all the preprocessor fixing and refactoring is all about. I am not sure how long it will take since I am not sure on how to fix everything along the way yet. But it might be that this crash will become latent by one of the downstream fixes. I have not verified that yet. |
No description provided.