[flang-commits] [clang] [flang] [flang] Generalize -pedantic to take an optional argument (PR #196410)

via flang-commits flang-commits at lists.llvm.org
Thu May 7 13:53:35 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 58080 tests passed
* 1441 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.Driver/warning-options_pedantic.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -### -pedantic -no-pedantic C:\_work\llvm-project\llvm-project\clang\test\Driver\warning-options_pedantic.cpp 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=NO_PEDANTIC -check-prefix=DELIMITERS C:\_work\llvm-project\llvm-project\clang\test\Driver\warning-options_pedantic.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' '-###' -pedantic -no-pedantic 'C:\_work\llvm-project\llvm-project\clang\test\Driver\warning-options_pedantic.cpp'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=NO_PEDANTIC -check-prefix=DELIMITERS 'C:\_work\llvm-project\llvm-project\clang\test\Driver\warning-options_pedantic.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Driver\warning-options_pedantic.cpp:3:16: error: DELIMITERS: expected string not found in input
# | // DELIMITERS: {{^ (\(in-process\)|")}}
# |                ^
# | <stdin>:1:1: note: scanning from here
# | clang: error: unknown argument: '-no-pedantic'
# | ^
# | <stdin>:5:19: note: possible intended match here
# | InstalledDir: C:\_work\llvm-project\llvm-project\build\bin
# |                   ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Driver\warning-options_pedantic.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: clang: error: unknown argument: '-no-pedantic' 
# | check:3'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            2: clang version 23.0.0git (https://github.com/llvm/llvm-project f780c952eab1707e098e99f086a72024a0dad4e0) 
# | check:3'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            3: Target: x86_64-pc-windows-msvc 
# | check:3'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            4: Thread model: posix 
# | check:3'0     ~~~~~~~~~~~~~~~~~~~~
# |            5: InstalledDir: C:\_work\llvm-project\llvm-project\build\bin 
# | check:3'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:3'1                       ?                                         possible intended match
# |            6: Build config: +assertions 
# | check:3'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/196410


More information about the flang-commits mailing list