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


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `flang-runtime-cuda-clang` running on `as-builder-7` while building `clang` at step 7 "build-clang-default".

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

Here is the relevant piece of the build log for the reference:
```
Step 7 (build-clang-default) failure: cmake (failure)
...
32.958 [76/93/4583] Building CXX object tools/clang/tools/extra/include-cleaner/lib/CMakeFiles/obj.clangIncludeCleaner.dir/WalkAST.cpp.o
32.968 [75/93/4584] Building CXX object tools/clang/tools/extra/clang-tidy/CMakeFiles/obj.clangTidy.dir/ClangTidy.cpp.o
33.040 [74/93/4585] Linking CXX static library lib/libclangIncludeCleaner.a
33.086 [73/93/4586] Linking CXX static library lib/libclangTidy.a
33.384 [73/92/4587] Linking CXX executable bin/diagtool
34.238 [73/91/4588] Building CXX object tools/clang/lib/Tooling/Refactoring/CMakeFiles/obj.clangToolingRefactoring.dir/Rename/USRLocFinder.cpp.o
34.305 [71/92/4589] Linking CXX static library lib/libclangToolingRefactoring.a
34.343 [66/96/4590] Linking CXX static library lib/libclangApplyReplacements.a
34.419 [65/96/4591] Linking CXX static library lib/libclangTransformer.a
34.430 [64/96/4592] 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 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/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/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/build/clang/tools/clang/tools/extra/clangd -I/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/clang-tools-extra/clangd -I/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/clang-tools-extra/clangd/../include-cleaner/include -I/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/build/clang/tools/clang/tools/extra/clangd/../clang-tidy -I/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/clang/include -I/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/build/clang/tools/clang/include -I/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/build/clang/include -I/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/llvm/include -I/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/clang-tools-extra/pseudo/lib/../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -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/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/clang-tools-extra/clangd/Format.cpp
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/clang-tools-extra/clangd/Format.cpp: In function ‘std::vector<clang::tooling::Replacement> clang::clangd::formatIncremental(llvm::StringRef, unsigned int, llvm::StringRef, clang::format::FormatStyle)’:
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/clang-tools-extra/clangd/Format.cpp:284:11: error: ‘struct clang::format::FormatStyle’ has no member named ‘KeepEmptyLinesAtTheStartOfBlocks’
  284 |     Style.KeepEmptyLinesAtTheStartOfBlocks = true;
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34.625 [64/95/4593] Linking CXX static library lib/libclangTidyUtils.a
35.080 [64/94/4594] Linking CXX executable bin/llvm-dwarfutil
35.252 [64/93/4595] Linking CXX executable bin/clang-diff
35.340 [64/92/4596] Linking CXX executable bin/llvm-c-test
35.349 [64/91/4597] Linking CXX executable bin/pp-trace
35.568 [64/90/4598] Linking CXX executable bin/llvm-gsymutil
35.589 [64/89/4599] Linking CXX executable bin/llvm-exegesis
35.674 [64/88/4600] Building CXX object tools/clang/tools/extra/clang-tidy/bugprone/CMakeFiles/obj.clangTidyBugproneModule.dir/BugproneTidyModule.cpp.o
35.844 [64/87/4601] Linking CXX executable bin/modularize
35.846 [64/86/4602] Linking CXX executable bin/clang-apply-replacements
35.909 [64/85/4603] Linking CXX executable bin/llvm-split
35.932 [64/84/4604] Linking CXX executable bin/find-all-symbols
36.043 [64/83/4605] Linking CXX executable bin/llvm-isel-fuzzer
36.243 [64/82/4606] Linking CXX executable bin/llvm-dwp
36.308 [64/81/4607] Linking CXX executable bin/clang-reorder-fields
36.398 [64/80/4608] Linking CXX executable bin/clang-query
36.824 [64/79/4609] Linking CXX executable bin/arcmt-test
36.851 [64/78/4610] Linking CXX executable bin/dsymutil
36.917 [64/77/4611] Linking CXX shared module lib/SampleAnalyzerPlugin.so
37.032 [64/76/4612] Linking CXX executable bin/bugpoint
37.183 [64/75/4613] Linking CXX executable bin/lli
37.196 [64/74/4614] Linking CXX executable bin/clang-include-fixer
37.236 [64/73/4615] Linking CXX executable bin/clang-installapi
37.248 [64/72/4616] Linking CXX executable bin/clang-doc
37.358 [64/71/4617] Linking CXX executable bin/llvm-opt-fuzzer
37.480 [64/70/4618] Linking CXX executable bin/llc
37.578 [64/69/4619] Linking CXX executable bin/clang-extdef-mapping
37.593 [64/68/4620] Linking CXX executable bin/llvm-lto
37.648 [64/67/4621] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
37.783 [64/66/4622] Building CXX object tools/clang/tools/extra/clang-change-namespace/CMakeFiles/obj.clangChangeNamespace.dir/ChangeNamespace.cpp.o
37.900 [64/65/4623] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
38.057 [64/64/4624] Building CXX object tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/ExtractVariable.cpp.o
38.057 [64/63/4625] Linking CXX executable bin/llvm-lto2

```

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


More information about the cfe-commits mailing list