[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:15:52 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-cmake-x86_64-avx512-win` running on `avx512-intel64-win` while building `clang` at step 5 "build stage 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build stage 1) failure: 'ninja' (failure)
...
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4012/4701] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\FileDistance.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4013/4701] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\FS.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4014/4701] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\FeatureModule.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4015/4701] Building CXX object tools\clang\tools\extra\clang-query\CMakeFiles\obj.clangQuery.dir\QueryParser.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4016/4701] 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~1\MICROS~1\2022\PROFES~1\VC\Tools\MSVC\1437~1.328\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 -ID:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\tools\clang\tools\extra\clangd -ID:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\clang-tools-extra\clangd -ID:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\clang-tools-extra\clangd\..\include-cleaner\include -ID:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\tools\clang\tools\extra\clangd\..\clang-tidy -ID:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\clang\include -ID:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\tools\clang\include -ID:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\include -ID:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\llvm\include -ID:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\clang-tools-extra\pseudo\lib\..\include -march=cascadelake /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 /Ob0 /Od /RTC1 -std:c++17 -MDd -Zi  /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 D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\clang-tools-extra\clangd\Format.cpp
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\clang-tools-extra\clangd\Format.cpp(284): error C2039: 'KeepEmptyLinesAtTheStartOfBlocks': is not a member of 'clang::format::FormatStyle'
D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\clang\include\clang/Format/Format.h(55): note: see declaration of 'clang::format::FormatStyle'
[4017/4701] Building CXX object tools\clang\tools\extra\clang-include-fixer\CMakeFiles\obj.clangIncludeFixer.dir\IncludeFixer.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4018/4701] Building CXX object tools\clang\tools\extra\clang-include-fixer\find-all-symbols\CMakeFiles\obj.findAllSymbols.dir\PragmaCommentHandler.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4019/4701] Building CXX object tools\clang\tools\extra\clang-change-namespace\tool\CMakeFiles\clang-change-namespace.dir\ClangChangeNamespace.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4020/4701] Building CXX object tools\clang\tools\extra\clang-include-fixer\plugin\CMakeFiles\obj.clangIncludeFixerPlugin.dir\IncludeFixerPlugin.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4021/4701] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\PathMapping.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4022/4701] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\DecisionForest.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4023/4701] Building CXX object tools\clang\tools\extra\include-cleaner\lib\CMakeFiles\obj.clangIncludeCleaner.dir\Record.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4024/4701] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\RIFF.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4025/4701] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\ConfigCompile.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4026/4701] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\JSONTransport.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4027/4701] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\CodeCompletionStrings.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4028/4701] Building CXX object tools\clang\tools\extra\pp-trace\CMakeFiles\pp-trace.dir\PPTrace.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4029/4701] Building CXX object tools\clang\tools\extra\clang-include-fixer\find-all-symbols\CMakeFiles\obj.findAllSymbols.dir\FindAllSymbolsAction.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4030/4701] Linking CXX executable bin\clang-pseudo-fuzzer.exe
[4031/4701] Building CXX object tools\clang\tools\extra\include-cleaner\tool\CMakeFiles\clang-include-cleaner.dir\IncludeCleaner.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4032/4701] Linking CXX executable bin\clang-pseudo.exe
[4033/4701] Building CXX object tools\clang\tools\extra\clang-doc\CMakeFiles\obj.clangDoc.dir\Mapper.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'
[4034/4701] Building CXX object tools\clang\tools\extra\clangd\CMakeFiles\obj.clangDaemon.dir\Protocol.cpp.obj
cl : Command line warning D9002 : ignoring unknown option '-march=cascadelake'

```

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


More information about the cfe-commits mailing list