Skip to content

Update gcc rules to 15.1#2923

Merged
guwirth merged 2 commits intoSonarOpenCommunity:masterfrom
reddwarf69:gcc_15_1
May 22, 2025
Merged

Update gcc rules to 15.1#2923
guwirth merged 2 commits intoSonarOpenCommunity:masterfrom
reddwarf69:gcc_15_1

Conversation

@reddwarf69
Copy link
Copy Markdown
Contributor

@reddwarf69 reddwarf69 commented May 20, 2025

Update gcc rules to 15.1.


This change is Reviewable

@guwirth guwirth added this to the 2.2.1 milestone May 21, 2025
@guwirth guwirth self-requested a review May 21, 2025 11:48
@guwirth
Copy link
Copy Markdown
Collaborator

guwirth commented May 21, 2025

Hi @reddwarf69,

thx, will have a look to it. Did you remove any rules?

Regards,

@reddwarf69
Copy link
Copy Markdown
Contributor Author

Did you remove any rules?

No, the contents of compiler-gcc.xml are just the output of gcc_createrules.py. No rules have been removed between gcc 14.2 and 15.1, only 19 have been added.

@guwirth
Copy link
Copy Markdown
Collaborator

guwirth commented May 22, 2025

Additional rules:

-Wanalyzer-undefined-behavior-ptrdiff
-Wc23-c2y-compat
-Wcoverage-too-many-paths
-Wdefaulted-function-deleted
-Wdeprecated-literal-operator
-Wdeprecated-non-prototype
-Wdeprecated-variadic-comma-omission
-Wfree-labels
-Wheader-guard
-Wleading-whitespace
-Wmaybe-musttail-local-addr
-Wmissing-parameter-name
-Wmusttail-local-addr
-Wpragma-once-outside-header
-Wpsabi
-Wtemplate-body
-Wtemplate-names-tu-local
-Wtrailing-whitespace
-Wunterminated-string-initialization

@guwirth guwirth merged commit 014402a into SonarOpenCommunity:master May 22, 2025
11 checks passed
@cmorve-te
Copy link
Copy Markdown
Contributor

We may update clang/gcc soon. Are you planning to release 2.2.1 soon? I see https://github.com/SonarOpenCommunity/sonar-cxx/milestone/33 is empty and overdue by 22 days, there is any problem with master?

@guwirth
Copy link
Copy Markdown
Collaborator

guwirth commented May 24, 2025

Are you planning to release 2.2.1 soon?

There are less changes, that’s the reason why there is no new release. Think I should at least also update Cppcheck rules …

@reddwarf69
Copy link
Copy Markdown
Contributor Author

I don't know anything about cppcheck. But FWIW this is the file generated by generate_cppcheck_resources.sh* in my Fedora 42 system with cppcheck 2.17.1.

  • After updating CFG_DIR to /usr/share/Cppcheck/cfg/, and cwec_v4.6.xml -> cwec_v4.17.xml

I'm not creating a PR because the diff is huge and I don't really understand it.

cppcheck.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants