Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Oct 15, 2023
1 parent 9bd8e44 commit 3e1f22c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions test/testtokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6900,9 +6900,9 @@ class TestTokenizer : public TestFixture {
"}\n", /*expand*/ true, Platform::Type::Native, "test.c"));

ASSERT_THROW(tokenizeAndStringify("std::string g();\n"
"std::string f() {\n"
" return std::string{ g() + \"abc\" MACRO \"def\" };\n"
"}\n", /*expand*/ true, Platform::Type::Native, "test.cpp"), InternalError);
"std::string f() {\n"
" return std::string{ g() + \"abc\" MACRO \"def\" };\n"
"}\n", /*expand*/ true, Platform::Type::Native, "test.cpp"), InternalError);
}

void findGarbageCode() { // Test Tokenizer::findGarbageCode()
Expand Down
8 changes: 4 additions & 4 deletions test/testuninitvar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3531,8 +3531,8 @@ class TestUninitVar : public TestFixture {
ASSERT_EQUALS("[test.cpp:5]: (error) Uninitialized variable: a\n", errout.str());

ASSERT_THROW(checkUninitVar("void f() {\n" // Don't crash
" int a;\n, InternalError)"
" dostuff(\"ab\" cd \"ef\", x?a:z);\n" // <- No AST is created for ?, InternalError):
" int a;\n"
" dostuff(\"ab\" cd \"ef\", x?a:z);\n" // <- No AST is created for ?
"}"), InternalError);

// Unknown => bail out..
Expand Down Expand Up @@ -3653,8 +3653,8 @@ class TestUninitVar : public TestFixture {
ASSERT_EQUALS("[test.cpp:3] -> [test.cpp:5]: (warning) Uninitialized variable: a\n", errout.str());

ASSERT_THROW(valueFlowUninit("void f() {\n" // Don't crash
" int a;\n, InternalError)"
" dostuff(\"ab\" cd \"ef\", x?a:z);\n" // <- No AST is created for ?, InternalError):
" int a;\n"
" dostuff(\"ab\" cd \"ef\", x?a:z);\n" // <- No AST is created for ?
"}"), InternalError);

// Unknown => bail out..
Expand Down

0 comments on commit 3e1f22c

Please sign in to comment.