Skip to content

Fix #12667 syntaxError on C23 [[noreturn]]#6351

Merged
orbitcowboy merged 6 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix12667
Apr 27, 2024
Merged

Fix #12667 syntaxError on C23 [[noreturn]]#6351
orbitcowboy merged 6 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix12667

Conversation

@chrchr-github
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread lib/standards.h Outdated

/** C code standard */
enum cstd_t { C89, C99, C11, CLatest = C11 } c = CLatest;
enum cstd_t { C89, C99, C11, /*, C17*/ C23, CLatest = C23 } c = CLatest;
Copy link
Copy Markdown
Collaborator

@firewave firewave Apr 26, 2024

Choose a reason for hiding this comment

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

Please also enable the GUI part and feel free to fully add C17. I somehow forgot about that - it is supported upstream in simplecpp.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Turns out there is no disabled GUI code. So I will take care of both things in a separate PR instead. Sorry about the noise.

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.

What do you mean by GUI part? I missed the getOnly() function, will add.
C17 doesn't seem to change much, so we'll probably not need an enum value for it: https://en.cppreference.com/w/c/17

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just disregard the comment about the GUI.

The reason it did not add any new language features is most likely the reason I omitted it. But we still need to add it since it changes the standard define string.

@orbitcowboy orbitcowboy merged commit 96f2527 into cppcheck-opensource:main Apr 27, 2024
@chrchr-github chrchr-github deleted the chr_Fix12667 branch April 27, 2024 10:40
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.

3 participants