[clang] [clang] On-demand parsing for templated and internal-linkage functions (PR #210893)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 21 00:54:27 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 90473 tests passed
* 1697 tests skipped
* 4 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.AST/ast-dump-deleted-defaulted-range.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/24/include -nostdsysteminc -ast-dump /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ast-dump-deleted-defaulted-range.cpp | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ast-dump-deleted-defaulted-range.cpp
# 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/24/include -nostdsysteminc -ast-dump /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ast-dump-deleted-defaulted-range.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/AST/ast-dump-deleted-defaulted-range.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ast-dump-deleted-defaulted-range.cpp:4:11: error: CHECK: expected string not found in input
# | // CHECK: FunctionDecl{{.*}} <{{.*}}[[@LINE-1]]:1, col:18> col:6 delfunc 'void ()' delete
# | ^
# | <stdin>:1:1: note: scanning from here
# | TranslationUnitDecl 0x102fb928 <<invalid sloc>> <invalid sloc>
# | ^
# | <stdin>:1:1: note: with "@LINE-1" equal to "3"
# | TranslationUnitDecl 0x102fb928 <<invalid sloc>> <invalid sloc>
# | ^
# | <stdin>:16:118: note: possible intended match here
# | |-FunctionDecl 0x1034cd00 </home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ast-dump-deleted-defaulted-range.cpp:3:1, col:14> col:6 delfunc 'void ()' delete implicit-inline external-linkage
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ast-dump-deleted-defaulted-range.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: TranslationUnitDecl 0x102fb928 <<invalid sloc>> <invalid sloc>
# | check:4'0 { search range start (exclusive)
# | check:4'1 error: no match found in search range
# | check:4'2 with "@LINE-1" equal to "3"
# | 2: |-TypedefDecl 0x102fc5e8 <<invalid sloc>> <invalid sloc> implicit __int128_t '__int128'
# | 3: | `-BuiltinType 0x102fbef0 '__int128'
# | 4: |-TypedefDecl 0x102fc658 <<invalid sloc>> <invalid sloc> implicit __uint128_t 'unsigned __int128'
# | 5: | `-BuiltinType 0x102fbf10 'unsigned __int128'
# | 6: |-TypedefDecl 0x1034cc58 <<invalid sloc>> <invalid sloc> implicit __NSConstantString '__NSConstantString_tag'
# | .
# | .
# | .
# | 11: | `-BuiltinType 0x102fb9d0 'char'
# | 12: |-TypedefDecl 0x102fc578 <<invalid sloc>> <invalid sloc> implicit __builtin_va_list '__va_list_tag[1]'
# | 13: | `-ConstantArrayType 0x102fc520 '__va_list_tag[1]' 1
# | 14: | `-RecordType 0x102fc4e0 '__va_list_tag' canonical
# | 15: | `-CXXRecord 0x102fc240 '__va_list_tag'
# | 16: |-FunctionDecl 0x1034cd00 </home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ast-dump-deleted-defaulted-range.cpp:3:1, col:14> col:6 delfunc 'void ()' delete implicit-inline external-linkage
# | check:4'3 ? possible intended match
# | 17: |-CXXRecordDecl 0x1034cdf0 <line:6:1, line:8:1> line:6:8 referenced struct S definition external-linkage
# | 18: | |-DefinitionData pass_in_registers empty standard_layout trivially_copyable has_user_declared_ctor can_const_default_init
# | 19: | | |-DefaultConstructor exists non_trivial user_provided defaulted_is_constexpr
# | 20: | | |-CopyConstructor simple trivial has_const_param implicit_has_const_param
# | 21: | | |-MoveConstructor exists simple trivial
# | .
# | .
# | .
# | 71: | |-CopyAssignment simple trivial has_const_param needs_implicit implicit_has_const_param
# | 72: | |-MoveAssignment exists simple trivial needs_implicit
# | 73: | `-Destructor simple irrelevant trivial needs_implicit
# | 74: |-CXXRecordDecl 0x1036d6b8 <col:1, col:8> col:8 implicit struct w
# | 75: `-CXXMethodDecl 0x1036d7c0 <line:32:3, col:29> col:8 g 'void ()' delete implicit-inline external-linkage
# | 76: `-delete message: StringLiteral 0x1036d868 <col:21> 'NULL TYPE' lvalue "reason"
# | check:4'4 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<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/24/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/24/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]]:32 -> [[@LINE+1]]:39 = #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:28 -> 15:29 = #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 { search range start (exclusive)
# | next:14'1 error: no match found in search range
# | next:14'2 with "@LINE+1" equal to "15"
# | next:14'3 with "@LINE+1" equal to "15"
# | 2: File 0, 15:28 -> 15:29 = #0
# | next:14'4 ? possible intended match
# | next:14'5 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# 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:32, partial match: "declref" at input.cc:8:28
```
</details>
### lldb-api
<details>
<summary>lldb-api.python_api/run_locker/TestRunLocker.py</summary>
```
Script:
--
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --libcxx-include-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 --libcxx-include-target-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu --triple x86_64-unknown-linux-gnu --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --lldb-python-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/local/lib/python3.12/dist-packages --compiler /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --dsymutil /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/python_api/run_locker -p TestRunLocker.py
--
Exit Code: 1
Command Output (stdout):
--
"can't evaluate expressions when the process is running."
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc
--
Command Output (stderr):
--
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'EvaluateExpression'
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_run_locker (TestRunLocker.TestRunLocker.test_run_locker)
Log Files:
- /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/python_api/run_locker/TestRunLocker/Failure_test_run_locker.log
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_run_locker_stop_at_entry (TestRunLocker.TestRunLocker.test_run_locker_stop_at_entry)
======================================================================
FAIL: test_run_locker (TestRunLocker.TestRunLocker.test_run_locker)
Test that the run locker is set correctly when we launch
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 175, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/python_api/run_locker/TestRunLocker.py", line 23, in test_run_locker
self.runlocker_test(False)
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/python_api/run_locker/TestRunLocker.py", line 126, in runlocker_test
self.assertIn(
AssertionError: "can't evaluate expressions when the process is running" not found in ''
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
----------------------------------------------------------------------
Ran 2 tests in 0.582s
FAILED (failures=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/210893
More information about the cfe-commits
mailing list