[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:08:20 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-win-x-aarch64` running on `as-builder-2` while building `clang` at step 7 "build-llvm-project".

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

Here is the relevant piece of the build log for the reference:
```
Step 7 (build-llvm-project) failure: build (failure)
...
[4202/4840] Building CXX object tools\clang\tools\extra\include-cleaner\lib\CMakeFiles\obj.clangIncludeCleaner.dir\HTMLReport.cpp.obj
[4203/4840] Linking CXX executable bin\clang-refactor.exe
[4204/4840] Linking CXX executable bin\clang-rename.exe
[4205/4840] Building CXX object tools\clang\tools\extra\include-cleaner\lib\CMakeFiles\obj.clangIncludeCleaner.dir\FindHeaders.cpp.obj
[4206/4840] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\TidyProvider.cpp.obj
[4207/4840] Building CXX object tools\clang\tools\extra\include-cleaner\lib\CMakeFiles\obj.clangIncludeCleaner.dir\LocateSymbol.cpp.obj
[4208/4840] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\SystemIncludeExtractor.cpp.obj
[4209/4840] Building CXX object tools\clang\tools\extra\clang-tidy\bugprone\CMakeFiles\obj.clangTidyBugproneModule.dir\StringviewNullptrCheck.cpp.obj
[4210/4840] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\CompletionModel.cpp.obj
[4211/4840] 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 
ccache C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\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_GLIBCXX_ASSERTIONS -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:\buildbot\as-builder-2\x-aarch64\build\tools\clang\tools\extra\clangd -IC:\buildbot\as-builder-2\x-aarch64\llvm-project\clang-tools-extra\clangd -IC:\buildbot\as-builder-2\x-aarch64\llvm-project\clang-tools-extra\clangd\..\include-cleaner\include -IC:\buildbot\as-builder-2\x-aarch64\build\tools\clang\tools\extra\clangd\..\clang-tidy -IC:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\include -IC:\buildbot\as-builder-2\x-aarch64\build\tools\clang\include -IC:\buildbot\as-builder-2\x-aarch64\build\include -IC:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\include -IC:\buildbot\as-builder-2\x-aarch64\llvm-project\clang-tools-extra\pseudo\lib\..\include -external:IC:\buildbot\fs\zlib-win32\include -external:W0 -D__OPTIMIZE__ /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  -MD  /EHs-c- /GR- -UNDEBUG -std:c++17 /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:\buildbot\as-builder-2\x-aarch64\llvm-project\clang-tools-extra\clangd\Format.cpp
C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang-tools-extra\clangd\Format.cpp(284): error C2039: 'KeepEmptyLinesAtTheStartOfBlocks': is not a member of 'clang::format::FormatStyle'
C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\include\clang/Format/Format.h(55): note: see declaration of 'clang::format::FormatStyle'
[4212/4840] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\URI.cpp.obj
[4213/4840] Linking CXX executable bin\clang-check.exe
[4214/4840] Building CXX object tools\clang\tools\extra\clang-tidy\abseil\CMakeFiles\obj.clangTidyAbseilModule.dir\StringFindStrContainsCheck.cpp.obj
[4215/4840] Linking CXX executable bin\clang-scan-deps.exe
[4216/4840] Building CXX object tools\clang\tools\extra\clang-include-fixer\tool\CMakeFiles\clang-include-fixer.dir\ClangIncludeFixer.cpp.obj
[4217/4840] Building CXX object tools\clang\tools\extra\clang-tidy\misc\CMakeFiles\obj.clangTidyMiscModule.dir\IncludeCleanerCheck.cpp.obj
[4218/4840] Building CXX object tools\clang\tools\extra\clang-tidy\CMakeFiles\obj.clangTidy.dir\ClangTidy.cpp.obj
[4219/4840] Building CXX object tools\clang\tools\extra\clang-tidy\bugprone\CMakeFiles\obj.clangTidyBugproneModule.dir\BugproneTidyModule.cpp.obj
[4220/4840] Building CXX object tools\clang\tools\extra\clang-tidy\utils\CMakeFiles\obj.clangTidyUtils.dir\TransformerClangTidyCheck.cpp.obj
[4221/4840] Linking CXX executable bin\clang-repl.exe
[4222/4840] Linking CXX executable bin\clang.exe
[4223/4840] Building CXX object tools\clang\tools\extra\clang-change-namespace\tool\CMakeFiles\clang-change-namespace.dir\ClangChangeNamespace.cpp.obj
[4224/4840] Building CXX object tools\clang\tools\extra\include-cleaner\tool\CMakeFiles\clang-include-cleaner.dir\IncludeCleaner.cpp.obj
[4225/4840] Building CXX object tools\clang\tools\extra\clang-include-fixer\plugin\CMakeFiles\obj.clangIncludeFixerPlugin.dir\IncludeFixerPlugin.cpp.obj
[4226/4840] Building CXX object tools\clang\tools\extra\clang-change-namespace\CMakeFiles\obj.clangChangeNamespace.dir\ChangeNamespace.cpp.obj
[4227/4840] Building CXX object tools\clang\tools\extra\clang-include-fixer\CMakeFiles\obj.clangIncludeFixer.dir\IncludeFixer.cpp.obj
[4228/4840] Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\DumpAST.cpp.obj
[4229/4840] Building CXX object tools\clang\tools\extra\tool-template\CMakeFiles\tool-template.dir\ToolTemplate.cpp.obj
[4230/4840] Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\SwapIfBranches.cpp.obj
[4231/4840] Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\MemberwiseConstructor.cpp.obj
[4232/4840] Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\ExpandMacro.cpp.obj
[4233/4840] Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\RawStringLiteral.cpp.obj
[4234/4840] Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\PopulateSwitch.cpp.obj
[4235/4840] Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\DefineOutline.cpp.obj
[4236/4840] Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\ObjCMemberwiseInitializer.cpp.obj
[4237/4840] Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\AnnotateHighlightings.cpp.obj
[4238/4840] Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\ObjCLocalizeStringLiteral.cpp.obj
[4239/4840] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\CollectMacros.cpp.obj
[4240/4840] Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\ScopifyEnum.cpp.obj
[4241/4840] Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\ExpandDeducedType.cpp.obj
[4242/4840] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\GlobalCompilationDatabase.cpp.obj
[4243/4840] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\ASTSignals.cpp.obj
[4244/4840] Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\SpecialMembers.cpp.obj
[4245/4840] Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\DefineInline.cpp.obj
[4246/4840] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\Headers.cpp.obj

```

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


More information about the cfe-commits mailing list