[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: Linux-->
# :penguin: Linux x64 Test Results
* 92155 tests passed
* 1745 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
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### -pedantic -no-pedantic /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/warning-options_pedantic.cpp 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=NO_PEDANTIC -check-prefix=DELIMITERS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/warning-options_pedantic.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -pedantic -no-pedantic /home/gha/actions-runner/_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: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=NO_PEDANTIC -check-prefix=DELIMITERS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/warning-options_pedantic.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_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>:2:46: note: possible intended match here
# | clang version 23.0.0git (https://github.com/llvm/llvm-project f780c952eab1707e098e99f086a72024a0dad4e0)
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:3'1 ? possible intended match
# | 3: Target: x86_64-unknown-linux-gnu
# | check:3'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 4: Thread model: posix
# | check:3'0 ~~~~~~~~~~~~~~~~~~~~
# | 5: InstalledDir: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin
# | check:3'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 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