astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2020-08-26 10:15:09 +02:00
parent 9ec27c112f
commit bb5cad42cd
4 changed files with 8 additions and 10 deletions

View File

@ -238,13 +238,11 @@ public:
mVariableContracts[var] = Settings::VariableContracts{min.toStdString(), max.toStdString()}; mVariableContracts[var] = Settings::VariableContracts{min.toStdString(), max.toStdString()};
} }
void deleteFunctionContract(QString function) void deleteFunctionContract(QString function) {
{
mFunctionContracts.erase(function.toStdString()); mFunctionContracts.erase(function.toStdString());
} }
void deleteVariableContract(QString var) void deleteVariableContract(QString var) {
{
mVariableContracts.erase(var); mVariableContracts.erase(var);
} }

View File

@ -554,7 +554,7 @@ void ResultsView::editVariablesFilter(const QString &text)
item->setHidden(!varname.contains(text)); item->setHidden(!varname.contains(text));
} }
for (auto item: mUI.mListMissingVariables->findItems(".*", Qt::MatchRegExp)) 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) void ResultsView::on_mListLog_customContextMenuRequested(const QPoint &pos)

View File

@ -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) 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()) if (!value.isIntValue() && !value.isContainerSizeValue())
continue; continue;
value.intvalue = !value.intvalue; value.intvalue = !value.intvalue;

View File

@ -4159,12 +4159,12 @@ private:
{ {
const std::string expected = "template < long Num > const bool foo < bar < Num > > = true ;"; const std::string expected = "template < long Num > const bool foo < bar < Num > > = true ;";
ASSERT_EQUALS(expected, ASSERT_EQUALS(expected,
tok("template <long Num>\n" tok("template <long Num>\n"
"constexpr bool foo<bar<Num> > = true;\n")); "constexpr bool foo<bar<Num> > = true;\n"));
ASSERT_EQUALS("", errout.str()); ASSERT_EQUALS("", errout.str());
ASSERT_EQUALS(expected, ASSERT_EQUALS(expected,
tok("template <long Num>\n" tok("template <long Num>\n"
"constexpr bool foo<bar<Num>> = true;\n")); "constexpr bool foo<bar<Num>> = true;\n"));
ASSERT_EQUALS("", errout.str()); ASSERT_EQUALS("", errout.str());
} }
} }