discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: "Anthony J. Bentley" <anthony@cathet.us>
To: discuss@mdocml.bsd.lv
Cc: wblock@wonkity.com
Subject: Re: Feature request for -Tlint
Date: Sun, 12 Oct 2014 02:44:40 -0600	[thread overview]
Message-ID: <25656.1413103480@cathet.us> (raw)
In-Reply-To: <20141011212541.GZ30780@iris.usta.de>

Hi Ingo,

Ingo Schwarze writes:
> > Of course, parentheses are allowed in arguments besides the first
> > argument, but I can't think of any case where they're needed in
> > the first one.
> 
> Me neither, so i have committed the following patch.

Thanks for implementing this. There are some cases (common in the
LibreSSL manuals) that are false positives:

SSL_CTX_set_info_callback(3):
.Fn "(*SSL_CTX_get_info_callback(const SSL_CTX *ctx))"

SSL_CTX_set_client_cert_cb(3):
.Fn "(*client_cert_cb)" "SSL *ssl" "X509 **x509" "EVP_PKEY **pkey"

Based on this I would suggest the warning only pick up trailing (), not
just any parentheses in the first argument. Of course, if there's a
better way to mark these up, I'd like to know...

-- 
Anthony J. Bentley
--
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

  reply	other threads:[~2014-10-12  8:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-09 22:46 Anthony J. Bentley
2014-10-11 21:25 ` Ingo Schwarze
2014-10-12  8:44   ` Anthony J. Bentley [this message]
2014-10-13 13:27     ` Ingo Schwarze

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=25656.1413103480@cathet.us \
    --to=anthony@cathet.us \
    --cc=discuss@mdocml.bsd.lv \
    --cc=wblock@wonkity.com \
    /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.
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 NNTP newsgroup(s).