[clang] [llvm] [Clang][RISCV] Add scalar saturating add/sub, absolute value and rev intrinsics (PR #224377)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 17 11:58:07 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 56514 tests passed
* 1616 tests skipped
* 12 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.AST/ByteCode/records.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -std=c++14 -verify=expected,both C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\records.cpp -fexperimental-new-constant-interpreter
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -std=c++14 -verify=expected,both 'C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\records.cpp' -fexperimental-new-constant-interpreter
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -std=c++17 -verify=expected,both C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\records.cpp -fexperimental-new-constant-interpreter
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -std=c++17 -verify=expected,both 'C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\records.cpp' -fexperimental-new-constant-interpreter
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -std=c++17 -verify=expected,both -triple i686 C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\records.cpp -fexperimental-new-constant-interpreter
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -std=c++17 -verify=expected,both -triple i686 'C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\records.cpp' -fexperimental-new-constant-interpreter
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -std=c++20 -verify=expected,both C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\records.cpp -fexperimental-new-constant-interpreter
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -std=c++20 -verify=expected,both 'C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\records.cpp' -fexperimental-new-constant-interpreter
# .---command stderr------------
# | error: diagnostics with 'error' severity seen but not expected:
# | File C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\records.cpp Line 1323: static assertion failed due to requirement 'discarded() == 1'
# | error: diagnostics with 'note' severity seen but not expected:
# | File C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\records.cpp Line 1323: expression evaluates to '0 == 1'
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Analysis/html_diagnostics/relevant_lines/goto.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 10
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\goto.c.tmp.output
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\goto.c.tmp.output'
# note: command had no output on stdout or stderr
# RUN: at line 11
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\goto.c.tmp.output C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\goto.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\goto.c.tmp.output' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\goto.c'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\goto.c:7:10: warning: Dereference of null pointer (loaded from variable 'p') [core.NullDereference]
# | 7 | return *p;
# | | ^~
# | 1 warning generated.
# `-----------------------------
# RUN: at line 12
cat C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\goto.c.tmp.output/* | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\goto.c --match-full-lines
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\goto.c.tmp.output/*'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\goto.c' --match-full-lines
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\goto.c:13:11: error: CHECK: expected string not found in input
# | // CHECK: var relevant_lines = {"1": {"1": 1, "2": 1, "3": 1, "4": 1, "6": 1, "7": 1}};
# | ^
# | <stdin>:1:1: note: scanning from here
# | <!doctype html>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\goto.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: <!doctype html>
# | check:13'0 { search range start (exclusive)
# | check:13'1 error: no match found in search range
# | 2: <html>
# | 3: <head>
# | 4: <title>C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\goto.c</title>
# | 5:
# | 6: <style type="text/css">
# | .
# | .
# | .
# | 697: <tr class="codeline" data-linenumber="9"><td class="num" id="LN9">9</td><td class="line"> </td></tr>
# | 698: <tr class="codeline" data-linenumber="10"><td class="num" id="LN10">10</td><td class="line"><span class='comment'>// RUN: rm -rf %t.output</span></td></tr>
# | 699: <tr class="codeline" data-linenumber="11"><td class="num" id="LN11">11</td><td class="line"><span class='comment'>// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s</span></td></tr>
# | 700: <tr class="codeline" data-linenumber="12"><td class="num" id="LN12">12</td><td class="line"><span class='comment'>// RUN: cat %t.output/* | FileCheck %s --match-full-lines</span></td></tr>
# | 701: <tr class="codeline" data-linenumber="13"><td class="num" id="LN13">13</td><td class="line"><span class='comment'>// CHECK: var relevant_lines = {"1": {"1": 1, "2": 1, "3": 1, "4": 1, "6": 1, "7": 1}};</span></td></tr>
# | 702: </table></body></html>
# | check:13'2 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Analysis/html_diagnostics/relevant_lines/macros_same_file.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 12
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\macros_same_file.c.tmp.output
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\macros_same_file.c.tmp.output'
# note: command had no output on stdout or stderr
# RUN: at line 13
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\macros_same_file.c.tmp.output C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\macros_same_file.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\macros_same_file.c.tmp.output' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\macros_same_file.c'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\macros_same_file.c:6:12: warning: Dereference of null pointer (loaded from variable 'x') [core.NullDereference]
# | 6 | return deref(x);
# | | ^~~~~~~~
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\macros_same_file.c:1:18: note: expanded from macro 'deref'
# | 1 | #define deref(X) (*X)
# | | ^~~~
# | 1 warning generated.
# `-----------------------------
# RUN: at line 14
cat C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\macros_same_file.c.tmp.output/* | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\macros_same_file.c --match-full-lines
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\macros_same_file.c.tmp.output/*'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\macros_same_file.c' --match-full-lines
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\macros_same_file.c:15:11: error: CHECK: expected string not found in input
# | // CHECK: var relevant_lines = {"1": {"3": 1, "4": 1, "5": 1, "6": 1}};
# | ^
# | <stdin>:1:1: note: scanning from here
# | <!doctype html>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\macros_same_file.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: <!doctype html>
# | check:15'0 { search range start (exclusive)
# | check:15'1 error: no match found in search range
# | 2: <html>
# | 3: <head>
# | 4: <title>C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\macros_same_file.c</title>
# | 5:
# | 6: <style type="text/css">
# | .
# | .
# | .
# | 699: <tr class="codeline" data-linenumber="11"><td class="num" id="LN11">11</td><td class="line"> </td></tr>
# | 700: <tr class="codeline" data-linenumber="12"><td class="num" id="LN12">12</td><td class="line"><span class='comment'>// RUN: rm -rf %t.output</span></td></tr>
# | 701: <tr class="codeline" data-linenumber="13"><td class="num" id="LN13">13</td><td class="line"><span class='comment'>// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s</span></td></tr>
# | 702: <tr class="codeline" data-linenumber="14"><td class="num" id="LN14">14</td><td class="line"><span class='comment'>// RUN: cat %t.output/* | FileCheck %s --match-full-lines</span></td></tr>
# | 703: <tr class="codeline" data-linenumber="15"><td class="num" id="LN15">15</td><td class="line"><span class='comment'>// CHECK: var relevant_lines = {"1": {"3": 1, "4": 1, "5": 1, "6": 1}};</span></td></tr>
# | 704: </table></body></html>
# | check:15'2 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Analysis/html_diagnostics/relevant_lines/multifile.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 11
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\multifile.c.tmp.output
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\multifile.c.tmp.output'
# note: command had no output on stdout or stderr
# RUN: at line 12
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\multifile.c.tmp.output C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\multifile.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\multifile.c.tmp.output' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\multifile.c'
# .---command stderr------------
# | In file included from C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\multifile.c:1:
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\header.h:7:12: warning: Dereference of null pointer (loaded from variable 'out') [core.NullDereference]
# | 7 | return deref(out);
# | | ^~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\header.h:1:18: note: expanded from macro 'deref'
# | 1 | #define deref(X) (*X)
# | | ^~~~
# | 1 warning generated.
# `-----------------------------
# RUN: at line 13
cat C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\multifile.c.tmp.output/* | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\multifile.c --match-full-lines
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\multifile.c.tmp.output/*'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\multifile.c' --match-full-lines
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\multifile.c:14:11: error: CHECK: expected string not found in input
# | // CHECK: var relevant_lines = {"1": {"3": 1, "4": 1, "5": 1, "6": 1}, "4": {"3": 1, "4": 1, "5": 1, "6": 1, "7": 1}};
# | ^
# | <stdin>:1:1: note: scanning from here
# | <!doctype html>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\multifile.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: <!doctype html>
# | check:14'0 { search range start (exclusive)
# | check:14'1 error: no match found in search range
# | 2: <html>
# | 3: <head>
# | 4: <title>C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\header.h</title>
# | 5:
# | 6: <style type="text/css">
# | .
# | .
# | .
# | 787: <tr><td class="num"></td><td class="line"><div id="EndPath" class="msg msgEvent" style="margin-left:12ex"><table class="msgT"><tr><td valign="top"><div class="PathIndex PathIndexEvent">7</div></td><td><div class="PathNav"><a href="#Path6" title="Previous event (6)">←</a></div></td><td>Dereference of null pointer (loaded from variable 'out')</td></tr></table></div></td></tr><tr class="codeline" data-linenumber="8"><td class="num" id="LN8">8</td><td class="line"> } <span class='keyword'>else</span> {</td></tr>
# | 788: <tr class="codeline" data-linenumber="9"><td class="num" id="LN9">9</td><td class="line"> <span class='keyword'>return</span> 'x';</td></tr>
# | 789: <tr class="codeline" data-linenumber="10"><td class="num" id="LN10">10</td><td class="line"> }</td></tr>
# | 790: <tr class="codeline" data-linenumber="11"><td class="num" id="LN11">11</td><td class="line"> <span class='keyword'>return</span> 'c';</td></tr>
# | 791: <tr class="codeline" data-linenumber="12"><td class="num" id="LN12">12</td><td class="line">}</td></tr>
# | 792: </table></body></html>
# | check:14'2 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Analysis/html_diagnostics/relevant_lines/multiline_func_def.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 13
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\multiline_func_def.c.tmp.output
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\multiline_func_def.c.tmp.output'
# note: command had no output on stdout or stderr
# RUN: at line 14
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\multiline_func_def.c.tmp.output C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\multiline_func_def.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\multiline_func_def.c.tmp.output' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\multiline_func_def.c'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\multiline_func_def.c:7:12: warning: Dereference of null pointer (loaded from variable 'x') [core.NullDereference]
# | 7 | return *x;
# | | ^~
# | 1 warning generated.
# `-----------------------------
# RUN: at line 15
cat C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\multiline_func_def.c.tmp.output/* | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\multiline_func_def.c --match-full-lines
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\multiline_func_def.c.tmp.output/*'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\multiline_func_def.c' --match-full-lines
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\multiline_func_def.c:16:11: error: CHECK: expected string not found in input
# | // CHECK: var relevant_lines = {"1": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1}};
# | ^
# | <stdin>:1:1: note: scanning from here
# | <!doctype html>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\multiline_func_def.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: <!doctype html>
# | check:16'0 { search range start (exclusive)
# | check:16'1 error: no match found in search range
# | 2: <html>
# | 3: <head>
# | 4: <title>C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\multiline_func_def.c</title>
# | 5:
# | 6: <style type="text/css">
# | .
# | .
# | .
# | 700: <tr class="codeline" data-linenumber="12"><td class="num" id="LN12">12</td><td class="line"> </td></tr>
# | 701: <tr class="codeline" data-linenumber="13"><td class="num" id="LN13">13</td><td class="line"><span class='comment'>// RUN: rm -rf %t.output</span></td></tr>
# | 702: <tr class="codeline" data-linenumber="14"><td class="num" id="LN14">14</td><td class="line"><span class='comment'>// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s</span></td></tr>
# | 703: <tr class="codeline" data-linenumber="15"><td class="num" id="LN15">15</td><td class="line"><span class='comment'>// RUN: cat %t.output/* | FileCheck %s --match-full-lines</span></td></tr>
# | 704: <tr class="codeline" data-linenumber="16"><td class="num" id="LN16">16</td><td class="line"><span class='comment'>// CHECK: var relevant_lines = {"1": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1}};</span></td></tr>
# | 705: </table></body></html>
# | check:16'2 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Analysis/html_diagnostics/relevant_lines/notexecutedlines.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 9
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\notexecutedlines.c.tmp.output
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\notexecutedlines.c.tmp.output'
# note: command had no output on stdout or stderr
# RUN: at line 10
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core,deadcode -analyzer-output html -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\notexecutedlines.c.tmp.output C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\notexecutedlines.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core,deadcode -analyzer-output html -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\notexecutedlines.c.tmp.output' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\notexecutedlines.c'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\notexecutedlines.c:3:3: warning: Value stored to 'zzz' is never read [deadcode.DeadStores]
# | 3 | zzz += 100;
# | | ^ ~~~
# | 1 warning generated.
# `-----------------------------
# RUN: at line 11
cat C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\notexecutedlines.c.tmp.output/* | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\notexecutedlines.c --match-full-lines
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\notexecutedlines.c.tmp.output/*'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\notexecutedlines.c' --match-full-lines
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\notexecutedlines.c:12:11: error: CHECK: expected string not found in input
# | // CHECK: var relevant_lines = {"1": {"3": 1}};
# | ^
# | <stdin>:1:1: note: scanning from here
# | <!doctype html>
# | ^
# | <stdin>:4:73: note: possible intended match here
# | <title>C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\notexecutedlines.c</title>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\notexecutedlines.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: <!doctype html>
# | check:12'0 { search range start (exclusive)
# | check:12'1 error: no match found in search range
# | 2: <html>
# | 3: <head>
# | 4: <title>C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\notexecutedlines.c</title>
# | check:12'2 ? possible intended match
# | 5:
# | 6: <style type="text/css">
# | 7: body { color:#000000; background-color:#ffffff }
# | 8: body { font-family:Helvetica, sans-serif; font-size:10pt }
# | 9: h1 { font-size:14pt }
# | .
# | .
# | .
# | 687: <tr class="codeline" data-linenumber="8"><td class="num" id="LN8">8</td><td class="line"><span class='comment'>// by path-insensitive analysis).</span></td></tr>
# | 688: <tr class="codeline" data-linenumber="9"><td class="num" id="LN9">9</td><td class="line"><span class='comment'>// RUN: rm -rf %t.output</span></td></tr>
# | 689: <tr class="codeline" data-linenumber="10"><td class="num" id="LN10">10</td><td class="line"><span class='comment'>// RUN: %clang_analyze_cc1 -analyzer-checker=core,deadcode -analyzer-output html -o %t.output %s</span></td></tr>
# | 690: <tr class="codeline" data-linenumber="11"><td class="num" id="LN11">11</td><td class="line"><span class='comment'>// RUN: cat %t.output/* | FileCheck %s --match-full-lines</span></td></tr>
# | 691: <tr class="codeline" data-linenumber="12"><td class="num" id="LN12">12</td><td class="line"><span class='comment'>// CHECK: var relevant_lines = {"1": {"3": 1}};</span></td></tr>
# | 692: </table></body></html>
# | check:12'3 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Analysis/html_diagnostics/relevant_lines/simple_conditional.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 10
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\simple_conditional.c.tmp.output
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\simple_conditional.c.tmp.output'
# note: command had no output on stdout or stderr
# RUN: at line 11
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\simple_conditional.c.tmp.output C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\simple_conditional.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\simple_conditional.c.tmp.output' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\simple_conditional.c'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\simple_conditional.c:4:12: warning: Dereference of null pointer (loaded from variable 'x') [core.NullDereference]
# | 4 | return *x;
# | | ^~
# | 1 warning generated.
# `-----------------------------
# RUN: at line 12
cat C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\simple_conditional.c.tmp.output/* | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\simple_conditional.c --match-full-lines
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\simple_conditional.c.tmp.output/*'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\simple_conditional.c' --match-full-lines
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\simple_conditional.c:13:11: error: CHECK: expected string not found in input
# | // CHECK: var relevant_lines = {"1": {"1": 1, "2": 1, "3": 1, "4": 1}};
# | ^
# | <stdin>:1:1: note: scanning from here
# | <!doctype html>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\simple_conditional.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: <!doctype html>
# | check:13'0 { search range start (exclusive)
# | check:13'1 error: no match found in search range
# | 2: <html>
# | 3: <head>
# | 4: <title>C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\simple_conditional.c</title>
# | 5:
# | 6: <style type="text/css">
# | .
# | .
# | .
# | 697: <tr class="codeline" data-linenumber="9"><td class="num" id="LN9">9</td><td class="line"> </td></tr>
# | 698: <tr class="codeline" data-linenumber="10"><td class="num" id="LN10">10</td><td class="line"><span class='comment'>// RUN: rm -rf %t.output</span></td></tr>
# | 699: <tr class="codeline" data-linenumber="11"><td class="num" id="LN11">11</td><td class="line"><span class='comment'>// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s</span></td></tr>
# | 700: <tr class="codeline" data-linenumber="12"><td class="num" id="LN12">12</td><td class="line"><span class='comment'>// RUN: cat %t.output/* | FileCheck %s --match-full-lines</span></td></tr>
# | 701: <tr class="codeline" data-linenumber="13"><td class="num" id="LN13">13</td><td class="line"><span class='comment'>// CHECK: var relevant_lines = {"1": {"1": 1, "2": 1, "3": 1, "4": 1}};</span></td></tr>
# | 702: </table></body></html>
# | check:13'2 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Analysis/html_diagnostics/relevant_lines/switch.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 17
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\switch.c.tmp.output
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\switch.c.tmp.output'
# note: command had no output on stdout or stderr
# RUN: at line 18
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\switch.c.tmp.output C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\switch.c.tmp.output' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch.c'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch.c:13:14: warning: Dereference of null pointer (loaded from variable 'x') [core.NullDereference]
# | 13 | return *x;
# | | ^~
# | 1 warning generated.
# `-----------------------------
# RUN: at line 19
cat C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\switch.c.tmp.output/* | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch.c --match-full-lines
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\switch.c.tmp.output/*'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch.c' --match-full-lines
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch.c:20:11: error: CHECK: expected string not found in input
# | // CHECK: var relevant_lines = {"1": {"5": 1, "6": 1, "7": 1, "12": 1, "13": 1}};
# | ^
# | <stdin>:1:1: note: scanning from here
# | <!doctype html>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: <!doctype html>
# | check:20'0 { search range start (exclusive)
# | check:20'1 error: no match found in search range
# | 2: <html>
# | 3: <head>
# | 4: <title>C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch.c</title>
# | 5:
# | 6: <style type="text/css">
# | .
# | .
# | .
# | 701: <tr class="codeline" data-linenumber="16"><td class="num" id="LN16">16</td><td class="line"> </td></tr>
# | 702: <tr class="codeline" data-linenumber="17"><td class="num" id="LN17">17</td><td class="line"><span class='comment'>// RUN: rm -rf %t.output</span></td></tr>
# | 703: <tr class="codeline" data-linenumber="18"><td class="num" id="LN18">18</td><td class="line"><span class='comment'>// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s</span></td></tr>
# | 704: <tr class="codeline" data-linenumber="19"><td class="num" id="LN19">19</td><td class="line"><span class='comment'>// RUN: cat %t.output/* | FileCheck %s --match-full-lines</span></td></tr>
# | 705: <tr class="codeline" data-linenumber="20"><td class="num" id="LN20">20</td><td class="line"><span class='comment'>// CHECK: var relevant_lines = {"1": {"5": 1, "6": 1, "7": 1, "12": 1, "13": 1}};</span></td></tr>
# | 706: </table></body></html>
# | check:20'2 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Analysis/html_diagnostics/relevant_lines/switch_default.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 17
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\switch_default.c.tmp.output
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\switch_default.c.tmp.output'
# note: command had no output on stdout or stderr
# RUN: at line 18
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\switch_default.c.tmp.output C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch_default.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\switch_default.c.tmp.output' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch_default.c'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch_default.c:13:14: warning: Dereference of null pointer (loaded from variable 'x') [core.NullDereference]
# | 13 | return *x;
# | | ^~
# | 1 warning generated.
# `-----------------------------
# RUN: at line 19
cat C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\switch_default.c.tmp.output/* | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch_default.c --match-full-lines
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\switch_default.c.tmp.output/*'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch_default.c' --match-full-lines
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch_default.c:20:11: error: CHECK: expected string not found in input
# | // CHECK: var relevant_lines = {"1": {"5": 1, "6": 1, "7": 1, "12": 1, "13": 1}};
# | ^
# | <stdin>:1:1: note: scanning from here
# | <!doctype html>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch_default.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: <!doctype html>
# | check:20'0 { search range start (exclusive)
# | check:20'1 error: no match found in search range
# | 2: <html>
# | 3: <head>
# | 4: <title>C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\switch_default.c</title>
# | 5:
# | 6: <style type="text/css">
# | .
# | .
# | .
# | 701: <tr class="codeline" data-linenumber="16"><td class="num" id="LN16">16</td><td class="line"> </td></tr>
# | 702: <tr class="codeline" data-linenumber="17"><td class="num" id="LN17">17</td><td class="line"><span class='comment'>// RUN: rm -rf %t.output</span></td></tr>
# | 703: <tr class="codeline" data-linenumber="18"><td class="num" id="LN18">18</td><td class="line"><span class='comment'>// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s</span></td></tr>
# | 704: <tr class="codeline" data-linenumber="19"><td class="num" id="LN19">19</td><td class="line"><span class='comment'>// RUN: cat %t.output/* | FileCheck %s --match-full-lines</span></td></tr>
# | 705: <tr class="codeline" data-linenumber="20"><td class="num" id="LN20">20</td><td class="line"><span class='comment'>// CHECK: var relevant_lines = {"1": {"5": 1, "6": 1, "7": 1, "12": 1, "13": 1}};</span></td></tr>
# | 706: </table></body></html>
# | check:20'2 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Analysis/html_diagnostics/relevant_lines/synthesized_body.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 22
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\synthesized_body.cpp.tmp.output
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\synthesized_body.cpp.tmp.output'
# note: command had no output on stdout or stderr
# RUN: at line 23
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -analyze -setup-static-analyzer -std=c++11 -analyzer-checker=core -analyzer-output html -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\synthesized_body.cpp.tmp.output C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\synthesized_body.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -analyze -setup-static-analyzer -std=c++11 -analyzer-checker=core -analyzer-output html -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\synthesized_body.cpp.tmp.output' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\synthesized_body.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\synthesized_body.cpp:12:10: warning: Dereference of null pointer (loaded from variable 'x') [core.NullDereference]
# | 12 | return *x;
# | | ^~
# | 1 warning generated.
# `-----------------------------
# RUN: at line 24
cat C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\synthesized_body.cpp.tmp.output/* | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\synthesized_body.cpp --match-full-lines
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\synthesized_body.cpp.tmp.output/*'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\synthesized_body.cpp' --match-full-lines
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\synthesized_body.cpp:25:11: error: CHECK: expected string not found in input
# | // CHECK: var relevant_lines = {"1": {"3": 1, "8": 1, "11": 1, "12": 1, "15": 1, "16": 1, "17": 1, "18": 1}};
# | ^
# | <stdin>:1:1: note: scanning from here
# | <!doctype html>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\synthesized_body.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: <!doctype html>
# | check:25'0 { search range start (exclusive)
# | check:25'1 error: no match found in search range
# | 2: <html>
# | 3: <head>
# | 4: <title>C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\synthesized_body.cpp</title>
# | 5:
# | 6: <style type="text/css">
# | .
# | .
# | .
# | 705: <tr class="codeline" data-linenumber="21"><td class="num" id="LN21">21</td><td class="line"> </td></tr>
# | 706: <tr class="codeline" data-linenumber="22"><td class="num" id="LN22">22</td><td class="line"><span class='comment'>// RUN: rm -rf %t.output</span></td></tr>
# | 707: <tr class="codeline" data-linenumber="23"><td class="num" id="LN23">23</td><td class="line"><span class='comment'>// RUN: %clang_analyze_cc1 -std=c++11 -analyzer-checker=core -analyzer-output html -o %t.output %s</span></td></tr>
# | 708: <tr class="codeline" data-linenumber="24"><td class="num" id="LN24">24</td><td class="line"><span class='comment'>// RUN: cat %t.output/* | FileCheck %s --match-full-lines</span></td></tr>
# | 709: <tr class="codeline" data-linenumber="25"><td class="num" id="LN25">25</td><td class="line"><span class='comment'>// CHECK: var relevant_lines = {"1": {"3": 1, "8": 1, "11": 1, "12": 1, "15": 1, "16": 1, "17": 1, "18": 1}};</span></td></tr>
# | 710: </table></body></html>
# | check:25'2 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Analysis/html_diagnostics/relevant_lines/unused_header.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 16
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\unused_header.c.tmp.output
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\unused_header.c.tmp.output'
# note: command had no output on stdout or stderr
# RUN: at line 17
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\unused_header.c.tmp.output C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\unused_header.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core -analyzer-output html -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\unused_header.c.tmp.output' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\unused_header.c'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\unused_header.c:6:12: warning: Dereference of null pointer (loaded from variable 'x') [core.NullDereference]
# | 6 | return *x;
# | | ^~
# | 1 warning generated.
# `-----------------------------
# RUN: at line 18
cat C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\unused_header.c.tmp.output/* | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\unused_header.c --match-full-lines
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\html_diagnostics\relevant_lines\Output\unused_header.c.tmp.output/*'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\unused_header.c' --match-full-lines
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\unused_header.c:19:11: error: CHECK: expected string not found in input
# | // CHECK: var relevant_lines = {"1": {"3": 1, "4": 1, "5": 1, "6": 1}};
# | ^
# | <stdin>:1:1: note: scanning from here
# | <!doctype html>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\unused_header.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: <!doctype html>
# | check:19'0 { search range start (exclusive)
# | check:19'1 error: no match found in search range
# | 2: <html>
# | 3: <head>
# | 4: <title>C:\_work\llvm-project\llvm-project\clang\test\Analysis\html_diagnostics\relevant_lines\unused_header.c</title>
# | 5:
# | 6: <style type="text/css">
# | .
# | .
# | .
# | 703: <tr class="codeline" data-linenumber="15"><td class="num" id="LN15">15</td><td class="line"> </td></tr>
# | 704: <tr class="codeline" data-linenumber="16"><td class="num" id="LN16">16</td><td class="line"><span class='comment'>// RUN: rm -rf %t.output</span></td></tr>
# | 705: <tr class="codeline" data-linenumber="17"><td class="num" id="LN17">17</td><td class="line"><span class='comment'>// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s</span></td></tr>
# | 706: <tr class="codeline" data-linenumber="18"><td class="num" id="LN18">18</td><td class="line"><span class='comment'>// RUN: cat %t.output/* | FileCheck %s --match-full-lines</span></td></tr>
# | 707: <tr class="codeline" data-linenumber="19"><td class="num" id="LN19">19</td><td class="line"><span class='comment'>// CHECK: var relevant_lines = {"1": {"3": 1, "4": 1, "5": 1, "6": 1}};</span></td></tr>
# | 708: </table></body></html>
# | check:19'2 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.SemaCXX/aggregate-default-member-initializers.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -std=c++20 -Wno-unused-value -verify=expected C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\aggregate-default-member-initializers.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -std=c++20 -Wno-unused-value -verify=expected 'C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\aggregate-default-member-initializers.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -std=c++23 -Wno-unused-value -verify=expected C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\aggregate-default-member-initializers.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -std=c++23 -Wno-unused-value -verify=expected 'C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\aggregate-default-member-initializers.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -std=c++20 -Wno-unused-value -verify=expected,bytecode C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\aggregate-default-member-initializers.cpp -fexperimental-new-constant-interpreter
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -std=c++20 -Wno-unused-value -verify=expected,bytecode 'C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\aggregate-default-member-initializers.cpp' -fexperimental-new-constant-interpreter
# .---command stderr------------
# | error: diagnostics with 'error' severity expected but not seen:
# | File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\aggregate-default-member-initializers.cpp Line 49 'bytecode-error': static assertion expression is not an integral constant expression
# | File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\aggregate-default-member-initializers.cpp Line 51 'bytecode-error': static assertion expression is not an integral constant expression
# | File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\aggregate-default-member-initializers.cpp Line 53 'bytecode-error': static assertion expression is not an integral constant expression
# | error: diagnostics with 'note' severity expected but not seen:
# | File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\aggregate-default-member-initializers.cpp Line 23 'bytecode-note': implicit use of 'this' pointer is only allowed within the evaluation of a call to a 'constexpr' member function
# | File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\aggregate-default-member-initializers.cpp Line 23 'bytecode-note': implicit use of 'this' pointer is only allowed within the evaluation of a call to a 'constexpr' member function
# | File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\aggregate-default-member-initializers.cpp Line 23 'bytecode-note': implicit use of 'this' pointer is only allowed within the evaluation of a call to a 'constexpr' member function
# | File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\aggregate-default-member-initializers.cpp Line 49 'bytecode-note': in call to 'one()'
# | File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\aggregate-default-member-initializers.cpp Line 51 'bytecode-note': in call to 'two()'
# | File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\aggregate-default-member-initializers.cpp Line 53 'bytecode-note': in call to 'paren()'
# | 9 errors generated.
# `-----------------------------
# 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/224377
More information about the llvm-commits
mailing list