Astyle formatting [ci skip]
This commit is contained in:
parent
211af1d4fe
commit
b621c35539
|
@ -226,8 +226,8 @@ static void removeModifiedVars(ProgramMemory& pm, const Token* tok, const Token*
|
|||
}
|
||||
|
||||
static ProgramMemory getInitialProgramState(const Token* tok,
|
||||
const Token* origin,
|
||||
const std::unordered_map<nonneg int, ValueFlow::Value>& vars = std::unordered_map<nonneg int, ValueFlow::Value>{})
|
||||
const Token* origin,
|
||||
const std::unordered_map<nonneg int, ValueFlow::Value>& vars = std::unordered_map<nonneg int, ValueFlow::Value> {})
|
||||
{
|
||||
ProgramMemory pm;
|
||||
if (origin) {
|
||||
|
|
|
@ -1658,8 +1658,7 @@ private:
|
|||
ASSERT_EQUALS("", errout.str());
|
||||
}
|
||||
|
||||
void nullpointer49()
|
||||
{
|
||||
void nullpointer49() {
|
||||
check("void f(int *p, int n) {\n"
|
||||
" int *q = 0;\n"
|
||||
" if(n > 10) q = p;\n"
|
||||
|
@ -1677,8 +1676,7 @@ private:
|
|||
ASSERT_EQUALS("", errout.str());
|
||||
}
|
||||
|
||||
void nullpointer50()
|
||||
{
|
||||
void nullpointer50() {
|
||||
check("void f(int *p, int a) {\n"
|
||||
" if(!p) {\n"
|
||||
" if(a > 0) {\n"
|
||||
|
|
Loading…
Reference in New Issue