Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Apr 2018 06:20:41 +0100
From:      David Chisnall <theraven@FreeBSD.org>
To:        Pete Wright <pete@nomadlogic.org>
Cc:        sgk@troutmask.apl.washington.edu, Conrad Meyer <cem@freebsd.org>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: clang manual page?
Message-ID:  <6691B42A-E56F-4432-82FA-42BC410EC152@FreeBSD.org>
In-Reply-To: <347cc907-96b3-140d-5a8f-084f91283be5@nomadlogic.org>
References:  <20180405223852.GA43120@troutmask.apl.washington.edu> <CAG6CVpUpj7B6ujUSCUkznCBKSGKcuM2czZ=VBgKK%2Bkm5wFwfmg@mail.gmail.com> <20180406001514.GA43793@troutmask.apl.washington.edu> <347cc907-96b3-140d-5a8f-084f91283be5@nomadlogic.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6 Apr 2018, at 01:30, Pete Wright <pete@nomadlogic.org> wrote:
>=20
>=20
> On 04/05/2018 17:15, Steve Kargl wrote:
>> This assumes that a gcc(1) is available on the system.
>>=20
>> % man gcc
>> No manual entry for gcc
>>=20
>> If the system compiler is clang/clang++, then it ought to be
>> documented better than it currently is.  Ian's suggests for
>> 'clang --help' is even worse
>>=20
>> %  clang --help | grep -- -std
>>   -cl-std=3D<value>         OpenCL language standard to compile for.
>>   -std=3D<value>            Language standard to compile for
>>   -stdlib=3D<value>         C++ standard library to use
>>=20
>> Does <value> =3D=3D <language>?
>>=20
> a quick google search turns up the following additional information:
>=20
> "clang supports the -std option, which changes what language mode =
clang uses. The supported modes for C are c89, gnu89, c99, gnu99, c11, =
gnu11, c17, gnu17, and various aliases for those modes. If no -std =
option is specified, clang defaults to gnu11 mode. Many C99 and C11 =
features are supported in earlier modes as a conforming extension, with =
a warning. Use |-pedantic-errors| to request an error if a feature from =
a later standard revision is used in an earlier mode."
>=20
> https://clang.llvm.org/docs/UsersManual.html

I believe that the clang user manual referenced here is written in =
Sphynx, which is able to generate mandoc output as well as HTML.  =
Perhaps we should incorporate the generated file in the next import?

David




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6691B42A-E56F-4432-82FA-42BC410EC152>