Merge branch 'master' of https://github.com/danmar/cppcheck
This commit is contained in:
commit
42b3bc68a5
|
@ -1991,6 +1991,7 @@ void CheckClass::checkConstError2(const Token *tok1, const Token *tok2, const st
|
|||
// ClassCheck: Check that initializer list is in declared order.
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
namespace { // avoid one-definition-rule violation
|
||||
struct VarInfo {
|
||||
VarInfo(const Variable *_var, const Token *_tok)
|
||||
: var(_var), tok(_tok) { }
|
||||
|
@ -1998,6 +1999,7 @@ struct VarInfo {
|
|||
const Variable *var;
|
||||
const Token *tok;
|
||||
};
|
||||
}
|
||||
|
||||
void CheckClass::initializerListOrder()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue