Skip to content

fixed #13130 - added support for C/C++ standard aliases for --std#6877

Merged
firewave merged 3 commits intocppcheck-opensource:mainfrom
firewave:std-xxx
Oct 27, 2024
Merged

fixed #13130 - added support for C/C++ standard aliases for --std#6877
firewave merged 3 commits intocppcheck-opensource:mainfrom
firewave:std-xxx

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

@firewave firewave commented Oct 7, 2024

No description provided.

@firewave

This comment was marked as resolved.

@pytest.mark.xfail(strict=True)
def test_cmd_std_c_enforce_alias(tmp_path): # #13128/#13129/#13130
__test_cmd(tmp_path, 'test.c',['--language=c++', '--std=gnu99', '--std=gnu++11'], '-x c -std=gnu99')
__test_cmd(tmp_path, 'test.c',['--language=c', '--std=gnu99', '--std=gnu++11'], '-x c -std=gnu99')
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Obvious stupid c&p error when I added the tests.

@pytest.mark.xfail(strict=True)
def test_cmd_std_c_enforce_alias_2(tmp_path): # #13128/#13129/#13130
__test_cmd(tmp_path, 'test.c',['--language=c++', '--std=iso9899:1999', '--std=gnu++11'], '-x c -std=iso9899:1999')
__test_cmd(tmp_path, 'test.c',['--language=c', '--std=iso9899:1999', '--std=gnu++11'], '-x c -std=iso9899:1999')
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Obvious stupid c&p error when I added the tests.

@firewave firewave force-pushed the std-xxx branch 3 times, most recently from 09af47f to 238cff0 Compare October 16, 2024 11:47
@firewave firewave marked this pull request as ready for review October 16, 2024 11:47
@firewave firewave force-pushed the std-xxx branch 3 times, most recently from 7692889 to 64f219a Compare October 16, 2024 12:48
Copy link
Copy Markdown
Collaborator

@danmar danmar left a comment

Choose a reason for hiding this comment

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

lgtm

@firewave firewave merged commit 65cc015 into cppcheck-opensource:main Oct 27, 2024
@firewave firewave deleted the std-xxx branch October 27, 2024 05:23
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