[clang-tools-extra] [clang-doc][NFC] Introduce OwnedPtr abstraction (PR #184869)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 6 14:58:03 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/clang/tools/extra/clang-doc/CMakeFiles/obj.clangDoc.dir/JSONGenerator.cpp.o</summary>
```
FAILED: tools/clang/tools/extra/clang-doc/CMakeFiles/obj.clangDoc.dir/JSONGenerator.cpp.o
sccache /opt/llvm/bin/clang++ -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clang-doc -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/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 -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/clang/tools/extra/clang-doc/CMakeFiles/obj.clangDoc.dir/JSONGenerator.cpp.o -MF tools/clang/tools/extra/clang-doc/CMakeFiles/obj.clangDoc.dir/JSONGenerator.cpp.o.d -o tools/clang/tools/extra/clang-doc/CMakeFiles/obj.clangDoc.dir/JSONGenerator.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:49:7: error: redefinition of 'JSONGenerator'
49 | class JSONGenerator : public Generator {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:14:7: note: previous definition is here
14 | class JSONGenerator : public Generator {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:105:28: error: redefinition of 'Format'
105 | const char *JSONGenerator::Format = "json";
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:28:28: note: previous definition is here
28 | const char *JSONGenerator::Format = "json";
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:136:29: error: out-of-line definition of 'serializeLocation' does not match any declaration in 'clang::doc::JSONGenerator'
136 | json::Object JSONGenerator::serializeLocation(const Location &Loc) {
| ^~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:14:7: note: JSONGenerator defined here
14 | class JSONGenerator : public Generator {
| ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:141:32: error: use of undeclared identifier 'CDCtx'
141 | if (!Loc.IsFileInRootDir || !CDCtx->RepositoryUrl)
| ^~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:143:29: error: use of undeclared identifier 'CDCtx'
143 | SmallString<128> FileURL(*CDCtx->RepositoryUrl);
| ^~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:147:8: error: use of undeclared identifier 'CDCtx'
147 | if (!CDCtx->RepositoryLinePrefix)
| ^~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:150:19: error: use of undeclared identifier 'CDCtx'
150 | LinePrefix = *CDCtx->RepositoryLinePrefix;
| ^~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:347:21: error: out-of-line definition of 'generateContext' does not match any declaration in 'clang::doc::JSONGenerator'
347 | void JSONGenerator::generateContext(const Info &I, Object &Obj) {
| ^~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:14:7: note: JSONGenerator defined here
14 | class JSONGenerator : public Generator {
| ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:404:21: error: out-of-line definition of 'serializeCommonAttributes' does not match any declaration in 'clang::doc::JSONGenerator'
404 | void JSONGenerator::serializeCommonAttributes(const Info &I,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:14:7: note: JSONGenerator defined here
14 | class JSONGenerator : public Generator {
| ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:453:21: error: out-of-line definition of 'serializeReference' does not match any declaration in 'clang::doc::JSONGenerator'
453 | void JSONGenerator::serializeReference(const Reference &Ref,
| ^~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:14:7: note: JSONGenerator defined here
14 | class JSONGenerator : public Generator {
| ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:469:21: error: out-of-line definition of 'serializeMDReference' does not match any declaration in 'clang::doc::JSONGenerator'
469 | void JSONGenerator::serializeMDReference(const Reference &Ref,
| ^~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:14:7: note: JSONGenerator defined here
14 | class JSONGenerator : public Generator {
| ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:484:21: error: out-of-line definition of 'serializeCommonChildren' does not match any declaration in 'clang::doc::JSONGenerator'
484 | void JSONGenerator::serializeCommonChildren(
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:14:7: note: JSONGenerator defined here
14 | class JSONGenerator : public Generator {
| ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:488:50: error: use of undeclared identifier 'serializeInfoLambda'
488 | serializeArray(Children.Enums, Obj, "Enums", serializeInfoLambda());
| ^~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:493:56: error: use of undeclared identifier 'serializeInfoLambda'
493 | serializeArray(Children.Typedefs, Obj, "Typedefs", serializeInfoLambda());
| ^~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:500:50: error: use of undeclared identifier 'serializeReferenceLambda'
500 | : serializeReferenceLambda();
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:525:21: error: out-of-line definition of 'serializeInfo' does not match any declaration in 'clang::doc::JSONGenerator'
525 | void JSONGenerator::serializeInfo(const ConstraintInfo &I, Object &Obj) {
| ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:14:7: note: JSONGenerator defined here
14 | class JSONGenerator : public Generator {
| ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:530:21: error: out-of-line definition of 'serializeInfo' does not match any declaration in 'clang::doc::JSONGenerator'
530 | void JSONGenerator::serializeInfo(const TemplateInfo &Template, Object &Obj) {
| ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:14:7: note: JSONGenerator defined here
14 | class JSONGenerator : public Generator {
| ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:566:20: error: use of undeclared identifier 'serializeInfoLambda'
566 | serializeInfoLambda());
| ^~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:571:21: error: out-of-line definition of 'serializeInfo' does not match any declaration in 'clang::doc::JSONGenerator'
571 | void JSONGenerator::serializeInfo(const ConceptInfo &I, Object &Obj) {
| ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-doc/JSONGenerator.cpp:14:7: note: JSONGenerator defined here
14 | class JSONGenerator : public Generator {
| ^~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 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/184869
More information about the cfe-commits
mailing list