[clang] [LifetimeSafety] Overhaul CFG and analysis to also work with trivially destructed temporary objects (PR #177985)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 27 09:34:24 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 52310 tests passed
* 918 tests skipped
* 6 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Analysis/auto-obj-dtors-cfg-output.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\23\include -nostdsysteminc -analyze -setup-static-analyzer -std=c++98 -fcxx-exceptions -fexceptions -analyzer-checker=debug.DumpCFG -analyzer-config cfg-rich-constructors=false C:\_work\llvm-project\llvm-project\clang\test\Analysis\auto-obj-dtors-cfg-output.cpp > C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\auto-obj-dtors-cfg-output.cpp.tmp 2>&1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -analyze -setup-static-analyzer -std=c++98 -fcxx-exceptions -fexceptions -analyzer-checker=debug.DumpCFG -analyzer-config cfg-rich-constructors=false 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\auto-obj-dtors-cfg-output.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\auto-obj-dtors-cfg-output.cpp.tmp -check-prefixes=CHECK,CXX98,WARNINGS C:\_work\llvm-project\llvm-project\clang\test\Analysis\auto-obj-dtors-cfg-output.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' '--input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\auto-obj-dtors-cfg-output.cpp.tmp' -check-prefixes=CHECK,CXX98,WARNINGS 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\auto-obj-dtors-cfg-output.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\auto-obj-dtors-cfg-output.cpp:280:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: 19: ~A() (Temporary object destructor)
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\auto-obj-dtors-cfg-output.cpp.tmp:141:30: note: scanning from here
# | 18: D d = {A(), {A(), A()}};
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\auto-obj-dtors-cfg-output.cpp.tmp:144:3: note: possible intended match here
# | 21: ~A() (Temporary object destructor)
# | ^
# |
# | Input file: C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\auto-obj-dtors-cfg-output.cpp.tmp
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\auto-obj-dtors-cfg-output.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 136: 13: [B1.12] (ImplicitCastExpr, NoOp, const A)
# | 137: 14: [B1.13]
# | 138: 15: [B1.14] (CXXConstructExpr, A)
# | 139: 16: {[B1.7], [B1.12]}
# | 140: 17: {[B1.2], {[B1.7], [B1.12]}}
# | 141: 18: D d = {A(), {A(), A()}};
# | next:280'0 X error: no match found
# | 142: 19: (FullExprCleanup collected 3 MTEs)
# | next:280'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 143: 20: ~A() (Temporary object destructor)
# | next:280'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 144: 21: ~A() (Temporary object destructor)
# | next:280'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:280'1 ? possible intended match
# | 145: 22: ~A() (Temporary object destructor)
# | next:280'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 146: 23: A() (CXXConstructExpr, A)
# | next:280'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 147: 24: [B1.23] (BindTemporary)
# | next:280'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 148: 25: [B1.24] (ImplicitCastExpr, NoOp, const A)
# | next:280'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 149: 26: [B1.25]
# | next:280'0 ~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Analysis/cfg-rich-constructors.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\23\include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=debug.DumpCFG -triple x86_64-apple-darwin12 -std=c++11 -w C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg-rich-constructors.cpp > C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg-rich-constructors.cpp.tmp 2>&1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=debug.DumpCFG -triple x86_64-apple-darwin12 -std=c++11 -w 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg-rich-constructors.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg-rich-constructors.cpp.tmp -check-prefixes=CHECK,CXX11,CXX11-ELIDE C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg-rich-constructors.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' '--input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg-rich-constructors.cpp.tmp' -check-prefixes=CHECK,CXX11,CXX11-ELIDE 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg-rich-constructors.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg-rich-constructors.cpp:256:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: 7: CFGNewAllocator(C *)
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg-rich-constructors.cpp.tmp:316:33: note: scanning from here
# | 6: C([B1.5]) (Base initializer)
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg-rich-constructors.cpp.tmp:318:2: note: possible intended match here
# | 8: CFGNewAllocator(C *)
# | ^
# |
# | Input file: C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg-rich-constructors.cpp.tmp
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg-rich-constructors.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 311: 1: C::get
# | 312: 2: [B1.1] (ImplicitCastExpr, FunctionToPointerDecay, C (*)(void))
# | 313: 3: [B1.2]() (CXXRecordTypedCall, [B1.4])
# | 314: 4: [B1.3]
# | 315: 5: [B1.4] (CXXConstructExpr, C([B1.4]) (Base initializer), C)
# | 316: 6: C([B1.5]) (Base initializer)
# | next:256'0 X error: no match found
# | 317: 7: (FullExprCleanup collected 1 MTEs)
# | next:256'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 318: 8: CFGNewAllocator(C *)
# | next:256'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:256'1 ? possible intended match
# | 319: 9: C::get
# | next:256'0 ~~~~~~~~~~~
# | 320: 10: [B1.9] (ImplicitCastExpr, FunctionToPointerDecay, C (*)(void))
# | next:256'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 321: 11: [B1.10]() (CXXRecordTypedCall, [B1.12], [B1.13])
# | next:256'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 322: 12: [B1.11]
# | next:256'0 ~~~~~~~~~~~~~
# | 323: 13: [B1.12] (CXXConstructExpr, [B1.14], C)
# | next:256'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Analysis/cfg-rich-constructors.mm</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\23\include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=debug.DumpCFG -triple x86_64-apple-darwin12 -std=c++11 -w C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg-rich-constructors.mm > C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg-rich-constructors.mm.tmp 2>&1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=debug.DumpCFG -triple x86_64-apple-darwin12 -std=c++11 -w 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg-rich-constructors.mm'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg-rich-constructors.mm.tmp -check-prefixes=CHECK,CXX11,CXX11-ELIDE C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg-rich-constructors.mm
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' '--input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg-rich-constructors.mm.tmp' -check-prefixes=CHECK,CXX11,CXX11-ELIDE 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg-rich-constructors.mm'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg-rich-constructors.mm:33:16: error: CXX11-NEXT: is not on the line after the previous match
# | // CXX11-NEXT: 10: ~D() (Temporary object destructor)
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg-rich-constructors.mm.tmp:38:2: note: 'next' match was here
# | 10: ~D() (Temporary object destructor)
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg-rich-constructors.mm.tmp:14:24: note: previous match ended here
# | 9: [[B1.2] foo:[B1.8]]
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg-rich-constructors.mm.tmp:15:1: note: non-matching line after previous match is here
# | 10: (FullExprCleanup collected 1 MTEs)
# | ^
# |
# | Input file: C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg-rich-constructors.mm.tmp
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg-rich-constructors.mm
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 33: 5: [B1.4] (ImplicitCastExpr, NoOp, const D)
# | 34: 6: [B1.5]
# | 35: 7: [B1.6] (CXXConstructExpr, [B1.8], D)
# | 36: 8: D d = [e bar];
# | 37: 9: (FullExprCleanup collected 1 MTEs)
# | 38: 10: ~D() (Temporary object destructor)
# | next:33 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: match on wrong line
# | 39: 11: [B1.8].~D() (Implicit destructor)
# | 40: Preds (1): B2
# | 41: Succs (1): B0
# | 42:
# | 43: [B0 (EXIT)]
# | 44: Preds (1): B1
# | 45:
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Analysis/cfg.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\23\include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=debug.DumpCFG -triple x86_64-apple-darwin12 -Wno-error=invalid-gnu-asm-cast -std=c++11 -analyzer-config cfg-rich-constructors=false C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg.cpp > C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg.cpp.tmp 2>&1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=debug.DumpCFG -triple x86_64-apple-darwin12 -Wno-error=invalid-gnu-asm-cast -std=c++11 -analyzer-config cfg-rich-constructors=false 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg.cpp.tmp -check-prefixes=CHECK,WARNINGS C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' '--input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg.cpp.tmp' -check-prefixes=CHECK,WARNINGS 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg.cpp:393:17: error: CHECK-NEXT: is not on the line after the previous match
# | // CHECK-NEXT: ~LifetimeExtend()
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg.cpp.tmp:499:6: note: 'next' match was here
# | 48: ~LifetimeExtend() (Temporary object destructor)
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg.cpp.tmp:497:35: note: previous match ended here
# | 46: Aggregate a{LifetimeExtend(4), LifetimeExtend(4)};
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg.cpp.tmp:498:1: note: non-matching line after previous match is here
# | 47: (FullExprCleanup collected 2 MTEs)
# | ^
# |
# | Input file: C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\cfg.cpp.tmp
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\cfg.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 494: 43: [B1.42]
# | 495: 44: [B1.43] (CXXConstructExpr, const LifetimeExtend)
# | 496: 45: {[B1.34], [B1.41]}
# | 497: 46: Aggregate a{LifetimeExtend(4), LifetimeExtend(4)};
# | 498: 47: (FullExprCleanup collected 2 MTEs)
# | 499: 48: ~LifetimeExtend() (Temporary object destructor)
# | next:393 !~~~~~~~~~~~~~~~~ error: match on wrong line
# | 500: 49: ~LifetimeExtend() (Temporary object destructor)
# | 501: 50: 4
# | 502: 51: [B1.46].~Aggregate() (Implicit destructor)
# | 503: 52: 5
# | 504: 53: [B1.52] (CXXConstructExpr, LifetimeExtend)
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Analysis/missing-bind-temporary.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\23\include -nostdsysteminc -analyze -setup-static-analyzer -triple x86_64-unknown-linux -analyzer-checker=debug.DumpCFG -std=c++14 -analyzer-config eagerly-assume=false C:\_work\llvm-project\llvm-project\clang\test\Analysis\missing-bind-temporary.cpp > C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\missing-bind-temporary.cpp.tmp 2>&1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -analyze -setup-static-analyzer -triple x86_64-unknown-linux -analyzer-checker=debug.DumpCFG -std=c++14 -analyzer-config eagerly-assume=false 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\missing-bind-temporary.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\missing-bind-temporary.cpp.tmp C:\_work\llvm-project\llvm-project\clang\test\Analysis\missing-bind-temporary.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' '--input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\missing-bind-temporary.cpp.tmp' 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\missing-bind-temporary.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\missing-bind-temporary.cpp:31:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: 10: ~B() (Temporary object destructor)
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\missing-bind-temporary.cpp.tmp:27:35: note: scanning from here
# | 9: [B1.5] = [B1.8] (OperatorCall)
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\missing-bind-temporary.cpp.tmp:29:2: note: possible intended match here
# | 11: ~B() (Temporary object destructor)
# | ^
# |
# | Input file: C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\missing-bind-temporary.cpp.tmp
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\missing-bind-temporary.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 22: 4: [B1.3] (ImplicitCastExpr, FunctionToPointerDecay, B &(*)(B &&) noexcept)
# | 23: 5: i
# | 24: 6: {} (CXXConstructExpr, [B1.7], [B1.8], B)
# | 25: 7: [B1.6] (BindTemporary)
# | 26: 8: [B1.7]
# | 27: 9: [B1.5] = [B1.8] (OperatorCall)
# | next:31'0 X error: no match found
# | 28: 10: (FullExprCleanup collected 1 MTEs)
# | next:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 29: 11: ~B() (Temporary object destructor)
# | next:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:31'1 ? possible intended match
# | 30: 12: [B1.2].~B() (Implicit destructor)
# | next:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 31: Preds (1): B2
# | next:31'0 ~~~~~~~~~~~~~~~
# | 32: Succs (1): B0
# | next:31'0 ~~~~~~~~~~~~~~~
# | 33:
# | next:31'0 ~
# | 34: [B0 (EXIT)]
# | next:31'0 ~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Analysis/temp-obj-dtors-cfg-output.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
rm -f C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\temp-obj-dtors-cfg-output.cpp.tmp
# executed command: rm -f 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\temp-obj-dtors-cfg-output.cpp.tmp'
# 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\23\include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=debug.DumpCFG -analyzer-config cfg-rich-constructors=false -std=c++98 C:\_work\llvm-project\llvm-project\clang\test\Analysis\temp-obj-dtors-cfg-output.cpp > C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\temp-obj-dtors-cfg-output.cpp.tmp 2>&1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=debug.DumpCFG -analyzer-config cfg-rich-constructors=false -std=c++98 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\temp-obj-dtors-cfg-output.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\temp-obj-dtors-cfg-output.cpp.tmp -check-prefixes=CHECK,CXX98,WARNINGS,CXX98-WARNINGS C:\_work\llvm-project\llvm-project\clang\test\Analysis\temp-obj-dtors-cfg-output.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' '--input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\temp-obj-dtors-cfg-output.cpp.tmp' -check-prefixes=CHECK,CXX98,WARNINGS,CXX98-WARNINGS 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\temp-obj-dtors-cfg-output.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Analysis\temp-obj-dtors-cfg-output.cpp:244:11: error: CHECK: expected string not found in input
# | // CHECK: 6: ~A() (Temporary object destructor)
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\temp-obj-dtors-cfg-output.cpp.tmp:33:33: note: scanning from here
# | 5: [B1.4] (CXXConstructExpr, A)
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\temp-obj-dtors-cfg-output.cpp.tmp:35:2: note: possible intended match here
# | 7: ~A() (Temporary object destructor)
# | ^
# |
# | Input file: C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\Output\temp-obj-dtors-cfg-output.cpp.tmp
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Analysis\temp-obj-dtors-cfg-output.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 28: [B1]
# | 29: 1: A() (CXXConstructExpr, A)
# | 30: 2: [B1.1] (BindTemporary)
# | 31: 3: [B1.2] (ImplicitCastExpr, NoOp, const A)
# | 32: 4: [B1.3]
# | 33: 5: [B1.4] (CXXConstructExpr, A)
# | check:244'0 X error: no match found
# | 34: 6: (FullExprCleanup collected 1 MTEs)
# | check:244'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 35: 7: ~A() (Temporary object destructor)
# | check:244'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:244'1 ? possible intended match
# | 36: 8: return [B1.5];
# | check:244'0 ~~~~~~~~~~~~~~~~~~~
# | 37: Preds (1): B2
# | check:244'0 ~~~~~~~~~~~~~~~
# | 38: Succs (1): B0
# | check:244'0 ~~~~~~~~~~~~~~~
# | 39:
# | check:244'0 ~
# | 40: [B0 (EXIT)]
# | check:244'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/177985
More information about the cfe-commits
mailing list