[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:07:46 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vla` running on `linaro-g3-03` while building `clang` at step 6 "build stage 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 6 (build stage 1) failure: 'ninja' (failure)
...
[476/604] Linking CXX executable bin/llvm-mca
[477/604] Linking CXX executable bin/llvm-dwarfutil
[478/604] Linking CXX executable bin/llvm-lto2
[479/604] Linking CXX executable bin/dsymutil
[480/604] Linking CXX shared library lib/libclang.so.19.0.0git
[481/604] Linking CXX static library lib/libclangTidyBugproneModule.a
[482/604] Linking CXX executable bin/f18-parse-demo
[483/604] Linking CXX executable bin/fir-opt
[484/604] Linking CXX executable bin/tco
[485/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Format.cpp.o
FAILED: tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Format.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/tools/clang/tools/extra/clangd -I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/clang-tools-extra/clangd -I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/clang-tools-extra/clangd/../include-cleaner/include -I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/tools/clang/tools/extra/clangd/../clang-tidy -I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/clang/include -I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/tools/clang/include -I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/include -I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/llvm/include -I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/clang-tools-extra/pseudo/lib/../include -mcpu=neoverse-512tvb -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Format.cpp.o -MF tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Format.cpp.o.d -o tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Format.cpp.o -c /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/clang-tools-extra/clangd/Format.cpp
../llvm/clang-tools-extra/clangd/Format.cpp:284:11: error: no member named 'KeepEmptyLinesAtTheStartOfBlocks' in 'clang::format::FormatStyle'
  284 |     Style.KeepEmptyLinesAtTheStartOfBlocks = true;
      |     ~~~~~ ^
1 error generated.
[486/604] Linking CXX executable tools/flang/unittests/Evaluate/integer.test
[487/604] Linking CXX executable tools/flang/unittests/Evaluate/logical.test
[488/604] Linking CXX executable tools/flang/unittests/Evaluate/real.test
[489/604] Linking CXX executable tools/flang/unittests/Evaluate/ISO-Fortran-binding.test
[490/604] Linking CXX executable tools/flang/unittests/Evaluate/reshape.test
[491/604] Linking CXX executable tools/flang/unittests/Evaluate/folding.test
[492/604] Linking CXX executable tools/flang/unittests/Evaluate/expression.test
[493/604] Linking CXX executable tools/flang/unittests/Evaluate/intrinsics.test
[494/604] Linking CXX executable bin/bbc
[495/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ClangdServer.cpp.o
[496/604] Linking CXX executable bin/flang-new
[497/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/CodeComplete.cpp.o
[498/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/DumpAST.cpp.o
[499/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/BackgroundRebuild.cpp.o
[500/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/BackgroundQueue.cpp.o
[501/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/GlobalCompilationDatabase.cpp.o
[502/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/IndexAction.cpp.o
[503/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/BackgroundIndexLoader.cpp.o
[504/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/refactor/Tweak.cpp.o
[505/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/YAMLSerialization.cpp.o
[506/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/HeaderSourceSwitch.cpp.o
[507/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/SemanticSelection.cpp.o
[508/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Headers.cpp.o
[509/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Quality.cpp.o
[510/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/BackgroundIndexStorage.cpp.o
[511/604] Building CXX object tools/clang/tools/extra/clangd/indexer/CMakeFiles/clangd-indexer.dir/IndexerMain.cpp.o
[512/604] Building CXX object tools/clang/tools/extra/clangd/fuzzer/CMakeFiles/clangd-fuzzer.dir/clangd-fuzzer.cpp.o
[513/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/StdLib.cpp.o
[514/604] Building CXX object tools/clang/tools/extra/clangd/index/dex/dexp/CMakeFiles/dexp.dir/Dexp.cpp.o
[515/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/Serialization.cpp.o
[516/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/IncludeFixer.cpp.o
[517/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/IncludeCleaner.cpp.o
[518/604] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/SymbolCollector.cpp.o

```

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


More information about the cfe-commits mailing list