[llvm-bugs] [Bug 51473] New: Clang user's Manual: need to explicitly state that -pedantic does not warn on all language extensions

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 13 11:31:40 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51473

            Bug ID: 51473
           Summary: Clang user's Manual: need to explicitly state that
                    -pedantic does not warn on all language extensions
           Product: clang
           Version: 12.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pavel.morozkin at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Clang user's manual: need to explicitly state that -pedantic does not warn on
all language extensions. In many cases when clang -pedantic compiles the code
containing extensions the diagnostics are missing. Hence, the end user assumes
that the situation around -pedantic is the same as in gcc: "This does not mean
that _all_ non-ISO constructs get warnings or errors". If this is indeed true,
then there is a need to explicitly state in clang user's manual
(https://clang.llvm.org/docs/UsersManual.html) that -pedantic does not warn on
all language extensions.

Text before:
-pedantic
    Warn on language extensions.

Text after:
-pedantic
    Warn on language extensions.
Caution: This does not mean that _all_ non-ISO C constructs get warnings.
Reason: detection of any failure to conform to ISO C is considered to not be
worth the effort required.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210813/6d0cd56a/attachment.html>


More information about the llvm-bugs mailing list