astyle formatting
This commit is contained in:
parent
11da89784f
commit
aaf908bd5e
|
@ -494,7 +494,7 @@ private:
|
||||||
ASSERT_EQUALS(";;alloc;if(var){dealloc;}", getcode("int f; f=open(); if(f>=0)close(f);", "f"));
|
ASSERT_EQUALS(";;alloc;if(var){dealloc;}", getcode("int f; f=open(); if(f>=0)close(f);", "f"));
|
||||||
ASSERT_EQUALS(";;alloc;ifv{;}", getcode("int f; f=open(); if(f!=-1 || x);", "f"));
|
ASSERT_EQUALS(";;alloc;ifv{;}", getcode("int f; f=open(); if(f!=-1 || x);", "f"));
|
||||||
|
|
||||||
ASSERT_EQUALS(";;dealloc;", getcode("int f; e |= fclose(f);", "f"));
|
ASSERT_EQUALS(";;dealloc;", getcode("int f; e |= fclose(f);", "f"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1288,7 +1288,7 @@ private:
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
|
|
||||||
checkUninitVar("void f(struct blame_entry *ent)\n"
|
checkUninitVar("void f(struct blame_entry *ent)\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" struct origin *suspect = ent->suspect;\n"
|
" struct origin *suspect = ent->suspect;\n"
|
||||||
" char hex[41];\n"
|
" char hex[41];\n"
|
||||||
" strcpy(hex, sha1_to_hex(suspect->commit->object.sha1));\n"
|
" strcpy(hex, sha1_to_hex(suspect->commit->object.sha1));\n"
|
||||||
|
|
Loading…
Reference in New Issue