| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -1149,7 +1149,7 @@ void Tokenizer::simplifyTypedefCpp() | |
| return; | ||
|
|
||
| if (maxTime > 0 && std::time(nullptr) > maxTime) { | ||
| if (mSettings.debugwarnings) { | ||
| if (mErrorLogger && mSettings.debugwarnings) { | ||
| ErrorMessage::FileLocation loc(list.getFiles()[0], 0, 0); | ||
| ErrorMessage errmsg({std::move(loc)}, | ||
| emptyString, | ||
| Expand Down Expand Up | @@ -3407,11 +3407,12 @@ bool Tokenizer::simplifyTokens1(const std::string &configuration) | |
| const bool doValueFlow = !disableValueflowEnv || (std::strcmp(disableValueflowEnv, "1") != 0); | ||
|
|
||
| if (doValueFlow) { | ||
| assert(mErrorLogger); | ||
|
Comment thread
Copy link
Copy Markdown
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityAfter the change in ImportProject this can no longer happen. I did not change it to a reference yet since it used in a lot of redundant test code. As I plan to clean up that redundancy I will address it with that upcoming change instead of touching the code twice.
Sorry, something went wrong.
All reactions
|
||
| if (mTimerResults) { | ||
| Timer t("Tokenizer::simplifyTokens1::ValueFlow", mSettings.showtime, mTimerResults); | ||
| ValueFlow::setValues(list, *mSymbolDatabase, mErrorLogger, mSettings, mTimerResults); | ||
| ValueFlow::setValues(list, *mSymbolDatabase, *mErrorLogger, mSettings, mTimerResults); | ||
| } else { | ||
| ValueFlow::setValues(list, *mSymbolDatabase, mErrorLogger, mSettings, mTimerResults); | ||
| ValueFlow::setValues(list, *mSymbolDatabase, *mErrorLogger, mSettings, mTimerResults); | ||
| } | ||
|
|
||
| arraySizeAfterValueFlow(); | ||
| Expand Down Expand Up | @@ -3439,6 +3440,7 @@ bool Tokenizer::simplifyTokens1(const std::string &configuration) | |
| return true; | ||
| } | ||
|
|
||
| // cppcheck-suppress unusedFunction - used in tests only | ||
|
Comment thread
Copy link
Copy Markdown
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThis was surprising but it actually foreshadows the cleanup I am planning to make.
Sorry, something went wrong.
All reactions
|
||
| bool Tokenizer::tokenize(std::istream &code, | ||
| const char FileName[], | ||
| const std::string &configuration) | ||
| Expand Down Expand Up | @@ -6070,7 +6072,8 @@ void Tokenizer::dump(std::ostream &out) const | |
| out << outs; | ||
| outs.clear(); | ||
|
|
||
| mSymbolDatabase->printXml(out); | ||
| if (mSymbolDatabase) | ||
| mSymbolDatabase->printXml(out); | ||
|
|
||
| containers.erase(nullptr); | ||
| if (!containers.empty()) { | ||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
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.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThis makes the class not assignable. This should be a pointer.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThat ship has already sailed - some one line above.
I will take a look at adding that clang-tidy check about this (there was a case of false positives which I am not sure is fixed yet) and there's also #4785 and some discussions which related to that (which apparently are not linked).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityFYI There also would be a compiler error if we would actually try to assign those types. I ran into this issue while working on it. So it is not a silent failure.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityAlso I encountered the first issue we have with this in some other changes. I will try to figure out how to properly handle it so it can be easily be applied in the future. Nothing to do here though since this doesn't change anything as we were using references before.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.