Astyle formatting [ci skip]

This commit is contained in:
amai2012 2020-01-05 17:00:34 +01:00
parent 211af1d4fe
commit b621c35539
2 changed files with 4 additions and 6 deletions

View File

@ -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) {

View File

@ -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"