[Lldb-commits] [lldb] [WIP][lldb][Format] Reject recursive format entities (PR #174618)

via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 6 08:39:20 PST 2026


github-actions[bot] wrote:

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

The build failed before running any tests. Click on a failure below to see the details.

<details>
<summary>tools/lldb/unittests/Core/CMakeFiles/LLDBCoreTests.dir/FormatEntityTest.cpp.o</summary>

```
FAILED: tools/lldb/unittests/Core/CMakeFiles/LLDBCoreTests.dir/FormatEntityTest.cpp.o
sccache /opt/llvm/bin/clang++ -DGTEST_HAS_RTTI=0 -DHAVE_ROUND -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/unittests/Core -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/unittests/Core -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -I/usr/include/python3.12 -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../clang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/../clang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/source -I/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/unittests -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googlemock/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-vla-extension -O3 -DNDEBUG -std=c++17 -UNDEBUG -Wno-suggest-override -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/lldb/unittests/Core/CMakeFiles/LLDBCoreTests.dir/FormatEntityTest.cpp.o -MF tools/lldb/unittests/Core/CMakeFiles/LLDBCoreTests.dir/FormatEntityTest.cpp.o.d -o tools/lldb/unittests/Core/CMakeFiles/LLDBCoreTests.dir/FormatEntityTest.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/unittests/Core/FormatEntityTest.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/unittests/Core/FormatEntityTest.cpp:30:3: error: no member named 'Format' in namespace 'lldb_private::FormatEntity'; did you mean simply 'Format'?
30 |   FormatEntity::Format(format, stream, nullptr, nullptr, nullptr, nullptr,
|   ^~~~~~~~~~~~~~~~~~~~
|   Format
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/unittests/Core/FormatEntityTest.cpp:23:30: note: 'Format' declared here
23 | static Expected<std::string> Format(StringRef format_str) {
|                              ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/unittests/Core/FormatEntityTest.cpp:30:32: error: too many arguments to function call, expected single argument 'format_str', have 8 arguments
30 |   FormatEntity::Format(format, stream, nullptr, nullptr, nullptr, nullptr,
|   ~~~~~~~~~~~~~~~~~~~~         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 |                        false, false);
|                        ~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/unittests/Core/FormatEntityTest.cpp:23:30: note: 'Format' declared here
23 | static Expected<std::string> Format(StringRef format_str) {
|                              ^      ~~~~~~~~~~~~~~~~~~~~
2 errors generated.
```
</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/174618


More information about the lldb-commits mailing list