public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Immad Mir <mir@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-1540] analyzer: reorder initialization of state m_invalid in sm-fd.cc [PR106184] Date: Wed, 6 Jul 2022 16:46:40 +0000 (GMT) [thread overview] Message-ID: <20220706164640.DA3F93857C59@sourceware.org> (raw) https://gcc.gnu.org/g:3a6de2b2db500d76ac141a6ef85d336bd0f8430b commit r13-1540-g3a6de2b2db500d76ac141a6ef85d336bd0f8430b Author: Immad Mir <mirimmad@outlook.com> Date: Wed Jul 6 21:37:14 2022 +0530 analyzer: reorder initialization of state m_invalid in sm-fd.cc [PR106184] This patch reorders the initialization of state m_invalid in sm-fd.cc so that the order of initializers is same as the ordering of the fields in the class decl. gcc/analyzer/ChangeLog: PR analyzer/106184 * sm-fd.cc (fd_state_machine): Change ordering of initialization of state m_invalid so that the order of initializers is same as the ordering of the fields in the class decl. Signed-off-by: Immad Mir <mirimmad@outlook.com> Diff: --- gcc/analyzer/sm-fd.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/analyzer/sm-fd.cc b/gcc/analyzer/sm-fd.cc index 8196d33223a..8e4300b06e2 100644 --- a/gcc/analyzer/sm-fd.cc +++ b/gcc/analyzer/sm-fd.cc @@ -551,11 +551,12 @@ fd_state_machine::fd_state_machine (logger *logger) m_unchecked_read_write (add_state ("fd-unchecked-read-write")), m_unchecked_read_only (add_state ("fd-unchecked-read-only")), m_unchecked_write_only (add_state ("fd-unchecked-write-only")), - m_invalid (add_state ("fd-invalid")), m_valid_read_write (add_state ("fd-valid-read-write")), m_valid_read_only (add_state ("fd-valid-read-only")), m_valid_write_only (add_state ("fd-valid-write-only")), - m_closed (add_state ("fd-closed")), m_stop (add_state ("fd-stop")) + m_invalid (add_state ("fd-invalid")), + m_closed (add_state ("fd-closed")), + m_stop (add_state ("fd-stop")) { }
reply other threads:[~2022-07-06 16:46 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220706164640.DA3F93857C59@sourceware.org \ --to=mir@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).