parent
103002578d
commit
648acd1cbf
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue