parent
9ec27c112f
commit
bb5cad42cd
|
@ -238,13 +238,11 @@ public:
|
|||
mVariableContracts[var] = Settings::VariableContracts{min.toStdString(), max.toStdString()};
|
||||
}
|
||||
|
||||
void deleteFunctionContract(QString function)
|
||||
{
|
||||
void deleteFunctionContract(QString function) {
|
||||
mFunctionContracts.erase(function.toStdString());
|
||||
}
|
||||
|
||||
void deleteVariableContract(QString var)
|
||||
{
|
||||
void deleteVariableContract(QString var) {
|
||||
mVariableContracts.erase(var);
|
||||
}
|
||||
|
||||
|
|
|
@ -554,7 +554,7 @@ void ResultsView::editVariablesFilter(const QString &text)
|
|||
item->setHidden(!varname.contains(text));
|
||||
}
|
||||
for (auto item: mUI.mListMissingVariables->findItems(".*", Qt::MatchRegExp))
|
||||
item->setHidden(!item->text().contains(text));
|
||||
item->setHidden(!item->text().contains(text));
|
||||
}
|
||||
|
||||
void ResultsView::on_mListLog_customContextMenuRequested(const QPoint &pos)
|
||||
|
|
|
@ -4160,7 +4160,7 @@ static void insertImpossible(std::list<ValueFlow::Value>& values, const std::lis
|
|||
|
||||
static void insertNegateKnown(std::list<ValueFlow::Value>& values, const std::list<ValueFlow::Value>& input)
|
||||
{
|
||||
for(ValueFlow::Value value:input) {
|
||||
for (ValueFlow::Value value:input) {
|
||||
if (!value.isIntValue() && !value.isContainerSizeValue())
|
||||
continue;
|
||||
value.intvalue = !value.intvalue;
|
||||
|
|
|
@ -4159,12 +4159,12 @@ private:
|
|||
{
|
||||
const std::string expected = "template < long Num > const bool foo < bar < Num > > = true ;";
|
||||
ASSERT_EQUALS(expected,
|
||||
tok("template <long Num>\n"
|
||||
"constexpr bool foo<bar<Num> > = true;\n"));
|
||||
tok("template <long Num>\n"
|
||||
"constexpr bool foo<bar<Num> > = true;\n"));
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
ASSERT_EQUALS(expected,
|
||||
tok("template <long Num>\n"
|
||||
"constexpr bool foo<bar<Num>> = true;\n"));
|
||||
tok("template <long Num>\n"
|
||||
"constexpr bool foo<bar<Num>> = true;\n"));
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue