discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Ingo Schwarze <schwarze@usta.de>
To: Jan Stary <hans@stare.cz>
Cc: discuss@mdocml.bsd.lv
Subject: Re: -Wstyle
Date: Mon, 27 Aug 2018 01:45:39 +0200	[thread overview]
Message-ID: <20180826234539.GA32542@athene.usta.de> (raw)
In-Reply-To: <20180826225029.GA48147@www.stare.cz>

Hi Jan,

Jan Stary wrote on Mon, Aug 27, 2018 at 12:50:29AM +0200:

> This is mandoc as installed by the current OpenBSD snapshot (amd64).
> It seems that the order of -T -W resp -W -T does matter:
> 
>   $ mandoc -Tlint -Wstyle *.1
>   $ mandoc -Wstyle -Tlint *.1
>   mandoc: radio.1: STYLE: RCS id missing: (OpenBSD)
>   mandoc: rip.1:1:5: STYLE: Mdocdate missing: Dd March (OpenBSD)
>   mandoc: rip.1: STYLE: RCS id missing: (OpenBSD)
> 
> Is that intentional?

Yes.

The order doesn't matter for -T and -W in general.
But -Tlint is special.  It implies -Wall.
In other words, -Tlint has exactly the same effect as -Tlint -Wall.
So

  -Tlint -Wstyle = -Tlint -Wall -Wstyle = -Tlint -Wstyle

because -Wstyle overrides -Wall and

  -Wstyle -Tlint = -Wstyle -Tlint -Wall = -Tlint -Wall = -Tlint

Similarly, -Tlint -Thtml and -Thtml -Tlint have different effect.

Yours,
  Ingo
--
 To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv

      reply	other threads:[~2018-08-26 23:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-26 22:50 -Wstyle Jan Stary
2018-08-26 23:45 ` Ingo Schwarze [this message]

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=20180826234539.GA32542@athene.usta.de \
    --to=schwarze@usta.de \
    --cc=discuss@mandoc.bsd.lv \
    --cc=discuss@mdocml.bsd.lv \
    --cc=hans@stare.cz \
    --subject='Re: -Wstyle' \
    /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

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