unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: 44171@debbugs.gnu.org
Subject: bug#44171: Make cwarn.el obsolete
Date: Fri, 23 Oct 2020 10:53:50 +0000	[thread overview]
Message-ID: <CADwFkm=V=1ZXPZZch2Y3wuGnzoTUs27V_6i_Vis8XfZV-nB1DQ@mail.gmail.com> (raw)

cwarn.el is a package that highlights three types of "suspicious C and
C++ constructions".

;; * Assignments inside expressions, including variations like "+=".
;; * Semicolon following immediately after `if', `for', and `while'
;;   (except, of course, after a `do .. while' statement).
;; * C++ functions with reference parameters.

This was written in 1999, but is it useful today?

Modern compilers should warn about the above, and for the cases where
they don't, users are probably better off using a real linter (such as
cppcheck for C).

Should cwarn.el be obsoleted?





             reply	other threads:[~2020-10-23 10:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-23 10:53 Stefan Kangas [this message]
2020-10-23 11:14 ` bug#44171: Make cwarn.el obsolete Eli Zaretskii
2020-10-23 12:12   ` Stefan Kangas
2020-10-23 13:03     ` Eli Zaretskii
2020-10-23 13:20       ` Stefan Kangas

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkm=V=1ZXPZZch2Y3wuGnzoTUs27V_6i_Vis8XfZV-nB1DQ@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=44171@debbugs.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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).