astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2019-04-18 20:21:00 +02:00
parent 103002578d
commit 648acd1cbf
2 changed files with 2 additions and 3 deletions

View File

@ -118,7 +118,7 @@ public:
void checkDuplicateConditionalAssign();
private:
private:
// The conditions that have been diagnosed
std::set<const Token*> mCondDiags;
bool diag(const Token* tok, bool insert=true);

View File

@ -3070,8 +3070,7 @@ private:
ASSERT_EQUALS("[test.cpp:2]: (warning) Comparison is wrong. Result of 'ptr+1' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour.\n", errout.str());
}
void duplicateConditionalAssign()
{
void duplicateConditionalAssign() {
check("void f(int& x, int y) {\n"
" if (x == y)\n"
" x = y;\n"