[clang] [Clang][AST] Add source range for deleted and defaulted functions (PR #205408)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 24 08:13:29 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 88392 tests passed
* 1678 tests skipped
* 2 tests failed

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

### Clang
<details>
<summary>Clang.CoverageMapping/default-method.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -mllvm -emptyline-comment-coverage=false -triple x86_64-unknown-linux-gnu -std=c++17 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name default-method.cpp -w /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CoverageMapping/default-method.cpp | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CoverageMapping/default-method.cpp -implicit-check-not="->"
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -mllvm -emptyline-comment-coverage=false -triple x86_64-unknown-linux-gnu -std=c++17 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name default-method.cpp -w /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CoverageMapping/default-method.cpp
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CoverageMapping/default-method.cpp '-implicit-check-not=->'
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CoverageMapping/default-method.cpp:14:17: error: CHECK-NEXT: expected string not found in input
# |  // CHECK-NEXT: File 0, [[@LINE+1]]:28 -> [[@LINE+1]]:29 = #0
# |                 ^
# | <stdin>:1:24: note: scanning from here
# | _ZN7PR398223fooaSERS0_:
# |                        ^
# | <stdin>:1:24: note: with "@LINE+1" equal to "15"
# | _ZN7PR398223fooaSERS0_:
# |                        ^
# | <stdin>:1:24: note: with "@LINE+1" equal to "15"
# | _ZN7PR398223fooaSERS0_:
# |                        ^
# | <stdin>:2:2: note: possible intended match here
# |  File 0, 15:38 -> 15:39 = #0
# |  ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CoverageMapping/default-method.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: _ZN7PR398223fooaSERS0_: 
# | next:14'0                            X error: no match found
# | next:14'1                              with "@LINE+1" equal to "15"
# | next:14'2                              with "@LINE+1" equal to "15"
# |            2:  File 0, 15:38 -> 15:39 = #0 
# | next:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:14'3      ?                            possible intended match
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

### Clang-Unit
<details>
<summary>Clang-Unit._/AllClangUnitTests/RecursiveASTVisitor/CXXMethodDeclNoDefaultBodyVisited</summary>

```
Script:
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/unittests/./AllClangUnitTests --gtest_filter=RecursiveASTVisitor.CXXMethodDeclNoDefaultBodyVisited
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/unittests/Tooling/TestVisitor.h:232
Expected equality of these values:
  TimesExpected
    Which is: 1
  TimesSeen
    Which is: 0
Expected "declref" at 8:28, partial match: "declref" at input.cc:8:38


```
</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/205408


More information about the cfe-commits mailing list