[clang] [clang-format] Add option to remove leading blank lines (PR #91221)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 24 21:06:30 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-x64-windows-msvc` running on `windows-gcebot2` while building `clang` at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/63/builds/184

Here is the relevant piece of the build log for the reference:
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/clang-windows.py ...' (failure)
...
[103/269] Linking CXX static library lib\clangIncludeFixer.lib
[104/269] Linking CXX static library lib\clangIncludeFixerPlugin.lib
[105/269] Linking CXX shared library bin\LTO.dll
[106/269] Building CXX object tools\clang\tools\extra\include-cleaner\lib\CMakeFiles\obj.clangIncludeCleaner.dir\Analysis.cpp.obj
[107/269] Linking CXX executable bin\clang-extdef-mapping.exe
[108/269] Building CXX object tools\clang\tools\extra\clang-tidy\bugprone\CMakeFiles\obj.clangTidyBugproneModule.dir\BugproneTidyModule.cpp.obj
[109/269] Linking CXX executable bin\clang-rename.exe
[110/269] Building CXX object tools\clang\tools\extra\include-cleaner\lib\CMakeFiles\obj.clangIncludeCleaner.dir\FindHeaders.cpp.obj
[111/269] Linking CXX executable bin\clang-refactor.exe
[112/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\Format.cpp.obj
FAILED: tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Format.cpp.obj 
C:\PROGRA~2\MICROS~3\2019\PROFES~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x64\cl.exe  /nologo /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\b\slave\clang-x64-windows-msvc\build\stage1\tools\clang\tools\extra\clangd -IC:\b\slave\clang-x64-windows-msvc\llvm-project\clang-tools-extra\clangd -IC:\b\slave\clang-x64-windows-msvc\llvm-project\clang-tools-extra\clangd\..\include-cleaner\include -IC:\b\slave\clang-x64-windows-msvc\build\stage1\tools\clang\tools\extra\clangd\..\clang-tidy -IC:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include -IC:\b\slave\clang-x64-windows-msvc\build\stage1\tools\clang\include -IC:\b\slave\clang-x64-windows-msvc\build\stage1\include -IC:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\include -IC:\b\slave\clang-x64-windows-msvc\llvm-project\clang-tools-extra\pseudo\lib\..\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -w14062 -we4238 /Gw /O2 /Ob2 /DNDEBUG -std:c++17 -MD  /EHs-c- /GR- /showIncludes /Fotools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\Format.cpp.obj /Fdtools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\ /FS -c C:\b\slave\clang-x64-windows-msvc\llvm-project\clang-tools-extra\clangd\Format.cpp
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang-tools-extra\clangd\Format.cpp(284): error C2039: 'KeepEmptyLinesAtTheStartOfBlocks': is not a member of 'clang::format::FormatStyle'
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/Format/Format.h(55): note: see declaration of 'clang::format::FormatStyle'
[113/269] Linking CXX executable bin\clang-linker-wrapper.exe
[114/269] Linking CXX executable bin\clang-change-namespace.exe
[115/269] Linking CXX executable bin\lld.exe
[116/269] Building CXX object tools\clang\tools\extra\include-cleaner\lib\CMakeFiles\obj.clangIncludeCleaner.dir\HTMLReport.cpp.obj
[117/269] Linking CXX executable bin\llvm-lto2.exe
[118/269] Linking CXX executable bin\clang-scan-deps.exe
[119/269] Linking CXX executable bin\clang-include-fixer.exe
[120/269] Linking CXX executable bin\clang-check.exe
[121/269] Building CXX object tools\clang\tools\extra\include-cleaner\tool\CMakeFiles\clang-include-cleaner.dir\IncludeCleaner.cpp.obj
[122/269] Linking CXX executable bin\clang.exe
[123/269] Linking CXX executable bin\clang-repl.exe
[124/269] Building CXX object tools\clang\tools\extra\clang-move\CMakeFiles\obj.clangMove.dir\Move.cpp.obj
[125/269] Building CXX object tools\clang\tools\extra\tool-template\CMakeFiles\tool-template.dir\ToolTemplate.cpp.obj
[126/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\CollectMacros.cpp.obj
[127/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\ASTSignals.cpp.obj
[128/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\GlobalCompilationDatabase.cpp.obj
[129/269] Building CXX object tools\clang\tools\extra\include-cleaner\lib\CMakeFiles\obj.clangIncludeCleaner.dir\WalkAST.cpp.obj
[130/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\Headers.cpp.obj
[131/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\ClangdServer.cpp.obj
[132/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\FindSymbols.cpp.obj
[133/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\HeaderSourceSwitch.cpp.obj
[134/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\IncludeCleaner.cpp.obj
[135/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\IncludeFixer.cpp.obj
[136/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\AST.cpp.obj
[137/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\Hover.cpp.obj
[138/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\CodeComplete.cpp.obj
[139/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\DumpAST.cpp.obj
[140/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\Diagnostics.cpp.obj
[141/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\FindTarget.cpp.obj
[142/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\ParsedAST.cpp.obj
[143/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\ClangdLSPServer.cpp.obj
ninja: build stopped: subcommand failed.
Command 'ninja' failed with return code 1
@@@STEP_FAILURE@@@
Step 7 (stage 1 build) failure: stage 1 build (failure)
...
[103/269] Linking CXX static library lib\clangIncludeFixer.lib
[104/269] Linking CXX static library lib\clangIncludeFixerPlugin.lib
[105/269] Linking CXX shared library bin\LTO.dll
[106/269] Building CXX object tools\clang\tools\extra\include-cleaner\lib\CMakeFiles\obj.clangIncludeCleaner.dir\Analysis.cpp.obj
[107/269] Linking CXX executable bin\clang-extdef-mapping.exe
[108/269] Building CXX object tools\clang\tools\extra\clang-tidy\bugprone\CMakeFiles\obj.clangTidyBugproneModule.dir\BugproneTidyModule.cpp.obj
[109/269] Linking CXX executable bin\clang-rename.exe
[110/269] Building CXX object tools\clang\tools\extra\include-cleaner\lib\CMakeFiles\obj.clangIncludeCleaner.dir\FindHeaders.cpp.obj
[111/269] Linking CXX executable bin\clang-refactor.exe
[112/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\Format.cpp.obj
FAILED: tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Format.cpp.obj 
C:\PROGRA~2\MICROS~3\2019\PROFES~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x64\cl.exe  /nologo /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\b\slave\clang-x64-windows-msvc\build\stage1\tools\clang\tools\extra\clangd -IC:\b\slave\clang-x64-windows-msvc\llvm-project\clang-tools-extra\clangd -IC:\b\slave\clang-x64-windows-msvc\llvm-project\clang-tools-extra\clangd\..\include-cleaner\include -IC:\b\slave\clang-x64-windows-msvc\build\stage1\tools\clang\tools\extra\clangd\..\clang-tidy -IC:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include -IC:\b\slave\clang-x64-windows-msvc\build\stage1\tools\clang\include -IC:\b\slave\clang-x64-windows-msvc\build\stage1\include -IC:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\include -IC:\b\slave\clang-x64-windows-msvc\llvm-project\clang-tools-extra\pseudo\lib\..\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -w14062 -we4238 /Gw /O2 /Ob2 /DNDEBUG -std:c++17 -MD  /EHs-c- /GR- /showIncludes /Fotools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\Format.cpp.obj /Fdtools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\ /FS -c C:\b\slave\clang-x64-windows-msvc\llvm-project\clang-tools-extra\clangd\Format.cpp
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang-tools-extra\clangd\Format.cpp(284): error C2039: 'KeepEmptyLinesAtTheStartOfBlocks': is not a member of 'clang::format::FormatStyle'
C:\b\slave\clang-x64-windows-msvc\llvm-project\clang\include\clang/Format/Format.h(55): note: see declaration of 'clang::format::FormatStyle'
[113/269] Linking CXX executable bin\clang-linker-wrapper.exe
[114/269] Linking CXX executable bin\clang-change-namespace.exe
[115/269] Linking CXX executable bin\lld.exe
[116/269] Building CXX object tools\clang\tools\extra\include-cleaner\lib\CMakeFiles\obj.clangIncludeCleaner.dir\HTMLReport.cpp.obj
[117/269] Linking CXX executable bin\llvm-lto2.exe
[118/269] Linking CXX executable bin\clang-scan-deps.exe
[119/269] Linking CXX executable bin\clang-include-fixer.exe
[120/269] Linking CXX executable bin\clang-check.exe
[121/269] Building CXX object tools\clang\tools\extra\include-cleaner\tool\CMakeFiles\clang-include-cleaner.dir\IncludeCleaner.cpp.obj
[122/269] Linking CXX executable bin\clang.exe
[123/269] Linking CXX executable bin\clang-repl.exe
[124/269] Building CXX object tools\clang\tools\extra\clang-move\CMakeFiles\obj.clangMove.dir\Move.cpp.obj
[125/269] Building CXX object tools\clang\tools\extra\tool-template\CMakeFiles\tool-template.dir\ToolTemplate.cpp.obj
[126/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\CollectMacros.cpp.obj
[127/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\ASTSignals.cpp.obj
[128/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\GlobalCompilationDatabase.cpp.obj
[129/269] Building CXX object tools\clang\tools\extra\include-cleaner\lib\CMakeFiles\obj.clangIncludeCleaner.dir\WalkAST.cpp.obj
[130/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\Headers.cpp.obj
[131/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\ClangdServer.cpp.obj
[132/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\FindSymbols.cpp.obj
[133/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\HeaderSourceSwitch.cpp.obj
[134/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\IncludeCleaner.cpp.obj
[135/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\IncludeFixer.cpp.obj
[136/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\AST.cpp.obj
[137/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\Hover.cpp.obj
[138/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\CodeComplete.cpp.obj
[139/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\DumpAST.cpp.obj
[140/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\Diagnostics.cpp.obj
[141/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\FindTarget.cpp.obj
[142/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\ParsedAST.cpp.obj
[143/269] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\ClangdLSPServer.cpp.obj
ninja: build stopped: subcommand failed.
Command 'ninja' failed with return code 1
program finished with exit code 0
elapsedTime=112.875000

```

https://github.com/llvm/llvm-project/pull/91221


More information about the cfe-commits mailing list