[clang] Add clang warning if fp exception functions are called without appropriate flags/pragmas (PR #199009)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 1 03:49:09 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 3240 tests passed
* 32 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clangd
<details>
<summary>Clangd.Clangd/protocol.test</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
not clangd -pretty -sync -enable-test-uri-scheme < C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\protocol.test | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -strict-whitespace C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\protocol.test
# executed command: not clangd -pretty -sync -enable-test-uri-scheme
# .---command stderr------------
# | I[10:47:25.253] clangd version 23.0.0git (https://github.com/llvm/llvm-project 22607f3f3c58ff72043941ade9f01e8800a33117)
# | I[10:47:25.254] Features: windows+debug
# | I[10:47:25.254] PID: 18680
# | I[10:47:25.254] Working directory: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\test
# | I[10:47:25.254] argv[0]: clangd.exe
# | I[10:47:25.254] argv[1]: -pretty
# | I[10:47:25.254] argv[2]: -sync
# | I[10:47:25.254] argv[3]: -enable-test-uri-scheme
# | I[10:47:25.254] Env INCLUDE: C:\BuildTools\VC\Tools\MSVC\14.44.35207\include;C:\BuildTools\VC\Tools\MSVC\14.44.35207\ATLMFC\include;C:\BuildTools\VC\Auxiliary\VS\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um;C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared;C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um
# | I[10:47:25.550] Env LIB: C:\BuildTools\VC\Tools\MSVC\14.44.35207\ATLMFC\lib\x64;C:\BuildTools\VC\Tools\MSVC\14.44.35207\lib\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.26100.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\\lib\10.0.26100.0\\um\x64
# | I[10:47:25.566] Starting LSP over stdin/stdout
# | I[10:47:25.566] <-- initialize(0)
# | I[10:47:25.577] --> reply:initialize(0) 10 ms
# | I[10:47:25.577] Warning: Missing Content-Length header, or zero-length message.
# | I[10:47:25.577] <-- textDocument/didOpen
# | I[10:47:25.581] Failed to find compilation database for C:\clangd-test\main.cpp
# | I[10:47:25.581] ASTWorker building file C:\clangd-test\main.cpp version 1 with command clangd fallback
# | [C:\clangd-test]
# | "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang" "-resource-dir=C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23" -- "C:\\clangd-test\\main.cpp"
# | E[10:47:25.582] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | E[10:47:25.588] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | I[10:47:25.614] Built preamble of size 269216 for file C:\clangd-test\main.cpp version 1 in 0.03 seconds
# | I[10:47:25.625] Indexing c++14 standard library in the context of C:\clangd-test\main.cpp
# | Unknown builtin type letter!
# | UNREACHABLE executed at C:\_work\llvm-project\llvm-project\clang\lib\AST\ASTContext.cpp:12704!
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0. Program arguments: clangd -pretty -sync -enable-test-uri-scheme
# | 1. C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\fenv.h:54:54: current parser token ';'
# | Signalled while building preamble
# | Filename: main.cpp
# | Directory: C:\clangd-test
# | Command Line: C:\_work\llvm-project\llvm-project\build\bin\clang -resource-dir=C:\_work\llvm-project\llvm-project\build\lib\clang\23 -- C:\clangd-test\main.cpp
# | Version: 1
# | Signalled during AST worker action: Update
# | Filename: main.cpp
# | Directory: C:\clangd-test
# | Command Line: C:\_work\llvm-project\llvm-project\build\bin\clang -resource-dir=C:\_work\llvm-project\llvm-project\build\lib\clang\23 -- C:\clangd-test\main.cpp
# | Version: 1
# | Signalled while processing message:
# | {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///main.cpp","languageId":"cpp","version":1,"text":"struct fake { int a, bb, ccc; int f(int i, const float f) const; };\nint main() {\n fake f;\n f.\n}\n"}}}
# `-----------------------------
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -strict-whitespace 'C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\protocol.test'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\protocol.test:32:16: error: CHECK: expected string not found in input
# | # CHECK: "id": 1,
# | ^
# | <stdin>:14:8: note: scanning from here
# | },
# | ^
# | <stdin>:62:13: note: possible intended match here
# | "legend": {
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\protocol.test
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 9: "callHierarchyProvider": true,
# | 10: "clangdInlayHintsProvider": true,
# | 11: "codeActionProvider": true,
# | 12: "compilationDatabase": {
# | 13: "automaticReload": true
# | 14: },
# | check:32'0 { search range start (exclusive)
# | check:32'1 error: no match found in search range
# | 15: "completionProvider": {
# | 16: "resolveProvider": false,
# | 17: "triggerCharacters": [
# | 18: ".",
# | 19: "<",
# | .
# | .
# | .
# | 57: "selectionRangeProvider": true,
# | 58: "semanticTokensProvider": {
# | 59: "full": {
# | 60: "delta": true
# | 61: },
# | 62: "legend": {
# | check:32'2 ? possible intended match
# | 63: "tokenModifiers": [
# | 64: "declaration",
# | 65: "definition",
# | 66: "deprecated",
# | 67: "deduced",
# | .
# | .
# | .
# | 134: "serverInfo": {
# | 135: "name": "clangd",
# | 136: "version": "clangd version 23.0.0git (https://github.com/llvm/llvm-project 22607f3f3c58ff72043941ade9f01e8800a33117) windows+debug x86_64-pc-windows-msvc"
# | 137: }
# | 138: }
# | 139: }
# | check:32'3 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# 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/199009
More information about the cfe-commits
mailing list