Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testrunner: reduced usage of mutable Settings / some cleanups #5909

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

firewave
Copy link
Collaborator

No description provided.

@firewave firewave force-pushed the symdb-2 branch 2 times, most recently from 85c54f4 to 1287363 Compare January 23, 2024 00:21
@@ -731,15 +733,15 @@ class TestClass : public TestFixture {
// Clear the error log
errout.str("");

Preprocessor preprocessor(settings0);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was relying on the modifications checkVirtualDestructor() did.

@@ -8199,10 +8195,9 @@ class TestOther : public TestFixture {
}

{
Settings s = settingsBuilder().checkUnusedTemplates().build();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary as checkUnusedTemplates is true by default.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now uses _settings which has std.cfg loaded but I do think this is not an issue.

@@ -11093,13 +11088,11 @@ class TestOther : public TestFixture {
}

void forwardAndUsed() {
Settings s = settingsBuilder().checkUnusedTemplates().build();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary as checkUnusedTemplates is true by default.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now uses _settings which has std.cfg loaded but I do think this is not an issue.

@@ -633,8 +633,6 @@ class TestValueFlow : public TestFixture {
const char *code;
std::vector<std::string> lifetimes;

LOAD_LIB_2(settings.library, "std.cfg");
Copy link
Collaborator Author

@firewave firewave Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary as std.cfg is already loaded in settings.

@@ -1012,7 +1010,6 @@ class TestValueFlow : public TestFixture {

// ~
code = "x = ~0U;";
PLATFORM(settings.platform, Platform::Type::Native); // ensure platform is native
Copy link
Collaborator Author

@firewave firewave Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obsolete as we now default to Native on all platforms.

@@ -6013,8 +6010,6 @@ class TestValueFlow : public TestFixture {
void valueFlowContainerSize() {
const char *code;

LOAD_LIB_2(settings.library, "std.cfg");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary as std.cfg is already loaded in settings.

@@ -6799,8 +6794,6 @@ class TestValueFlow : public TestFixture {
{
const char* code;

LOAD_LIB_2(settings.library, "std.cfg");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary as std.cfg is already loaded in settings.

@@ -6826,9 +6819,8 @@ class TestValueFlow : public TestFixture {
void valueFlowDynamicBufferSize() {
const char *code;

LOAD_LIB_2(settings.library, "std.cfg");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary as std.cfg is already loaded in settings.

@firewave firewave merged commit e3f0676 into danmar:main Jan 31, 2024
64 checks passed
@firewave firewave deleted the symdb-2 branch January 31, 2024 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants