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