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

2024-06-29 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` 
running on `sanitizer-buildbot7` while building `clang-tools-extra,clang` at 
step 2 "annotate".

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

Here is the relevant piece of the build log for the reference:
```
Step 2 (annotate) failure: 'python 
../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py'
 (failure)
...
llvm-lit: 
/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60:
 warning: Path reported by clang does not exist: 
"/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/aarch64-unknown-linux-gnu".
 This path was found by running 
['/b/sanitizer-aarch64-linux/build/build_default/bin/clang', 
'--target=aarch64-unknown-linux-gnu', '-Wthread-safety', 
'-Wthread-safety-reference', '-Wthread-safety-beta', '-nobuiltininc', 
'-I/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/include', 
'-idirafter', 
'/b/sanitizer-aarch64-linux/build/build_default/lib/clang/19/include', 
'-resource-dir=/b/sanitizer-aarch64-linux/build/compiler_rt_build', 
'-Wl,-rpath,/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux', 
'-print-runtime-dir'].
llvm-lit: 
/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60:
 warning: Path reported by clang does not exist: 
"/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/aarch64-unknown-linux-gnu".
 This path was found by running 
['/b/sanitizer-aarch64-linux/build/build_default/bin/clang', 
'--target=aarch64-unknown-linux-gnu', '-Wthread-safety', 
'-Wthread-safety-reference', '-Wthread-safety-beta', '-nobuiltininc', 
'-I/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/include', 
'-idirafter', 
'/b/sanitizer-aarch64-linux/build/build_default/lib/clang/19/include', 
'-resource-dir=/b/sanitizer-aarch64-linux/build/compiler_rt_build', 
'-Wl,-rpath,/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux', 
'-print-runtime-dir'].
llvm-lit: 
/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60:
 warning: Path reported by clang does not exist: 
"/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/aarch64-unknown-linux-gnu".
 This path was found by running 
['/b/sanitizer-aarch64-linux/build/build_default/bin/clang', 
'--target=aarch64-unknown-linux-gnu', '-Wthread-safety', 
'-Wthread-safety-reference', '-Wthread-safety-beta', '-nobuiltininc', 
'-I/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/include', 
'-idirafter', 
'/b/sanitizer-aarch64-linux/build/build_default/lib/clang/19/include', 
'-resource-dir=/b/sanitizer-aarch64-linux/build/compiler_rt_build', 
'-Wl,-rpath,/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux', 
'-print-runtime-dir'].
llvm-lit: 
/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60:
 warning: Path reported by clang does not exist: 
"/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/aarch64-unknown-linux-gnu".
 This path was found by running 
['/b/sanitizer-aarch64-linux/build/build_default/bin/clang', 
'--target=aarch64-unknown-linux-gnu', '-Wthread-safety', 
'-Wthread-safety-reference', '-Wthread-safety-beta', '-nobuiltininc', 
'-I/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/include', 
'-idirafter', 
'/b/sanitizer-aarch64-linux/build/build_default/lib/clang/19/include', 
'-resource-dir=/b/sanitizer-aarch64-linux/build/compiler_rt_build', 
'-Wl,-rpath,/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux', 
'-print-runtime-dir'].
llvm-lit: 
/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60:
 warning: Path reported by clang does not exist: 
"/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/aarch64-unknown-linux-gnu".
 This path was found by running 
['/b/sanitizer-aarch64-linux/build/build_default/bin/clang', 
'--target=aarch64-unknown-linux-gnu', '-Wthread-safety', 
'-Wthread-safety-reference', '-Wthread-safety-beta', '-nobuiltininc', 
'-I/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/include', 
'-idirafter', 
'/b/sanitizer-aarch64-linux/build/build_default/lib/clang/19/include', 
'-resource-dir=/b/sanitizer-aarch64-linux/build/compiler_rt_build', 
'-Wl,-rpath,/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux', 
'-print-runtime-dir'].
llvm-lit: 
/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60:
 warning: Path reported by clang does not exist: 
"/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/aarch64-unknown-linux-gnu".
 This path was found by running 
['/b/sanitizer-aarch64-linux/build/build_default/bin/clang', 
'--target=aarch64-unknown-linux-gnu', '-Wthread-safety', 
'-Wthread-safety-reference', '-Wthread-safety-beta', '-nobuiltininc', 
'-I/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/include', 
'-idirafter', 

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

2024-06-25 Thread Vitaly Buka via cfe-commits

vitalybuka wrote:

@sstwcw Please don't ignore the presubmit, it detected issue before merging:

Some checks were not successful
2 skipped, 65 successful, 48 failing, and 3 pending checks

https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder 
`sanitizer-x86_64-linux-bootstrap-asan` running on `sanitizer-buildbot2` while 
building `clang` at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference:
```
Step 2 (annotate) failure: 'python 
../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py'
 (failure)
...
[7421/8074] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FeatureModule.cpp.o
[7422/8074] Building CXX object 
tools/clang/tools/extra/clang-tidy/utils/CMakeFiles/obj.clangTidyUtils.dir/NamespaceAliaser.cpp.o
[7423/8074] Building CXX object 
tools/clang/tools/extra/clang-tidy/utils/CMakeFiles/obj.clangTidyUtils.dir/HeaderGuard.cpp.o
[7424/8074] Building CXX object 
tools/clang/tools/extra/pseudo/fuzzer/CMakeFiles/clang-pseudo-fuzzer.dir/Main.cpp.o
[7425/8074] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/DecisionForest.cpp.o
[7426/8074] Building CXX object 
tools/clang/tools/extra/pseudo/lib/CMakeFiles/obj.clangPseudo.dir/GLR.cpp.o
[7427/8074] Linking CXX static library lib/libclangPseudo.a
[7428/8074] Building CXX object 
tools/clang/tools/extra/clang-doc/CMakeFiles/obj.clangDoc.dir/YAMLGenerator.cpp.o
[7429/8074] Building CXX object 
tools/clang/tools/extra/include-cleaner/lib/CMakeFiles/obj.clangIncludeCleaner.dir/FindHeaders.cpp.o
[7430/8074] 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 
/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/bin/clang++ 
-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/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/tools/clang/tools/extra/clangd
 
-I/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang-tools-extra/clangd
 
-I/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang-tools-extra/clangd/../include-cleaner/include
 
-I/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/tools/clang/tools/extra/clangd/../clang-tidy
 -I/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/include 
-I/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/tools/clang/include
 -I/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/include 
-I/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include 
-I/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang-tools-extra/pseudo/lib/../include
 -nostdinc++ -isystem 
/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/include 
-isystem 
/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/include/c++/v1 
-fsanitize=address 
-Wl,--rpath=/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib
 -L/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib -w 
-stdlib=libc++ -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 -fno-omit-frame-pointer 
-gline-tables-only -fsanitize=address -fdiagnostics-color -ffunction-sections 
-fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 
-DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -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 
/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang-tools-extra/clangd/Format.cpp
/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang-tools-extra/clangd/Format.cpp:284:11:
 error: no member named 'KeepEmptyLinesAtTheStartOfBlocks' in 
'clang::format::FormatStyle'
  284 | Style.KeepEmptyLinesAtTheStartOfBlocks = true;
  | ~ ^
1 error generated.
[7431/8074] Building CXX object 
tools/clang/tools/extra/clang-doc/CMakeFiles/obj.clangDoc.dir/Representation.cpp.o
[7432/8074] Building CXX object 
tools/clang/tools/extra/clang-include-fixer/CMakeFiles/obj.clangIncludeFixer.dir/IncludeFixer.cpp.o
[7433/8074] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/RIFF.cpp.o
[7434/8074] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FileDistance.cpp.o

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder 
`sanitizer-x86_64-linux-bootstrap-msan` running on `sanitizer-buildbot5` while 
building `clang` at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference:
```
Step 2 (annotate) failure: 'python 
../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py'
 (failure)
...
[7415/8074] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FuzzyMatch.cpp.o
[7416/8074] Building CXX object 
tools/clang/tools/extra/clang-include-fixer/tool/CMakeFiles/clang-include-fixer.dir/ClangIncludeFixer.cpp.o
[7417/8074] Building CXX object 
tools/clang/tools/extra/clang-doc/CMakeFiles/obj.clangDoc.dir/BitcodeWriter.cpp.o
[7418/8074] Building CXX object 
tools/clang/tools/extra/clang-doc/CMakeFiles/obj.clangDoc.dir/ClangDoc.cpp.o
[7419/8074] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ConfigProvider.cpp.o
[7420/8074] Building CXX object 
tools/clang/tools/extra/include-cleaner/lib/CMakeFiles/obj.clangIncludeCleaner.dir/FindHeaders.cpp.o
[7421/8074] Building CXX object 
tools/clang/tools/extra/pseudo/lib/grammar/CMakeFiles/obj.clangPseudoGrammar.dir/GrammarBNF.cpp.o
[7422/8074] Linking CXX static library lib/libclangPseudoGrammar.a
[7423/8074] Linking CXX executable bin/clang-pseudo-gen
[7424/8074] 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 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build0/bin/clang++ 
-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/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/tools/extra/clangd
 
-I/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang-tools-extra/clangd
 
-I/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang-tools-extra/clangd/../include-cleaner/include
 
-I/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/tools/extra/clangd/../clang-tidy
 -I/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/include 
-I/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/include
 -I/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/include 
-I/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/include 
-I/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang-tools-extra/pseudo/lib/../include
 -nostdinc++ -isystem 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/libcxx_build_msan/include 
-isystem 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/libcxx_build_msan/include/c++/v1 
-fsanitize=memory 
-Wl,--rpath=/b/sanitizer-x86_64-linux-bootstrap-msan/build/libcxx_build_msan/lib
 -L/b/sanitizer-x86_64-linux-bootstrap-msan/build/libcxx_build_msan/lib -w 
-stdlib=libc++ -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 -fno-omit-frame-pointer 
-gline-tables-only -fsanitize=memory -fdiagnostics-color -ffunction-sections 
-fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 
-DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -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 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang-tools-extra/clangd/Format.cpp
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang-tools-extra/clangd/Format.cpp:284:11:
 error: no member named 'KeepEmptyLinesAtTheStartOfBlocks' in 
'clang::format::FormatStyle'
  284 | Style.KeepEmptyLinesAtTheStartOfBlocks = true;
  | ~ ^
1 error generated.
[7425/8074] Generating bnf string file for cxx grammar...
[7426/8074] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/DecisionForest.cpp.o
[7427/8074] Building CXX object 
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/CMakeFiles/obj.findAllSymbols.dir/PragmaCommentHandler.cpp.o
[7428/8074] Building CXX object 
tools/clang/tools/extra/clang-tidy/utils/CMakeFiles/obj.clangTidyUtils.dir/UsingInserter.cpp.o
[7429/8074] Building CXX object 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder 
`sanitizer-x86_64-linux-bootstrap-ubsan` running on `sanitizer-buildbot3` while 
building `clang` at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference:
```
Step 2 (annotate) failure: 'python 
../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py'
 (failure)
...
[7377/8074] Building CXX object 
tools/clang/tools/extra/clang-tidy/utils/CMakeFiles/obj.clangTidyUtils.dir/UsingInserter.cpp.o
[7378/8074] Building CXX object 
tools/clang/tools/extra/pseudo/lib/grammar/CMakeFiles/obj.clangPseudoGrammar.dir/LRTableBuild.cpp.o
[7379/8074] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FuzzyMatch.cpp.o
[7380/8074] Building CXX object 
tools/clang/tools/extra/include-cleaner/lib/CMakeFiles/obj.clangIncludeCleaner.dir/FindHeaders.cpp.o
[7381/8074] Building CXX object 
tools/clang/tools/extra/clang-include-fixer/CMakeFiles/obj.clangIncludeFixer.dir/IncludeFixer.cpp.o
[7382/8074] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ConfigProvider.cpp.o
[7383/8074] Building CXX object 
tools/clang/tools/extra/clang-tidy/modernize/CMakeFiles/obj.clangTidyModernizeModule.dir/PassByValueCheck.cpp.o
[7384/8074] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FS.cpp.o
[7385/8074] Building CXX object 
tools/clang/tools/extra/clang-tidy/utils/CMakeFiles/obj.clangTidyUtils.dir/TransformerClangTidyCheck.cpp.o
[7386/8074] 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 
/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build0/bin/clang++ 
-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/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/clang/tools/extra/clangd
 
-I/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang-tools-extra/clangd
 
-I/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang-tools-extra/clangd/../include-cleaner/include
 
-I/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/clang/tools/extra/clangd/../clang-tidy
 -I/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/include 
-I/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/clang/include
 -I/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/include 
-I/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/include 
-I/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang-tools-extra/pseudo/lib/../include
 -nostdinc++ -isystem 
/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/libcxx_build_ubsan/include 
-isystem 
/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/libcxx_build_ubsan/include/c++/v1
 -fsanitize=undefined 
-Wl,--rpath=/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/libcxx_build_ubsan/lib
 -L/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/libcxx_build_ubsan/lib -w 
-stdlib=libc++ -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 -fno-omit-frame-pointer 
-gline-tables-only -fsanitize=undefined -fno-sanitize=vptr,function 
-fno-sanitize-recover=all 
-fsanitize-blacklist=/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/sanitizers/ubsan_ignorelist.txt
 -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common 
-Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  
-fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -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 
/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang-tools-extra/clangd/Format.cpp
/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang-tools-extra/clangd/Format.cpp:284:11:
 error: no member named 'KeepEmptyLinesAtTheStartOfBlocks' in 
'clang::format::FormatStyle'
  284 | Style.KeepEmptyLinesAtTheStartOfBlocks = true;
  | ~ ^
1 error generated.
[7387/8074] Building CXX object 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-armv7-2stage` 
running on `linaro-clang-armv7-2stage` while building `clang` at step 4 "build 
stage 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 4 (build stage 1) failure: 'ninja' (failure)
...
[116/272] Building CXX object 
tools/clang/tools/extra/clang-include-fixer/plugin/CMakeFiles/obj.clangIncludeFixerPlugin.dir/IncludeFixerPlugin.cpp.o
[117/272] Linking CXX executable bin/pp-trace
[118/272] Linking CXX executable bin/clang-include-fixer
[119/272] Building CXX object 
tools/clang/tools/extra/include-cleaner/tool/CMakeFiles/clang-include-cleaner.dir/IncludeCleaner.cpp.o
[120/272] Linking CXX static library lib/libclangIncludeFixerPlugin.a
[121/272] Linking CXX executable bin/clang-check
[122/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/CollectMacros.cpp.o
[123/272] Building CXX object 
tools/clang/tools/extra/tool-template/CMakeFiles/tool-template.dir/ToolTemplate.cpp.o
[124/272] Building CXX object 
tools/clang/tools/extra/clang-move/CMakeFiles/obj.clangMove.dir/Move.cpp.o
[125/272] 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_FILE_OFFSET_BITS=64 
-D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LARGEFILE_SOURCE 
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS 
-I/home/tcwg-buildbot/worker/clang-armv7-2stage/stage1/tools/clang/tools/extra/clangd
 -I/home/tcwg-buildbot/worker/clang-armv7-2stage/llvm/clang-tools-extra/clangd 
-I/home/tcwg-buildbot/worker/clang-armv7-2stage/llvm/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/tcwg-buildbot/worker/clang-armv7-2stage/stage1/tools/clang/tools/extra/clangd/../clang-tidy
 -I/home/tcwg-buildbot/worker/clang-armv7-2stage/llvm/clang/include 
-I/home/tcwg-buildbot/worker/clang-armv7-2stage/stage1/tools/clang/include 
-I/home/tcwg-buildbot/worker/clang-armv7-2stage/stage1/include 
-I/home/tcwg-buildbot/worker/clang-armv7-2stage/llvm/llvm/include 
-I/home/tcwg-buildbot/worker/clang-armv7-2stage/llvm/clang-tools-extra/pseudo/lib/../include
 -mcpu=cortex-a15 -marm -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-armv7-2stage/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.
[126/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ASTSignals.cpp.o
[127/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Diagnostics.cpp.o
[128/272] Building CXX object 
tools/clang/tools/extra/include-cleaner/lib/CMakeFiles/obj.clangIncludeCleaner.dir/WalkAST.cpp.o
[129/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FindSymbols.cpp.o
[130/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/GlobalCompilationDatabase.cpp.o
[131/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ClangdServer.cpp.o
[132/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ClangdLSPServer.cpp.o
[133/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/DumpAST.cpp.o
[134/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/AST.cpp.o
[135/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FindTarget.cpp.o
[136/272] Linking CXX executable bin/clang-19
[137/272] Linking CXX executable bin/clang-repl
[138/272] Linking CXX shared library lib/libclang-cpp.so.19.0git
ninja: build stopped: subcommand failed.

```


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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-armv7-vfpv3-2stage` 
running on `linaro-clang-armv7-vfpv3-2stage` while building `clang` at step 4 
"build stage 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 4 (build stage 1) failure: 'ninja' (failure)
...
[116/272] Building CXX object 
tools/clang/tools/extra/include-cleaner/tool/CMakeFiles/clang-include-cleaner.dir/IncludeCleaner.cpp.o
[117/272] Building CXX object 
tools/clang/tools/extra/clang-move/CMakeFiles/obj.clangMove.dir/Move.cpp.o
[118/272] Linking CXX executable bin/clang-check
[119/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ASTSignals.cpp.o
[120/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/CollectMacros.cpp.o
[121/272] Linking CXX static library lib/libclangMove.a
[122/272] Building CXX object 
tools/clang/tools/extra/tool-template/CMakeFiles/tool-template.dir/ToolTemplate.cpp.o
[123/272] Building CXX object 
tools/clang/tools/extra/include-cleaner/lib/CMakeFiles/obj.clangIncludeCleaner.dir/WalkAST.cpp.o
[124/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Diagnostics.cpp.o
[125/272] 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_FILE_OFFSET_BITS=64 
-D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LARGEFILE_SOURCE 
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS 
-I/home/tcwg-buildbot/worker/clang-armv7-vfpv3-2stage/stage1/tools/clang/tools/extra/clangd
 
-I/home/tcwg-buildbot/worker/clang-armv7-vfpv3-2stage/llvm/clang-tools-extra/clangd
 
-I/home/tcwg-buildbot/worker/clang-armv7-vfpv3-2stage/llvm/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/tcwg-buildbot/worker/clang-armv7-vfpv3-2stage/stage1/tools/clang/tools/extra/clangd/../clang-tidy
 -I/home/tcwg-buildbot/worker/clang-armv7-vfpv3-2stage/llvm/clang/include 
-I/home/tcwg-buildbot/worker/clang-armv7-vfpv3-2stage/stage1/tools/clang/include
 -I/home/tcwg-buildbot/worker/clang-armv7-vfpv3-2stage/stage1/include 
-I/home/tcwg-buildbot/worker/clang-armv7-vfpv3-2stage/llvm/llvm/include 
-I/home/tcwg-buildbot/worker/clang-armv7-vfpv3-2stage/llvm/clang-tools-extra/pseudo/lib/../include
 -mcpu=cortex-a15 -mfpu=vfpv3 -marm -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-armv7-vfpv3-2stage/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.
[126/272] Linking CXX executable bin/clang-move
[127/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ClangdServer.cpp.o
[128/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/CodeComplete.cpp.o
[129/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FindSymbols.cpp.o
[130/272] Linking CXX executable bin/tool-template
[131/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/GlobalCompilationDatabase.cpp.o
[132/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Headers.cpp.o
[133/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ClangdLSPServer.cpp.o
[134/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/DumpAST.cpp.o
[135/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FindTarget.cpp.o
[136/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/AST.cpp.o
[137/272] Linking CXX executable bin/clang-19
[138/272] Linking CXX executable bin/clang-repl
[139/272] 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux` 
running on `sanitizer-buildbot1` while building `clang` at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference:
```
Step 2 (annotate) failure: 'python 
../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py'
 (failure)
...
llvm-lit: 
/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60:
 warning: Path reported by clang does not exist: 
"/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/lib/i386-unknown-linux-gnu".
 This path was found by running 
['/b/sanitizer-x86_64-linux/build/build_default/./bin/clang', 
'--target=x86_64-unknown-linux-gnu', '-m32', '-print-runtime-dir'].
llvm-lit: 
/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60:
 warning: Path reported by clang does not exist: 
"/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/lib/x86_64-unknown-linux-gnu".
 This path was found by running 
['/b/sanitizer-x86_64-linux/build/build_default/./bin/clang', 
'--target=x86_64-unknown-linux-gnu', '-m64', '-print-runtime-dir'].
llvm-lit: 
/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60:
 warning: Path reported by clang does not exist: 
"/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/lib/x86_64-unknown-linux-gnu".
 This path was found by running 
['/b/sanitizer-x86_64-linux/build/build_default/./bin/clang', 
'--target=x86_64-unknown-linux-gnu', '-Wthread-safety', 
'-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: 
/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60:
 warning: Path reported by clang does not exist: 
"/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/lib/x86_64-unknown-linux-gnu".
 This path was found by running 
['/b/sanitizer-x86_64-linux/build/build_default/./bin/clang', 
'--target=x86_64-unknown-linux-gnu', '-m64', '-print-runtime-dir'].
llvm-lit: 
/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60:
 warning: Path reported by clang does not exist: 
"/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/lib/x86_64-unknown-linux-gnu".
 This path was found by running 
['/b/sanitizer-x86_64-linux/build/build_default/./bin/clang', 
'--target=x86_64-unknown-linux-gnu', '-m64', '-print-runtime-dir'].
llvm-lit: 
/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60:
 warning: Path reported by clang does not exist: 
"/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/lib/x86_64-unknown-linux-gnu".
 This path was found by running 
['/b/sanitizer-x86_64-linux/build/build_default/./bin/clang', 
'--target=x86_64-unknown-linux-gnu', '-m64', '-print-runtime-dir'].
llvm-lit: 
/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60:
 warning: Path reported by clang does not exist: 
"/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/lib/x86_64-unknown-linux-gnu".
 This path was found by running 
['/b/sanitizer-x86_64-linux/build/build_default/./bin/clang', 
'--target=x86_64-unknown-linux-gnu', '-m64', '-print-runtime-dir'].
llvm-lit: 
/b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/main.py:72: 
note: The test suite configuration requested an individual test timeout of 0 
seconds but a timeout of 900 seconds was requested on the command line. Forcing 
timeout to be 900 seconds.
-- Testing: 9980 tests, 80 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80
FAIL: libFuzzer-i386-libcxx-Linux :: fuzzer-finalstats.test (1979 of 9980)
 TEST 'libFuzzer-i386-libcxx-Linux :: 
fuzzer-finalstats.test' FAILED 
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /b/sanitizer-x86_64-linux/build/build_default/./bin/clang
-Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   
--driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer 
-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer -m32 
/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/SimpleTest.cpp
 -o 
/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/fuzzer/I386LibcxxLinuxConfig/Output/fuzzer-finalstats.test.tmp-SimpleTest
+ /b/sanitizer-x86_64-linux/build/build_default/./bin/clang -Wthread-safety 
-Wthread-safety-reference -Wthread-safety-beta --driver-mode=g++ -O2 
-gline-tables-only -fsanitize=address,fuzzer 
-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer -m32 
/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/SimpleTest.cpp
 -o 
/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/fuzzer/I386LibcxxLinuxConfig/Output/fuzzer-finalstats.test.tmp-SimpleTest
RUN: at line 2: 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder 
`sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot3` while building 
`clang` at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference:
```
Step 2 (annotate) failure: 'python 
../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py'
 (failure)
...
[263/364] Linking CXX executable bin/find-all-symbols
[264/364] Linking CXX executable bin/modularize
[265/364] Linking CXX executable bin/clang-diff
[266/364] Linking CXX executable bin/clang-reorder-fields
[267/364] Linking CXX executable bin/clang-include-fixer
[268/364] Building CXX object 
tools/clang/tools/extra/clang-tidy/CMakeFiles/obj.clangTidy.dir/ClangTidy.cpp.o
[269/364] Linking CXX executable bin/clang-extdef-mapping
[270/364] Linking CXX executable bin/clang-query
[271/364] Linking CXX static library lib/libclangTidy.a
[272/364] 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 
/b/sanitizer-x86_64-linux-fast/build/llvm_build0/bin/clang++ -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/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/clang/tools/extra/clangd
 -I/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang-tools-extra/clangd 
-I/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang-tools-extra/clangd/../include-cleaner/include
 
-I/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/clang/tools/extra/clangd/../clang-tidy
 -I/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/include 
-I/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/clang/include
 -I/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/include 
-I/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include 
-I/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang-tools-extra/pseudo/lib/../include
 -nostdinc++ -isystem 
/b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include -isystem 
/b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include/c++/v1 
-fsanitize=address,undefined 
-Wl,--rpath=/b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/lib 
-L/b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/lib -w 
-stdlib=libc++ -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 -fno-omit-frame-pointer 
-gline-tables-only -fsanitize=address -fsanitize=undefined 
-fno-sanitize=vptr,function -fno-sanitize-recover=all 
-fsanitize-blacklist=/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/sanitizers/ubsan_ignorelist.txt
 -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common 
-Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  
-fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -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 
/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang-tools-extra/clangd/Format.cpp
/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang-tools-extra/clangd/Format.cpp:284:11:
 error: no member named 'KeepEmptyLinesAtTheStartOfBlocks' in 
'clang::format::FormatStyle'
  284 | Style.KeepEmptyLinesAtTheStartOfBlocks = true;
  | ~ ^
1 error generated.
[273/364] Linking CXX shared library lib/libclang.so.19.0.0git
[274/364] Building CXX object 
tools/clang/tools/extra/clangd/tool/CMakeFiles/obj.clangdMain.dir/ClangdMain.cpp.o
[275/364] Linking CXX executable bin/clang-check
[276/364] Building CXX object 
tools/clang/tools/extra/clang-change-namespace/CMakeFiles/obj.clangChangeNamespace.dir/ChangeNamespace.cpp.o
[277/364] Building CXX object 
tools/clang/tools/extra/clang-move/CMakeFiles/obj.clangMove.dir/Move.cpp.o
[278/364] Building CXX object 
tools/clang/tools/extra/clang-tidy/bugprone/CMakeFiles/obj.clangTidyBugproneModule.dir/BugproneTidyModule.cpp.o
[279/364] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/BackgroundRebuild.cpp.o
[280/364] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/CollectMacros.cpp.o
[281/364] Building CXX 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

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 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` 
running on `fuchsia-debian-64-us-central1-a-1` while building `clang` at step 4 
"annotate".

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

Here is the relevant piece of the build log for the reference:
```
Step 4 (annotate) failure: 'python 
../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
clang++: warning: optimization flag '-ffat-lto-objects' is not supported 
[-Wignored-optimization-argument]
[4119/4647] Building CXX object 
tools/clang/tools/extra/clang-tidy/modernize/CMakeFiles/obj.clangTidyModernizeModule.dir/LoopConvertUtils.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported 
[-Wignored-optimization-argument]
[4120/4647] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/RIFF.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported 
[-Wignored-optimization-argument]
[4121/4647] Building CXX object 
tools/clang/tools/extra/clang-doc/CMakeFiles/obj.clangDoc.dir/YAMLGenerator.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported 
[-Wignored-optimization-argument]
[4122/4647] Building CXX object 
tools/clang/tools/extra/clang-tidy/utils/CMakeFiles/obj.clangTidyUtils.dir/HeaderGuard.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported 
[-Wignored-optimization-argument]
[4123/4647] 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/clang++ 
-DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS 
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS 
-I/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-qrcwx3za/tools/clang/tools/extra/clangd
 -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang-tools-extra/clangd 
-I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang-tools-extra/clangd/../include-cleaner/include
 
-I/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-qrcwx3za/tools/clang/tools/extra/clangd/../clang-tidy
 -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/include 
-I/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-qrcwx3za/tools/clang/include
 -I/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-qrcwx3za/include 
-I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include 
-I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang-tools-extra/pseudo/lib/../include
 -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 -Wno-comment -Wstring-conversion 
-Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color 
-ffunction-sections -fdata-sections -ffat-lto-objects -no-canonical-prefixes 
-fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 
-fvisibility=default  -fno-exceptions -fno-unwind-tables 
-fno-asynchronous-unwind-tables -fno-rtti -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 
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang-tools-extra/clangd/Format.cpp
clang++: warning: optimization flag '-ffat-lto-objects' is not supported 
[-Wignored-optimization-argument]
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang-tools-extra/clangd/Format.cpp:284:11:
 error: no member named 'KeepEmptyLinesAtTheStartOfBlocks' in 
'clang::format::FormatStyle'
  284 | Style.KeepEmptyLinesAtTheStartOfBlocks = true;
  | ~ ^
1 error generated.
[4124/4647] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/PathMapping.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported 
[-Wignored-optimization-argument]
[4125/4647] Building CXX object 
tools/clang/tools/extra/clang-include-fixer/tool/CMakeFiles/clang-include-fixer.dir/ClangIncludeFixer.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported 
[-Wignored-optimization-argument]
[4126/4647] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ExpectedTypes.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported 
[-Wignored-optimization-argument]
[4127/4647] Building CXX object 
tools/clang/tools/extra/include-cleaner/lib/CMakeFiles/obj.clangIncludeCleaner.dir/HTMLReport.cpp.o
clang++: warning: 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder 
`clang-aarch64-sve-vla-2stage` 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/41/builds/269

Here is the relevant piece of the build log for the reference:
```
Step 6 (build stage 1) failure: 'ninja' (failure)
...
clang++: warning: argument unused during compilation: '-mllvm 
-scalable-vectorization=preferred' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-mllvm 
-treat-scalable-fixed-error-as-warning=false' [-Wunused-command-line-argument]
[2076/2551] Building CXX object 
tools/clang/tools/extra/tool-template/CMakeFiles/tool-template.dir/ToolTemplate.cpp.o
[2077/2551] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/MemberwiseConstructor.cpp.o
[2078/2551] Building CXX object 
tools/clang/tools/extra/clang-tidy/bugprone/CMakeFiles/obj.clangTidyBugproneModule.dir/StringviewNullptrCheck.cpp.o
[2079/2551] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/DefineOutline.cpp.o
[2080/2551] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/PopulateSwitch.cpp.o
[2081/2551] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/ObjCMemberwiseInitializer.cpp.o
[2082/2551] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/RawStringLiteral.cpp.o
[2083/2551] 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-2stage/stage1/tools/clang/tools/extra/clangd
 
-I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/llvm/clang-tools-extra/clangd
 
-I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/llvm/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage1/tools/clang/tools/extra/clangd/../clang-tidy
 -I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/llvm/clang/include 
-I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage1/tools/clang/include
 -I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage1/include 
-I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/llvm/llvm/include 
-I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/llvm/clang-tools-extra/pseudo/lib/../include
 -mcpu=neoverse-512tvb -mllvm -scalable-vectorization=preferred -mllvm 
-treat-scalable-fixed-error-as-warning=false -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 -Wno-comment -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-2stage/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.
[2084/2551] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/SwapIfBranches.cpp.o
[2085/2551] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/DefineInline.cpp.o
[2086/2551] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/ScopifyEnum.cpp.o
[2087/2551] Building CXX object 
tools/clang/tools/extra/clang-change-namespace/CMakeFiles/obj.clangChangeNamespace.dir/ChangeNamespace.cpp.o
[2088/2551] Building CXX object 
tools/clang/tools/extra/clang-tidy/bugprone/CMakeFiles/obj.clangTidyBugproneModule.dir/BugproneTidyModule.cpp.o
[2089/2551] Building CXX object 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-s390x-linux-lnt` 
running on `systemz-1` while building `clang` at step 6 "build stage 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 6 (build stage 1) failure: 'ninja -j4' (failure)
...
In file included from 
/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/clang-tools-extra/clangd/URI.h:12,
 from 
/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/clang-tools-extra/clangd/Protocol.h:26,
 from 
/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/clang-tools-extra/clangd/FindSymbols.h:15,
 from 
/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/clang-tools-extra/clangd/FindSymbols.cpp:8:
In function 'clang::clangd::{anonymous}::PragmaMarkSymbol 
clang::clangd::{anonymous}::markToSymbol(const clang::clangd::PragmaMark&)',
inlined from 'std::vector 
clang::clangd::{anonymous}::collectDocSymbols(clang::clangd::ParsedAST&)' at 
/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/clang-tools-extra/clangd/FindSymbols.cpp:640:35:
/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/llvm/include/llvm/ADT/StringRef.h:879:20:
 warning: 'int __builtin_memcmp_eq(const void*, const void*, long unsigned 
int)' specified size 18446744073709551615 exceeds maximum object size 
9223372036854775807 [-Wstringop-overflow=]
  879 | return ::memcmp(LHS.data(), RHS.data(), LHS.size()) == 0;
  |^~~~
[145/281] 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/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/stage1/tools/clang/tools/extra/clangd
 
-I/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/clang-tools-extra/clangd
 
-I/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/stage1/tools/clang/tools/extra/clangd/../clang-tidy
 -I/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/clang/include 
-I/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/stage1/tools/clang/include
 -I/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/stage1/include 
-I/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/llvm/include 
-I/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/clang-tools-extra/pseudo/lib/../include
 -fPIC -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 -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/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/clang-tools-extra/clangd/Format.cpp
/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/clang-tools-extra/clangd/Format.cpp:
 In function 'std::vector 
clang::clangd::formatIncremental(llvm::StringRef, unsigned int, 
llvm::StringRef, clang::format::FormatStyle)':
/home/uweigand/sandbox/buildbot/clang-s390x-linux-lnt/llvm/clang-tools-extra/clangd/Format.cpp:284:11:
 error: 'struct clang::format::FormatStyle' has no member named 
'KeepEmptyLinesAtTheStartOfBlocks'
  284 | Style.KeepEmptyLinesAtTheStartOfBlocks = true;
  |   ^~~~
[146/281] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/DumpAST.cpp.o
[147/281] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/GlobalCompilationDatabase.cpp.o
[148/281] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FindTarget.cpp.o
ninja: build stopped: subcommand failed.

```

https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-s390x-linux` running 
on `systemz-1` while building `clang` at step 4 "build stage 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 4 (build stage 1) failure: 'ninja -j4' (failure)
...
In file included from 
/home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/clang-tools-extra/clangd/URI.h:12,
 from 
/home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/clang-tools-extra/clangd/Protocol.h:26,
 from 
/home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/clang-tools-extra/clangd/FindSymbols.h:15,
 from 
/home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/clang-tools-extra/clangd/FindSymbols.cpp:8:
In function 'clang::clangd::{anonymous}::PragmaMarkSymbol 
clang::clangd::{anonymous}::markToSymbol(const clang::clangd::PragmaMark&)',
inlined from 'std::vector 
clang::clangd::{anonymous}::collectDocSymbols(clang::clangd::ParsedAST&)' at 
/home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/clang-tools-extra/clangd/FindSymbols.cpp:640:35:
/home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/llvm/include/llvm/ADT/StringRef.h:879:20:
 warning: 'int __builtin_memcmp_eq(const void*, const void*, long unsigned 
int)' specified size 18446744073709551615 exceeds maximum object size 
9223372036854775807 [-Wstringop-overflow=]
  879 | return ::memcmp(LHS.data(), RHS.data(), LHS.size()) == 0;
  |^~~~
[148/281] 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/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/tools/clang/tools/extra/clangd
 
-I/home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/clang-tools-extra/clangd
 
-I/home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/tools/clang/tools/extra/clangd/../clang-tidy
 -I/home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/clang/include 
-I/home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/tools/clang/include 
-I/home/uweigand/sandbox/buildbot/clang-s390x-linux/stage1/include 
-I/home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/llvm/include 
-I/home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/clang-tools-extra/pseudo/lib/../include
 -fPIC -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 -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/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/clang-tools-extra/clangd/Format.cpp
/home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/clang-tools-extra/clangd/Format.cpp:
 In function 'std::vector 
clang::clangd::formatIncremental(llvm::StringRef, unsigned int, 
llvm::StringRef, clang::format::FormatStyle)':
/home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/clang-tools-extra/clangd/Format.cpp:284:11:
 error: 'struct clang::format::FormatStyle' has no member named 
'KeepEmptyLinesAtTheStartOfBlocks'
  284 | Style.KeepEmptyLinesAtTheStartOfBlocks = true;
  |   ^~~~
[149/281] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/DumpAST.cpp.o
[150/281] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/GlobalCompilationDatabase.cpp.o
[151/281] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FindTarget.cpp.o
ninja: build stopped: subcommand failed.

```

https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-solaris11-sparcv9` 
running on `solaris11-sparcv9` while building `clang` at step 4 "build stage 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 4 (build stage 1) failure: 'ninja -j8' (failure)
...
[100/275] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/ExtractVariable.cpp.o
[101/275] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/ExtractFunction.cpp.o
[102/275] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/SwapIfBranches.cpp.o
[103/275] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/SpecialMembers.cpp.o
[104/275] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ASTSignals.cpp.o
[105/275] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/RemoveUsingNamespace.cpp.o
[106/275] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/CollectMacros.cpp.o
[107/275] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ClangdServer.cpp.o
[108/275] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FindSymbols.cpp.o
[109/275] 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 
/opt/llvm/17/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_FILE_OFFSET_BITS=64 
-D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS 
-D__STDC_LIMIT_MACROS 
-I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/tools/extra/clangd
 
-I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang-tools-extra/clangd
 
-I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang-tools-extra/clangd/../include-cleaner/include
 
-I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/tools/extra/clangd/../clang-tidy
 
-I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang/include
 
-I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/include
 
-I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/include
 
-I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/include
 
-I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/include/llvm/Support/Solaris
 
-I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang-tools-extra/pseudo/lib/../include
 -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  -O -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 
/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang-tools-extra/clangd/Format.cpp
/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/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.
[110/275] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/CodeComplete.cpp.o
[111/275] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Diagnostics.cpp.o
[112/275] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/AST.cpp.o
[113/275] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ClangdLSPServer.cpp.o
[114/275] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/DumpAST.cpp.o
[115/275] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/GlobalCompilationDatabase.cpp.o
[116/275] Building CXX object 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-debian-cpp20` 
running on `clang-debian-cpp20` while building `clang` at step 5 
"build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
138.143 [553/17/5170] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FileDistance.cpp.o
138.200 [552/17/5171] Linking CXX static library lib/libclangIncludeFixer.a
138.280 [551/17/5172] Linking CXX static library 
lib/libclangIncludeFixerPlugin.a
141.959 [550/17/5173] Building CXX object 
tools/clang/tools/extra/clang-change-namespace/CMakeFiles/obj.clangChangeNamespace.dir/ChangeNamespace.cpp.o
142.093 [549/17/5174] Linking CXX static library lib/libclangChangeNamespace.a
142.343 [548/17/5175] Linking CXX executable bin/clang-include-fixer
142.354 [547/17/5176] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FS.cpp.o
142.378 [546/17/5177] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FuzzyMatch.cpp.o
143.554 [545/17/5178] Building CXX object 
tools/clang/tools/extra/include-cleaner/tool/CMakeFiles/clang-include-cleaner.dir/IncludeCleaner.cpp.o
145.500 [544/17/5179] 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 /usr/bin/clang++-17 -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/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/tools/extra/clangd
 
-I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang-tools-extra/clangd
 
-I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang-tools-extra/clangd/../include-cleaner/include
 
-I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/tools/extra/clangd/../clang-tidy
 -I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/include 
-I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/include 
-I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/include 
-I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/include 
-I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang-tools-extra/pseudo/lib/../include
 -Wno-deprecated-enum-enum-conversion -Wno-deprecated-declarations 
-Wno-deprecated-anon-enum-enum-conversion -Wno-ambiguous-reversed-operator 
-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 -std=c++20  -fno-exceptions -funwind-tables 
-fno-rtti -UNDEBUG -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 
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang-tools-extra/clangd/Format.cpp
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang-tools-extra/clangd/Format.cpp:284:11:
 error: no member named 'KeepEmptyLinesAtTheStartOfBlocks' in 
'clang::format::FormatStyle'
  284 | Style.KeepEmptyLinesAtTheStartOfBlocks = true;
  | ~ ^
1 error generated.
145.578 [544/16/5180] Linking CXX executable bin/clang-change-namespace
150.255 [544/15/5181] Building CXX object 
tools/clang/tools/extra/clang-move/CMakeFiles/obj.clangMove.dir/Move.cpp.o
150.359 [544/14/5182] Building CXX object 
tools/clang/tools/extra/tool-template/CMakeFiles/tool-template.dir/ToolTemplate.cpp.o
150.561 [544/13/5183] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ASTSignals.cpp.o
151.096 [544/12/5184] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/CollectMacros.cpp.o
152.858 [544/11/5185] Building CXX object 
tools/clang/tools/extra/include-cleaner/lib/CMakeFiles/obj.clangIncludeCleaner.dir/WalkAST.cpp.o
156.374 [544/10/5186] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/GlobalCompilationDatabase.cpp.o
157.388 [544/9/5187] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FindSymbols.cpp.o
158.114 [544/8/5188] Building CXX object 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-armv7-lnt` running 
on `linaro-clang-armv7-lnt` while building `clang` at step 6 "build stage 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 6 (build stage 1) failure: 'ninja' (failure)
...
[151/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/Serialization.cpp.o
[152/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/IndexAction.cpp.o
[153/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/Background.cpp.o
[154/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/BackgroundQueue.cpp.o
[155/272] Linking CXX executable bin/diagtool
[156/272] Linking CXX shared module 
lib/CheckerDependencyHandlingAnalyzerPlugin.so
[157/272] Linking CXX executable bin/amdgpu-arch
[158/272] Linking CXX shared module lib/SampleAnalyzerPlugin.so
[159/272] Linking CXX executable bin/clang-diff
[160/272] 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_FILE_OFFSET_BITS=64 
-D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LARGEFILE_SOURCE 
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS 
-I/home/tcwg-buildbot/worker/clang-armv7-lnt/stage1/tools/clang/tools/extra/clangd
 -I/home/tcwg-buildbot/worker/clang-armv7-lnt/llvm/clang-tools-extra/clangd 
-I/home/tcwg-buildbot/worker/clang-armv7-lnt/llvm/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/tcwg-buildbot/worker/clang-armv7-lnt/stage1/tools/clang/tools/extra/clangd/../clang-tidy
 -I/home/tcwg-buildbot/worker/clang-armv7-lnt/llvm/clang/include 
-I/home/tcwg-buildbot/worker/clang-armv7-lnt/stage1/tools/clang/include 
-I/home/tcwg-buildbot/worker/clang-armv7-lnt/stage1/include 
-I/home/tcwg-buildbot/worker/clang-armv7-lnt/llvm/llvm/include 
-I/home/tcwg-buildbot/worker/clang-armv7-lnt/llvm/clang-tools-extra/pseudo/lib/../include
 -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-armv7-lnt/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.
[161/272] Linking CXX executable bin/arcmt-test
[162/272] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[163/272] Linking CXX executable bin/llvm-strings
[164/272] Linking CXX executable bin/llvm-sim
[165/272] Linking CXX executable bin/clang-include-fixer
[166/272] Linking CXX executable bin/llvm-modextract
[167/272] Linking CXX executable bin/llvm-objcopy
[168/272] Linking CXX executable bin/llvm-ml
[169/272] Linking CXX executable bin/clang-reorder-fields
[170/272] Linking CXX executable bin/pp-trace
[171/272] Linking CXX executable bin/llvm-pdbutil
[172/272] Linking CXX executable bin/llvm-size
[173/272] Linking CXX executable bin/tool-template
[174/272] Linking CXX executable bin/llvm-libtool-darwin
[175/272] Linking CXX executable bin/llvm-mca
[176/272] Linking CXX executable bin/llvm-tli-checker
[177/272] Linking CXX executable bin/clang-extdef-mapping
[178/272] Linking CXX executable bin/clang-query
[179/272] Linking CXX executable bin/clang-change-namespace
[180/272] Linking CXX executable bin/yaml2obj
[181/272] Linking CXX executable bin/clang-move
[182/272] Linking CXX executable bin/llvm-rtdyld
[183/272] Linking CXX executable bin/clang-refactor
[184/272] Linking CXX executable bin/clang-doc
[185/272] Linking CXX executable bin/llvm-readobj
[186/272] Linking CXX executable bin/sancov
[187/272] Linking CXX executable bin/obj2yaml
[188/272] Linking CXX executable bin/modularize
[189/272] Linking CXX executable bin/clang-include-cleaner
[190/272] Linking 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-darwin` 
running on `doug-worker-3` while building `clang` at step 5 
"build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
203.330 [1692/12/4091] Linking CXX static library lib/libclangTidyPlugin.a
203.359 [1691/12/4092] Linking CXX static library lib/libclangTidyMain.a
206.004 [1690/12/4093] Linking CXX executable bin/clang-tidy
208.168 [1689/12/4094] Linking CXX executable bin/clang-include-cleaner
208.217 [1688/12/4095] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FileDistance.cpp.o
209.416 [1687/12/4096] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/CollectMacros.cpp.o
209.467 [1686/12/4097] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FS.cpp.o
209.517 [1685/12/4098] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FuzzyMatch.cpp.o
210.983 [1684/12/4099] Building CXX object 
tools/clang/tools/extra/include-cleaner/unittests/CMakeFiles/ClangIncludeCleanerTests.dir/LocateSymbolTest.cpp.o
213.402 [1683/12/4100] 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/local/bin/ccache /usr/bin/clang++ 
-DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS 
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS 
-I/Users/buildbot/buildbot-root/x86_64-darwin/build/tools/clang/tools/extra/clangd
 
-I/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/clang-tools-extra/clangd
 
-I/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/clang-tools-extra/clangd/../include-cleaner/include
 
-I/Users/buildbot/buildbot-root/x86_64-darwin/build/tools/clang/tools/extra/clangd/../clang-tidy
 -I/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/clang/include 
-I/Users/buildbot/buildbot-root/x86_64-darwin/build/tools/clang/include 
-I/Users/buildbot/buildbot-root/x86_64-darwin/build/include 
-I/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/include 
-I/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/clang-tools-extra/pseudo/lib/../include
 -isystem /usr/local/include -fPIC -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 
-fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 
-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk  
-fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -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 
/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/clang-tools-extra/clangd/Format.cpp
/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/clang-tools-extra/clangd/Format.cpp:284:11:
 error: no member named 'KeepEmptyLinesAtTheStartOfBlocks' in 
'clang::format::FormatStyle'
Style.KeepEmptyLinesAtTheStartOfBlocks = true;
~ ^
1 error generated.
216.674 [1683/11/4101] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FindSymbols.cpp.o
219.272 [1683/10/4102] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Diagnostics.cpp.o
219.370 [1683/9/4103] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ClangdServer.cpp.o
220.840 [1683/8/4104] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/CodeComplete.cpp.o
222.855 [1683/7/4105] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/GlobalCompilationDatabase.cpp.o
223.733 [1683/6/4106] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ClangdLSPServer.cpp.o
223.795 [1683/5/4107] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/AST.cpp.o
224.448 [1683/4/4108] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Headers.cpp.o
225.595 [1683/3/4109] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/DumpAST.cpp.o
226.600 [1683/2/4110] Building CXX object 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-armv7-global-isel` 
running on `linaro-clang-armv7-global-isel` while building `clang` at step 6 
"build stage 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 6 (build stage 1) failure: 'ninja' (failure)
...
[123/272] Linking CXX executable bin/clang-move
[124/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/IncludeCleaner.cpp.o
[125/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Hover.cpp.o
[126/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/HeaderSourceSwitch.cpp.o
[127/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/IncludeFixer.cpp.o
[128/272] Linking CXX executable bin/clang-include-fixer
[129/272] Linking CXX executable bin/pp-trace
[130/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Preamble.cpp.o
[131/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Quality.cpp.o
[132/272] 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_FILE_OFFSET_BITS=64 
-D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LARGEFILE_SOURCE 
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS 
-I/home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/tools/clang/tools/extra/clangd
 
-I/home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/clang-tools-extra/clangd
 
-I/home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/tools/clang/tools/extra/clangd/../clang-tidy
 -I/home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/clang/include 
-I/home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/tools/clang/include 
-I/home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/include 
-I/home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/include 
-I/home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/clang-tools-extra/pseudo/lib/../include
 -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-armv7-global-isel/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.
[133/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ParsedAST.cpp.o
[134/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Selection.cpp.o
[135/272] Linking CXX executable bin/clang-include-cleaner
[136/272] Building CXX object 
tools/clang/lib/Tooling/Refactoring/CMakeFiles/obj.clangToolingRefactoring.dir/Rename/USRLocFinder.cpp.o
[137/272] Linking CXX executable bin/clang-scan-deps
[138/272] Linking CXX executable bin/clang-check
[139/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/AST.cpp.o
[140/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/InlayHints.cpp.o
[141/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ClangdLSPServer.cpp.o
[142/272] Linking CXX executable bin/clang-19
[143/272] Linking CXX executable bin/clang-repl
ninja: build stopped: subcommand failed.

```

https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` 
running on `doug-worker-5` while building `clang` at step 5 
"build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
90.694 [1676/8/4110] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FeatureModule.cpp.o
90.715 [1675/8/4111] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Feature.cpp.o
91.958 [1674/8/4112] Building CXX object 
tools/clang/tools/extra/include-cleaner/unittests/CMakeFiles/ClangIncludeCleanerTests.dir/FindHeadersTest.cpp.o
92.458 [1673/8/4113] Linking CXX executable 
tools/clang/tools/extra/include-cleaner/unittests/ClangIncludeCleanerTests
92.529 [1672/8/4114] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ClangdServer.cpp.o
92.549 [1671/8/4115] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FileDistance.cpp.o
93.641 [1670/8/4116] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/AST.cpp.o
93.670 [1669/8/4117] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FS.cpp.o
93.693 [1668/8/4118] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FuzzyMatch.cpp.o
94.142 [1667/8/4119] 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 /opt/homebrew/bin/ccache /usr/bin/clang++ 
-DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS 
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS 
-I/Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/tools/extra/clangd
 
-I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang-tools-extra/clangd
 
-I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang-tools-extra/clangd/../include-cleaner/include
 
-I/Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/tools/extra/clangd/../clang-tidy
 -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/include 
-I/Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/include 
-I/Users/buildbot/buildbot-root/aarch64-darwin/build/include 
-I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include 
-I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang-tools-extra/pseudo/lib/../include
 -isystem /opt/homebrew/include -fPIC -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 
-fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 
-arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk  
-fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -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 
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang-tools-extra/clangd/Format.cpp
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang-tools-extra/clangd/Format.cpp:284:11:
 error: no member named 'KeepEmptyLinesAtTheStartOfBlocks' in 
'clang::format::FormatStyle'
Style.KeepEmptyLinesAtTheStartOfBlocks = true;
~ ^
1 error generated.
94.448 [1667/7/4120] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/CodeComplete.cpp.o
94.493 [1667/6/4121] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Diagnostics.cpp.o
95.326 [1667/5/4122] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ClangdLSPServer.cpp.o
96.028 [1667/4/4123] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FindSymbols.cpp.o
97.361 [1667/3/4124] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/GlobalCompilationDatabase.cpp.o
98.256 [1667/2/4125] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/DumpAST.cpp.o
100.241 [1667/1/4126] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FindTarget.cpp.o
ninja: build stopped: subcommand failed.

```

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

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

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] 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clangd-ubuntu-tsan` 
running on `clangd-ubuntu-clang` while building `clang` at step 5 
"build-clangd-clangd-index-server-clangd-indexer".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-clangd-clangd-index-server-clangd-indexer) failure: build 
(failure)
...
123.978 [106/18/2950] Linking CXX static library lib/libclangTidyOpenMPModule.a
124.218 [105/18/2951] Linking CXX static library 
lib/libclangTidyPerformanceModule.a
124.355 [104/18/2952] Linking CXX static library 
lib/libclangTidyPortabilityModule.a
124.473 [103/18/2953] Linking CXX static library 
lib/libclangTidyLLVMLibcModule.a
125.006 [102/18/2954] Linking CXX static library 
lib/libclangTidyReadabilityModule.a
125.196 [101/18/2955] Linking CXX static library lib/libclangTidyGoogleModule.a
125.308 [100/18/2956] Linking CXX static library lib/libclangTidyFuchsiaModule.a
125.479 [99/18/2957] Linking CXX static library lib/libclangTidyLLVMModule.a
126.071 [98/18/2958] Linking CXX static library 
lib/libclangTidyModernizeModule.a
126.167 [97/18/2959] 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 /usr/bin/clang++ -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/vol/worker/clangd-ubuntu-clang/clangd-ubuntu-tsan/build/tools/clang/tools/extra/clangd
 
-I/vol/worker/clangd-ubuntu-clang/clangd-ubuntu-tsan/llvm-project/clang-tools-extra/clangd
 
-I/vol/worker/clangd-ubuntu-clang/clangd-ubuntu-tsan/llvm-project/clang-tools-extra/clangd/../include-cleaner/include
 
-I/vol/worker/clangd-ubuntu-clang/clangd-ubuntu-tsan/build/tools/clang/tools/extra/clangd/../clang-tidy
 
-I/vol/worker/clangd-ubuntu-clang/clangd-ubuntu-tsan/llvm-project/clang/include 
-I/vol/worker/clangd-ubuntu-clang/clangd-ubuntu-tsan/build/tools/clang/include 
-I/vol/worker/clangd-ubuntu-clang/clangd-ubuntu-tsan/build/include 
-I/vol/worker/clangd-ubuntu-clang/clangd-ubuntu-tsan/llvm-project/llvm/include 
-I/usr/local/lib/grpc/include 
-I/vol/worker/clangd-ubuntu-clang/clangd-ubuntu-tsan/llvm-project/clang-tools-extra/pseudo/lib/../include
 -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 -fno-omit-frame-pointer 
-gline-tables-only -fsanitize=thread -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 
/vol/worker/clangd-ubuntu-clang/clangd-ubuntu-tsan/llvm-project/clang-tools-extra/clangd/Format.cpp
/vol/worker/clangd-ubuntu-clang/clangd-ubuntu-tsan/llvm-project/clang-tools-extra/clangd/Format.cpp:284:11:
 error: no member named 'KeepEmptyLinesAtTheStartOfBlocks' in 
'clang::format::FormatStyle'
  284 | Style.KeepEmptyLinesAtTheStartOfBlocks = true;
  | ~ ^
1 error generated.
126.183 [97/17/2960] Linking CXX static library lib/libclangTidyZirconModule.a
127.263 [97/16/2961] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/DefineInline.cpp.o
130.294 [97/15/2962] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ASTSignals.cpp.o
133.296 [97/14/2963] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/CollectMacros.cpp.o
133.499 [97/13/2964] Building CXX object 
tools/clang/tools/extra/include-cleaner/lib/CMakeFiles/obj.clangIncludeCleaner.dir/WalkAST.cpp.o
137.422 [97/12/2965] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/HeaderSourceSwitch.cpp.o
138.019 [97/11/2966] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/GlobalCompilationDatabase.cpp.o
139.180 [97/10/2967] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Headers.cpp.o
139.317 [97/9/2968] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FindSymbols.cpp.o
141.223 [97/8/2969] Building CXX object 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

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

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

Here is the relevant piece of the build log for the reference:
```
Step 6 (build stage 1) failure: 'ninja' (failure)
...
[390/607] Linking CXX executable bin/mlir-capi-execution-engine-test
[391/607] Linking CXX executable bin/mlir-capi-ir-test
[392/607] Linking CXX executable bin/mlir-opt
[393/607] Linking CXX executable bin/mlir-translate
[394/607] Linking CXX executable bin/mlir-query
[395/607] Linking CXX executable bin/mlir-reduce
[396/607] Linking CXX executable bin/mlir-capi-pass-test
[397/607] Linking CXX executable bin/mlir-lsp-server
[398/607] Linking CXX executable bin/mlir-transform-opt
[399/607] 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-vls/stage1/tools/clang/tools/extra/clangd
 
-I/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/clang-tools-extra/clangd
 
-I/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/tools/clang/tools/extra/clangd/../clang-tidy
 -I/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/clang/include 
-I/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/tools/clang/include 
-I/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/stage1/include 
-I/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/llvm/llvm/include 
-I/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/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-vls/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.
[400/607] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ClangdServer.cpp.o
[401/607] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/DumpAST.cpp.o
[402/607] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/CodeComplete.cpp.o
[403/607] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/GlobalCompilationDatabase.cpp.o
[404/607] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/SemanticSelection.cpp.o
[405/607] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Headers.cpp.o
[406/607] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Quality.cpp.o
[407/607] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/HeaderSourceSwitch.cpp.o
[408/607] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/SourceCode.cpp.o
[409/607] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/IncludeFixer.cpp.o
[410/607] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ClangdLSPServer.cpp.o
[411/607] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/IncludeCleaner.cpp.o
[412/607] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Hover.cpp.o
[413/607] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/TUScheduler.cpp.o
[414/607] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/AST.cpp.o
[415/607] Building CXX object 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

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

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

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

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

Here is the relevant piece of the build log for the reference:
```
Step 6 (build stage 1) failure: 'ninja' (failure)
...
[150/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/TUScheduler.cpp.o
[151/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/Background.cpp.o
[152/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/BackgroundIndexLoader.cpp.o
[153/272] Linking CXX shared library lib/libclang-cpp.so.19.0git
[154/272] Creating library symlink lib/libclang-cpp.so
[155/272] Linking CXX executable bin/clang-include-cleaner
[156/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/BackgroundIndexStorage.cpp.o
[157/272] Linking CXX executable bin/tool-template
[158/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/BackgroundQueue.cpp.o
[159/272] 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-global-isel/stage1/tools/clang/tools/extra/clangd
 
-I/home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/clang-tools-extra/clangd
 
-I/home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/tools/clang/tools/extra/clangd/../clang-tidy
 -I/home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/clang/include 
-I/home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/tools/clang/include
 -I/home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/include 
-I/home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/include 
-I/home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/clang-tools-extra/pseudo/lib/../include
 -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-global-isel/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.
[160/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/BackgroundRebuild.cpp.o
[161/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/IndexAction.cpp.o
[162/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/FileIndex.cpp.o
[163/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/Serialization.cpp.o
[164/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/SymbolCollector.cpp.o
[165/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/StdLib.cpp.o
[166/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/index/YAMLSerialization.cpp.o
[167/272] Linking CXX executable bin/clang-tidy
[168/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/AST.cpp.o
[169/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/FindTarget.cpp.o
[170/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Selection.cpp.o
[171/272] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ClangdLSPServer.cpp.o
[172/272] Building CXX object 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder 
`premerge-monolithic-windows` running on `premerge-windows-1` while building 
`clang` at step 7 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 7 (build-unified-tree) failure: build (failure)

```

https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running 
on `linaro-clang-armv8-quick` while building `clang` at step 4 "build stage 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 4 (build stage 1) failure: 'ninja' (failure)
...
[110/272] Building CXX object 
tools/clang/tools/extra/clang-tidy/bugprone/CMakeFiles/obj.clangTidyBugproneModule.dir/StringviewNullptrCheck.cpp.o
[111/272] Linking CXX executable bin/clang-diff
[112/272] Building CXX object 
tools/clang/tools/extra/clang-tidy/abseil/CMakeFiles/obj.clangTidyAbseilModule.dir/StringFindStrContainsCheck.cpp.o
[113/272] Building CXX object 
tools/clang/tools/extra/clang-include-fixer/CMakeFiles/obj.clangIncludeFixer.dir/IncludeFixer.cpp.o
[114/272] Building CXX object 
lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
[115/272] Building CXX object 
tools/clang/tools/extra/clang-change-namespace/CMakeFiles/obj.clangChangeNamespace.dir/ChangeNamespace.cpp.o
[116/272] Linking CXX static library lib/libclangChangeNamespace.a
[117/272] Linking CXX static library lib/libLLVMAsmPrinter.a
[118/272] Linking CXX static library lib/libclangIncludeFixer.a
[119/272] 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_FILE_OFFSET_BITS=64 
-D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LARGEFILE_SOURCE 
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS 
-I/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/tools/clang/tools/extra/clangd
 -I/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang-tools-extra/clangd 
-I/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/tools/clang/tools/extra/clangd/../clang-tidy
 -I/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/include 
-I/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/tools/clang/include 
-I/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/include 
-I/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/include 
-I/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang-tools-extra/pseudo/lib/../include
 -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-armv8-quick/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.
[120/272] Linking CXX executable bin/pp-trace
[121/272] Linking CXX executable bin/clang-reorder-fields
[122/272] Linking CXX executable bin/modularize
[123/272] Linking CXX executable bin/clang-doc
[124/272] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/SpecialMembers.cpp.o
[125/272] Linking CXX executable bin/find-all-symbols
[126/272] Building CXX object 
tools/clang/tools/extra/clang-tidy/CMakeFiles/obj.clangTidy.dir/ClangTidy.cpp.o
[127/272] Linking CXX executable bin/clang-query
[128/272] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/RemoveUsingNamespace.cpp.o
[129/272] Building CXX object 
tools/clang/tools/extra/clang-tidy/bugprone/CMakeFiles/obj.clangTidyBugproneModule.dir/BugproneTidyModule.cpp.o
[130/272] Building CXX object 
tools/clang/tools/extra/clangd/tool/CMakeFiles/obj.clangdMain.dir/Check.cpp.o
[131/272] Building CXX object 
tools/clang/tools/extra/clang-move/CMakeFiles/obj.clangMove.dir/Move.cpp.o
[132/272] Linking CXX executable bin/llvm-lto
[133/272] Linking CXX shared library lib/libLTO.so.19.0git
[134/272] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/ExtractVariable.cpp.o
[135/272] Linking CXX executable 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder 
`clang-ppc64be-linux-multistage` running on `ppc64be-clang-multistage-test` 
while building `clang` at step 4 "build stage 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 4 (build stage 1) failure: 'ninja' (failure)
...
 from 
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/llvm/clang-tools-extra/clang-tidy/bugprone/../utils/../ClangTidyDiagnosticConsumer.h:12,
 from 
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/llvm/clang-tools-extra/clang-tidy/bugprone/../utils/../ClangTidyCheck.h:12,
 from 
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/llvm/clang-tools-extra/clang-tidy/bugprone/../utils/TransformerClangTidyCheck.h:12,
 from 
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/llvm/clang-tools-extra/clang-tidy/bugprone/StringviewNullptrCheck.h:12,
 from 
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/llvm/clang-tools-extra/clang-tidy/bugprone/StringviewNullptrCheck.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/llvm/llvm/include/llvm/ADT/SmallVector.h:
 In member function ‘void llvm::SmallVectorTemplateBase 
>::grow(size_t) [with T = 
std::shared_ptr > 
>; bool  = false]’:
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/llvm/llvm/include/llvm/ADT/SmallVector.h:446:6:
 note: the layout of aggregates containing vectors with 8-byte alignment has 
changed in GCC 5
  446 | void SmallVectorTemplateBase::grow(size_t 
MinSize) {
  |  ^
[105/281] 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 /opt/rh/devtoolset-11/root/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/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/stage1/tools/clang/tools/extra/clangd
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/llvm/clang-tools-extra/clangd
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/llvm/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/stage1/tools/clang/tools/extra/clangd/../clang-tidy
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/llvm/clang/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/stage1/tools/clang/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/stage1/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/llvm/llvm/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/llvm/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 -std=c++17  -fno-exceptions -funwind-tables 
-fno-rtti -UNDEBUG -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/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/llvm/clang-tools-extra/clangd/Format.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-multistage-test/clang-ppc64be-multistage/llvm/clang-tools-extra/clangd/Format.cpp:
 In function ‘std::vector 
clang::clangd::formatIncremental(llvm::StringRef, unsigned int, 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick` 
running on `linaro-clang-aarch64-quick` while building `clang` at step 4 "build 
stage 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 4 (build stage 1) failure: 'ninja' (failure)
...
[125/269] Linking CXX static library lib/libclangIncludeFixer.a
[126/269] Generating ../../bin/llvm-install-name-tool
[127/269] Generating ../../bin/llvm-bitcode-strip
[128/269] Generating ../../bin/llvm-strip
[129/269] Generating ../../bin/llvm-otool
[130/269] Generating ../../bin/llvm-windres
[131/269] Generating ../../bin/llvm-readelf
[132/269] Generating ../../bin/llvm-addr2line
[133/269] Copying llvm-locstats into 
/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/./bin
[134/269] 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-quick/stage1/tools/clang/tools/extra/clangd
 -I/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang-tools-extra/clangd 
-I/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/tools/extra/clangd/../clang-tidy
 -I/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/include 
-I/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/include 
-I/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/include 
-I/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/include 
-I/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang-tools-extra/pseudo/lib/../include
 -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-quick/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.
[135/269] Linking CXX executable bin/nvptx-arch
[136/269] Linking CXX executable bin/amdgpu-arch
[137/269] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
[138/269] Building CXX object 
tools/clang/tools/extra/clang-tidy/abseil/CMakeFiles/obj.clangTidyAbseilModule.dir/AbseilTidyModule.cpp.o
[139/269] Linking CXX executable bin/yaml2obj
[140/269] Linking CXX executable bin/verify-uselistorder
[141/269] Linking CXX executable bin/sancov
[142/269] Building CXX object 
tools/clang/tools/extra/clang-tidy/misc/CMakeFiles/obj.clangTidyMiscModule.dir/IncludeCleanerCheck.cpp.o
[143/269] Building CXX object 
tools/clang/tools/extra/clangd/tool/CMakeFiles/obj.clangdMain.dir/Check.cpp.o
[144/269] Linking CXX executable bin/llvm-xray
[145/269] Building CXX object 
tools/clang/tools/extra/clang-tidy/bugprone/CMakeFiles/obj.clangTidyBugproneModule.dir/StringviewNullptrCheck.cpp.o
[146/269] Linking CXX executable bin/sanstats
[147/269] Linking CXX executable bin/obj2yaml
[148/269] Building CXX object 
tools/clang/tools/extra/clang-tidy/utils/CMakeFiles/obj.clangTidyUtils.dir/TransformerClangTidyCheck.cpp.o
[149/269] Building CXX object 
lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
[150/269] Building CXX object 
tools/clang/tools/extra/tool-template/CMakeFiles/tool-template.dir/ToolTemplate.cpp.o
[151/269] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/AddUsing.cpp.o
[152/269] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/ASTSignals.cpp.o
[153/269] Building CXX object 
tools/clang/tools/extra/clangd/tool/CMakeFiles/obj.clangdMain.dir/ClangdMain.cpp.o
[154/269] Building CXX object 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

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 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder 
`clang-ppc64be-linux-test-suite` running on `ppc64be-clang-test-suite` while 
building `clang` at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
 from 
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/llvm-project/clang-tools-extra/clang-tidy/utils/../ClangTidyOptions.h:17,
 from 
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/llvm-project/clang-tools-extra/clang-tidy/utils/../ClangTidyDiagnosticConsumer.h:12,
 from 
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/llvm-project/clang-tools-extra/clang-tidy/utils/../ClangTidyCheck.h:12,
 from 
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/llvm-project/clang-tools-extra/clang-tidy/utils/TransformerClangTidyCheck.h:12,
 from 
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/llvm-project/clang-tools-extra/clang-tidy/utils/TransformerClangTidyCheck.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/llvm-project/llvm/include/llvm/ADT/SmallVector.h:
 In member function ‘void llvm::SmallVectorTemplateBase 
>::grow(size_t) [with T = 
std::shared_ptr > 
>; bool  = false]’:
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/llvm-project/llvm/include/llvm/ADT/SmallVector.h:446:6:
 note: the layout of aggregates containing vectors with 8-byte alignment has 
changed in GCC 5
  446 | void SmallVectorTemplateBase::grow(size_t 
MinSize) {
  |  ^
58.646 [145/40/97] 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 /opt/rh/devtoolset-11/root/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/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/tools/clang/tools/extra/clangd
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/llvm-project/clang-tools-extra/clangd
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/llvm-project/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/tools/clang/tools/extra/clangd/../clang-tidy
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/llvm-project/clang/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/tools/clang/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/llvm-project/llvm/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/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 -std=c++17  -fno-exceptions -funwind-tables 
-fno-rtti -UNDEBUG -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/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/llvm-project/clang-tools-extra/clangd/Format.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/llvm-project/clang-tools-extra/clangd/Format.cpp:
 In function ‘std::vector 
clang::clangd::formatIncremental(llvm::StringRef, unsigned int, 
llvm::StringRef, 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder 
`clang-ppc64le-linux-test-suite` running on `ppc64le-clang-test-suite` while 
building `clang` at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
36.266 [50/93/139] Linking CXX executable bin/clang-fuzzer-dictionary
37.875 [50/92/140] Building CXX object 
tools/clang/tools/extra/clang-tidy/abseil/CMakeFiles/obj.clangTidyAbseilModule.dir/StringFindStrContainsCheck.cpp.o
38.113 [50/91/141] Building CXX object 
tools/clang/tools/extra/clang-include-fixer/CMakeFiles/obj.clangIncludeFixer.dir/IncludeFixer.cpp.o
38.231 [49/91/142] Linking CXX static library lib/libclangIncludeFixer.a
38.334 [47/92/143] Linking CXX static library lib/libclangIncludeFixerPlugin.a
39.611 [47/91/144] Building CXX object 
tools/clang/tools/extra/clang-tidy/abseil/CMakeFiles/obj.clangTidyAbseilModule.dir/AbseilTidyModule.cpp.o
39.617 [47/90/145] Building CXX object 
tools/clang/tools/extra/clang-tidy/abseil/CMakeFiles/obj.clangTidyAbseilModule.dir/CleanupCtadCheck.cpp.o
39.725 [47/89/146] Linking CXX executable bin/clang-offload-packager
40.238 [47/88/147] Building CXX object 
tools/clang/tools/extra/clangd/tool/CMakeFiles/obj.clangdMain.dir/Check.cpp.o
42.086 [47/87/148] 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 /usr/lib64/ccache/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/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/tools/clang/tools/extra/clangd
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/clang-tools-extra/clangd
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/tools/clang/tools/extra/clangd/../clang-tidy
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/clang/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/tools/clang/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/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-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment 
-Wno-misleading-indentation -fdiagnostics-color -ffunction-sections 
-fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 
-DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -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/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/clang-tools-extra/clangd/Format.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/clang-tools-extra/clangd/Format.cpp:
 In function ‘std::vector 
clang::clangd::formatIncremental(llvm::StringRef, unsigned int, 
llvm::StringRef, clang::format::FormatStyle)’:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/clang-tools-extra/clangd/Format.cpp:284:11:
 error: ‘struct clang::format::FormatStyle’ has no member named 
‘KeepEmptyLinesAtTheStartOfBlocks’; did you mean ‘KeepEmptyLinesStyle’?
 Style.KeepEmptyLinesAtTheStartOfBlocks = true;
   ^~~~
   KeepEmptyLinesStyle
42.690 [47/86/149] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
43.659 [47/85/150] Linking CXX executable bin/llvm-libtool-darwin
43.891 [47/84/151] Linking CXX executable bin/llvm-lipo
43.926 [47/83/152] Building CXX object 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-ppc64le-rhel` 
running on `ppc64le-clang-rhel-test` while building `clang` at step 5 
"build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
-- Compiler-RT supported architectures: powerpc64le
-- check-cfi does nothing.
-- check-cfi-and-supported does nothing.
-- Generated Sanitizer SUPPORTED_TOOLS list on "Linux" is 
"asan;lsan;msan;tsan;ubsan"
-- sanitizer_common tests on "Linux" will run against 
"asan;lsan;msan;tsan;ubsan"
-- check-shadowcallstack does nothing.
-- Configuring done (2.8s)
-- Generating done (0.4s)
-- Build files have been written to: 
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/runtimes/runtimes-bins
37.763 [86/53/483] 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 /home/docker/llvm-external-buildbots/clang.17.0.6/bin/clang++ 
--gcc-toolchain=/gcc-toolchain/usr -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/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/clangd
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/clangd
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/tools/extra/clangd/../clang-tidy
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/tools/clang/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/pseudo/lib/../include
 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror 
-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 -std=c++17  -fno-exceptions -funwind-tables 
-fno-rtti -UNDEBUG -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/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/clangd/Format.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/clang-tools-extra/clangd/Format.cpp:284:11:
 error: no member named 'KeepEmptyLinesAtTheStartOfBlocks' in 
'clang::format::FormatStyle'
  284 | Style.KeepEmptyLinesAtTheStartOfBlocks = true;
  | ~ ^
1 error generated.
38.675 [86/52/484] Building CXX object 
tools/clang/tools/extra/clang-tidy/bugprone/CMakeFiles/obj.clangTidyBugproneModule.dir/BugproneTidyModule.cpp.o
39.249 [86/50/486] Building CXX object 
tools/clang/tools/extra/include-cleaner/lib/CMakeFiles/obj.clangIncludeCleaner.dir/WalkAST.cpp.o
42.895 [86/49/487] Building CXX object 
tools/clang/tools/extra/clangd/tool/CMakeFiles/obj.clangdMain.dir/ClangdMain.cpp.o
42.934 [86/48/488] Building CXX object 
tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/GlobalCompilationDatabase.cpp.o
43.108 [86/47/489] Building CXX object 
tools/clang/tools/extra/clang-move/CMakeFiles/obj.clangMove.dir/Move.cpp.o
43.725 [86/46/490] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/RemoveUsingNamespace.cpp.o
45.410 [86/45/491] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/AddUsing.cpp.o
46.644 [86/44/492] Building CXX object 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder 
`clang-ppc64le-linux-multistage` running on `ppc64le-clang-multistage-test` 
while building `clang` at step 4 "build stage 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 4 (build stage 1) failure: 'ninja' (failure)
...
[352/606] Creating library symlink lib/libclangStaticAnalyzerCheckers.so
[353/606] Linking CXX shared library lib/libclangIncludeCleaner.so.19.0git
[354/606] Creating library symlink lib/libclangIncludeCleaner.so
[355/606] Building CXX object 
lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
[356/606] Linking CXX shared library 
lib/libclangStaticAnalyzerFrontend.so.19.0git
[357/606] Creating library symlink lib/libclangStaticAnalyzerFrontend.so
[358/606] Linking CXX shared module lib/SampleAnalyzerPlugin.so
[359/606] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[360/606] Linking CXX shared module 
lib/CheckerDependencyHandlingAnalyzerPlugin.so
[361/606] 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 /usr/lib64/ccache/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/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/tools/clang/tools/extra/clangd
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/clangd
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/clangd/../include-cleaner/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/tools/clang/tools/extra/clangd/../clang-tidy
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/tools/clang/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/include
 
-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/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-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment 
-Wno-misleading-indentation -fdiagnostics-color -ffunction-sections 
-fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 
-DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -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/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/clangd/Format.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/clangd/Format.cpp:
 In function ‘std::vector 
clang::clangd::formatIncremental(llvm::StringRef, unsigned int, 
llvm::StringRef, clang::format::FormatStyle)’:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang-tools-extra/clangd/Format.cpp:284:11:
 error: ‘struct clang::format::FormatStyle’ has no member named 
‘KeepEmptyLinesAtTheStartOfBlocks’; did you mean ‘KeepEmptyLinesStyle’?
 Style.KeepEmptyLinesAtTheStartOfBlocks = true;
   ^~~~
   KeepEmptyLinesStyle
[362/606] Linking CXX shared library lib/libLLVMAsmPrinter.so.19.0git
[363/606] Linking CXX executable bin/clang-include-cleaner
[364/606] Building CXX object 
tools/clang/tools/extra/clang-tidy/abseil/CMakeFiles/obj.clangTidyAbseilModule.dir/StringFindStrContainsCheck.cpp.o
[365/606] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/AddUsing.cpp.o
[366/606] Building CXX object 
tools/clang/tools/extra/clang-tidy/bugprone/CMakeFiles/obj.clangTidyBugproneModule.dir/StringviewNullptrCheck.cpp.o
[367/606] Building CXX object 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` 
running on `gribozavr4` while building `clang` at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
/b/1/clang-x86_64-debian-fast/llvm.src/clang/include/clang/Sema/CodeCompleteConsumer.h:338:31:
 warning: '@class' command should not be used in a comment attached to a 
non-class declaration [-Wdocumentation]
/// Code completion in a @class forward declaration.
 ~^~
In file included from 
/b/1/clang-x86_64-debian-fast/llvm.src/clang-tools-extra/clangd/refactor/tweaks/SpecialMembers.cpp:12:
/b/1/clang-x86_64-debian-fast/llvm.src/clang/include/clang/Sema/Sema.h:9291:14: 
warning: parameter 'Converted' not found in the function declaration 
[-Wdocumentation]
  /// \param Converted Will receive the converted, canonicalized template
 ^
3 warnings generated.
31.856 [494/61/5364] Linking CXX executable bin/clang-include-fixer
32.206 [494/60/5365] 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/clang++ 
-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/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/tools/extra/clangd 
-I/b/1/clang-x86_64-debian-fast/llvm.src/clang-tools-extra/clangd 
-I/b/1/clang-x86_64-debian-fast/llvm.src/clang-tools-extra/clangd/../include-cleaner/include
 
-I/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/tools/extra/clangd/../clang-tidy
 -I/b/1/clang-x86_64-debian-fast/llvm.src/clang/include 
-I/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/include 
-I/b/1/clang-x86_64-debian-fast/llvm.obj/include 
-I/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include 
-I/b/1/clang-x86_64-debian-fast/llvm.src/clang-tools-extra/pseudo/lib/../include
 -std=c++11 -Wdocumentation -Wno-documentation-deprecated-sync -fPIC 
-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 
/b/1/clang-x86_64-debian-fast/llvm.src/clang-tools-extra/clangd/Format.cpp
/b/1/clang-x86_64-debian-fast/llvm.src/clang-tools-extra/clangd/Format.cpp:284:11:
 error: no member named 'KeepEmptyLinesAtTheStartOfBlocks' in 
'clang::format::FormatStyle'
Style.KeepEmptyLinesAtTheStartOfBlocks = true;
~ ^
1 error generated.
33.581 [494/59/5366] Building AMDGPUGenAsmWriter.inc...
34.741 [494/58/5367] Building CXX object 
tools/clang/tools/extra/clang-tidy/bugprone/CMakeFiles/obj.clangTidyBugproneModule.dir/BugproneTidyModule.cpp.o
In file included from 
/b/1/clang-x86_64-debian-fast/llvm.src/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp:12:
In file included from 
/b/1/clang-x86_64-debian-fast/llvm.src/clang-tools-extra/clang-tidy/bugprone/../cppcoreguidelines/NarrowingConversionsCheck.h:12:
In file included from 
/b/1/clang-x86_64-debian-fast/llvm.src/clang-tools-extra/clang-tidy/bugprone/../cppcoreguidelines/../ClangTidyCheck.h:14:
In file included from 
/b/1/clang-x86_64-debian-fast/llvm.src/clang/include/clang/ASTMatchers/ASTMatchFinder.h:43:
In file included from 
/b/1/clang-x86_64-debian-fast/llvm.src/clang/include/clang/ASTMatchers/ASTMatchers.h:48:
In file included from 
/b/1/clang-x86_64-debian-fast/llvm.src/clang/include/clang/AST/ASTTypeTraits.h:19:
In file included from 
/b/1/clang-x86_64-debian-fast/llvm.src/clang/include/clang/AST/DeclCXX.h:22:
/b/1/clang-x86_64-debian-fast/llvm.src/clang/include/clang/AST/Expr.h:5147:21: 
warning: '@endcode' command does not terminate a verbatim text block 
[-Wdocumentation]
  /// literal or an @encode?
^~~
In file included from 
/b/1/clang-x86_64-debian-fast/llvm.src/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp:83:
In file included from 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` 
running on `gribozavr4` while building `clang` at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
61.916 [482/96/6320] Building CXX object 
tools/lldb/source/Plugins/Process/gdb-remote/CMakeFiles/lldbPluginProcessGDBRemote.dir/ProcessGDBRemote.cpp.o
61.924 [481/96/6321] Building CXX object 
tools/lldb/source/Plugins/Process/gdb-remote/CMakeFiles/lldbPluginProcessGDBRemote.dir/ProcessGDBRemoteLog.cpp.o
61.932 [480/96/6322] Building CXX object 
tools/lldb/source/Plugins/Process/gdb-remote/CMakeFiles/lldbPluginProcessGDBRemote.dir/ThreadGDBRemote.cpp.o
61.944 [479/96/6323] Building CXX object 
tools/lldb/source/Plugins/Process/Utility/CMakeFiles/lldbPluginProcessUtility.dir/AuxVector.cpp.o
61.957 [478/96/6324] Building CXX object 
tools/lldb/source/Plugins/Process/Utility/CMakeFiles/lldbPluginProcessUtility.dir/FreeBSDSignals.cpp.o
61.970 [477/96/6325] Building CXX object 
tools/lldb/source/Plugins/Process/Utility/CMakeFiles/lldbPluginProcessUtility.dir/GDBRemoteSignals.cpp.o
61.985 [476/96/6326] Building CXX object 
tools/lldb/source/Plugins/Process/Utility/CMakeFiles/lldbPluginProcessUtility.dir/HistoryThread.cpp.o
61.986 [475/96/6327] Building CXX object 
tools/lldb/source/Plugins/Process/Utility/CMakeFiles/lldbPluginProcessUtility.dir/HistoryUnwind.cpp.o
61.997 [474/96/6328] Building CXX object 
tools/lldb/source/Plugins/Process/Utility/CMakeFiles/lldbPluginProcessUtility.dir/InferiorCallPOSIX.cpp.o
62.009 [473/96/6329] 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/clang++ 
-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/b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/clangd 
-I/b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/clangd 
-I/b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/clangd/../include-cleaner/include
 
-I/b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/extra/clangd/../clang-tidy
 -I/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/include 
-I/b/1/llvm-x86_64-debian-dylib/build/tools/clang/include 
-I/b/1/llvm-x86_64-debian-dylib/build/include 
-I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include 
-I/b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/pseudo/lib/../include
 -fPIC -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 
/b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/clangd/Format.cpp
/b/1/llvm-x86_64-debian-dylib/llvm-project/clang-tools-extra/clangd/Format.cpp:284:11:
 error: no member named 'KeepEmptyLinesAtTheStartOfBlocks' in 
'clang::format::FormatStyle'
Style.KeepEmptyLinesAtTheStartOfBlocks = true;
~ ^
1 error generated.
62.009 [473/95/6330] Building CXX object 
tools/lldb/source/Plugins/Process/Utility/CMakeFiles/lldbPluginProcessUtility.dir/LinuxProcMaps.cpp.o
62.009 [473/94/6331] Building CXX object 
tools/lldb/source/Plugins/Process/Utility/CMakeFiles/lldbPluginProcessUtility.dir/LinuxSignals.cpp.o
62.010 [473/93/6332] Building CXX object 
tools/lldb/source/Plugins/Process/Utility/CMakeFiles/lldbPluginProcessUtility.dir/MemoryTagManagerAArch64MTE.cpp.o
62.010 [473/92/6333] Building CXX object 
tools/lldb/source/Plugins/Process/Utility/CMakeFiles/lldbPluginProcessUtility.dir/NativeProcessSoftwareSingleStep.cpp.o
62.010 [473/91/6334] Building CXX object 
tools/lldb/source/Plugins/Process/Utility/CMakeFiles/lldbPluginProcessUtility.dir/NativeRegisterContextDBReg_arm64.cpp.o
62.011 [473/90/6335] Building CXX object 
tools/lldb/source/Plugins/Process/Utility/CMakeFiles/lldbPluginProcessUtility.dir/NativeRegisterContextDBReg_x86.cpp.o
62.011 [473/89/6336] Building CXX object 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

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::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 

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

2024-06-24 Thread LLVM Continuous Integration via cfe-commits

llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` 
running on `premerge-linux-1` while building `clang` at step 6 
"build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 6 (build-unified-tree) failure: build (failure)
...
15.654 [3044/58/239] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/ObjCMemberwiseInitializer.cpp.o
15.737 [3043/58/240] Building CXX object 
tools/clang/tools/extra/include-cleaner/lib/CMakeFiles/obj.clangIncludeCleaner.dir/LocateSymbol.cpp.o
16.095 [3042/58/241] Building CXX object 
tools/clang/lib/Tooling/Transformer/CMakeFiles/obj.clangTransformer.dir/RewriteRule.cpp.o
16.180 [3041/58/242] Building CXX object 
tools/clang/tools/extra/include-cleaner/lib/CMakeFiles/obj.clangIncludeCleaner.dir/FindHeaders.cpp.o
16.238 [3040/58/243] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/DefineOutline.cpp.o
17.154 [3039/58/244] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/SpecialMembers.cpp.o
17.477 [3038/58/245] Building CXX object 
tools/clang/tools/extra/include-cleaner/lib/CMakeFiles/obj.clangIncludeCleaner.dir/HTMLReport.cpp.o
18.282 [3037/58/246] Building CXX object 
tools/clang/tools/extra/clang-include-fixer/tool/CMakeFiles/clang-include-fixer.dir/ClangIncludeFixer.cpp.o
18.623 [3036/58/247] Building CXX object 
tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/DefineInline.cpp.o
18.813 [3035/58/248] 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/clang++ 
-DBUILD_EXAMPLES -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/build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/clangd
 
-I/build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/clangd
 
-I/build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/clangd/../include-cleaner/include
 
-I/build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/clangd/../clang-tidy
 -I/build/buildbot/premerge-monolithic-linux/llvm-project/clang/include 
-I/build/buildbot/premerge-monolithic-linux/build/tools/clang/include 
-I/build/buildbot/premerge-monolithic-linux/build/include 
-I/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include 
-I/build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/pseudo/lib/../include
 -gmlt -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 
/build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/clangd/Format.cpp
/build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/clangd/Format.cpp:284:11:
 error: no member named 'KeepEmptyLinesAtTheStartOfBlocks' in 
'clang::format::FormatStyle'
Style.KeepEmptyLinesAtTheStartOfBlocks = true;
~ ^
1 error generated.
18.973 [3035/57/249] Building CXX object 
tools/clang/tools/extra/clang-tidy/abseil/CMakeFiles/obj.clangTidyAbseilModule.dir/AbseilTidyModule.cpp.o
19.152 [3035/56/250] Building CXX object 
tools/clang/tools/extra/clang-tidy/abseil/CMakeFiles/obj.clangTidyAbseilModule.dir/CleanupCtadCheck.cpp.o
19.824 [3035/55/251] Building CXX object 
lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
20.029 [3035/54/252] Building CXX object 
lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
20.863 [3035/53/253] Building CXX object 
tools/clang/tools/extra/clang-tidy/utils/CMakeFiles/obj.clangTidyUtils.dir/TransformerClangTidyCheck.cpp.o
21.123 [3035/52/254] Building CXX object 
tools/clang/tools/extra/include-cleaner/tool/CMakeFiles/clang-include-cleaner.dir/IncludeCleaner.cpp.o
21.866 [3035/51/255] Building CXX object 

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

2024-06-24 Thread via cfe-commits

https://github.com/sstwcw closed https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-06-24 Thread via cfe-commits

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

>From 9267f8f19a2e502ef5a216c0d52b352b3699d399 Mon Sep 17 00:00:00 2001
From: sstwcw 
Date: Mon, 6 May 2024 14:34:08 +
Subject: [PATCH] [clang-format] Add option to remove leading blank lines
 (#91221)

The options regarding which blank lines are kept are also aggregated.
The new option is `KeepEmptyLines`.
---
 clang/docs/ClangFormatStyleOptions.rst  | 48 ++
 clang/docs/ReleaseNotes.rst |  2 +
 clang/include/clang/Format/Format.h | 56 +++--
 clang/lib/Format/Format.cpp | 24 ++---
 clang/lib/Format/UnwrappedLineFormatter.cpp | 12 +++--
 clang/unittests/Format/ConfigParseTest.cpp  |  8 ++-
 clang/unittests/Format/FormatTest.cpp   | 15 --
 7 files changed, 124 insertions(+), 41 deletions(-)

diff --git a/clang/docs/ClangFormatStyleOptions.rst 
b/clang/docs/ClangFormatStyleOptions.rst
index bb00c20922d361..080cba90c4a8bf 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -4443,23 +4443,51 @@ the configuration (without a prefix: ``Auto``).
  false:
  import {VeryLongImportsAreAnnoying, VeryLongImportsAreAnnoying, 
VeryLongImportsAreAnnoying,} from "some/module.js"
 
+.. _KeepEmptyLines:
+
+**KeepEmptyLines** (``KeepEmptyLinesStyle``) :versionbadge:`clang-format 19` 
:ref:`¶ `
+  Which empty lines are kept.  See ``MaxEmptyLinesToKeep`` for how many
+  consecutive empty lines are kept.
+
+  Nested configuration flags:
+
+  Options regarding which empty lines are kept.
+
+  For example, the config below will remove empty lines at start of the
+  file, end of the file, and start of blocks.
+
+
+  .. code-block:: c++
+
+KeepEmptyLines:
+  AtEndOfFile: false
+  AtStartOfBlock: false
+  AtStartOfFile: false
+
+  * ``bool AtEndOfFile`` Keep empty lines at end of file.
+
+  * ``bool AtStartOfBlock`` Keep empty lines at start of a block.
+
+.. code-block:: c++
+
+   true:  false:
+   if (foo) { vs. if (foo) {
+bar();
+ bar();   }
+   }
+
+  * ``bool AtStartOfFile`` Keep empty lines at start of file.
+
+
 .. _KeepEmptyLinesAtEOF:
 
 **KeepEmptyLinesAtEOF** (``Boolean``) :versionbadge:`clang-format 17` :ref:`¶ 
`
-  Keep empty lines (up to ``MaxEmptyLinesToKeep``) at end of file.
+  This option is deprecated. See ``AtEndOfFile`` of ``KeepEmptyLines``.
 
 .. _KeepEmptyLinesAtTheStartOfBlocks:
 
 **KeepEmptyLinesAtTheStartOfBlocks** (``Boolean``) :versionbadge:`clang-format 
3.7` :ref:`¶ `
-  If true, the empty line at the start of blocks is kept.
-
-  .. code-block:: c++
-
- true:  false:
- if (foo) { vs. if (foo) {
-  bar();
-   bar();   }
- }
+  This option is deprecated. See ``AtStartOfBlock`` of ``KeepEmptyLines``.
 
 .. _LambdaBodyIndentation:
 
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index df579ae398c5ef..9ed3ff4507671c 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -1110,6 +1110,8 @@ clang-format
 - Adds ``AllowShortCaseExpressionOnASingleLine`` option.
 - Adds ``AlignCaseArrows`` suboption to 
``AlignConsecutiveShortCaseStatements``.
 - Adds ``LeftWithLastLine`` suboption to ``AlignEscapedNewlines``.
+- Adds ``KeepEmptyLines`` option to deprecate ``KeepEmptyLinesAtEOF``
+  and ``KeepEmptyLinesAtTheStartOfBlocks``.
 
 libclang
 
diff --git a/clang/include/clang/Format/Format.h 
b/clang/include/clang/Format/Format.h
index 7d257be10af42c..efc2e450b723fa 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -3095,20 +3095,49 @@ struct FormatStyle {
   bool JavaScriptWrapImports;
   // clang-format on
 
-  /// Keep empty lines (up to ``MaxEmptyLinesToKeep``) at end of file.
-  /// \version 17
-  bool KeepEmptyLinesAtEOF;
-
-  /// If true, the empty line at the start of blocks is kept.
+  /// Options regarding which empty lines are kept.
+  ///
+  /// For example, the config below will remove empty lines at start of the
+  /// file, end of the file, and start of blocks.
+  ///
   /// \code
-  ///true:  false:
-  ///if (foo) { vs. if (foo) {
-  /// bar();
-  ///  bar();   }
-  ///}
+  ///   KeepEmptyLines:
+  /// AtEndOfFile: false
+  /// AtStartOfBlock: false
+  /// AtStartOfFile: false
   /// \endcode
+  struct KeepEmptyLinesStyle {
+/// Keep empty lines at end of file.
+bool AtEndOfFile;
+/// Keep empty lines at start of a block.
+/// \code
+///true:  false:
+

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

2024-06-18 Thread Owen Pan via cfe-commits


@@ -45,6 +45,9 @@ TEST_F(FormatTest, FormatsGlobalStatementsAt0) {
   verifyFormat("\nint i;", " \n\t \v \f  int i;");
   verifyFormat("int i;\nint j;", "int i; int j;");
   verifyFormat("int i;\nint j;", "int i;\n  int j;");
+  auto Style = getLLVMStyle();

owenca wrote:

An empty line before `auto Style = ...`?

https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-06-18 Thread Owen Pan via cfe-commits


@@ -21947,6 +21950,10 @@ TEST_F(FormatTest, HandlesUTF8BOM) {
   verifyFormat("\xef\xbb\xbf");
   verifyFormat("\xef\xbb\xbf#include ");
   verifyFormat("\xef\xbb\xbf\n#include ");
+  auto Style = getLLVMStyle();

owenca wrote:

Ditto.

https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-06-18 Thread Owen Pan via cfe-commits

https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-06-18 Thread Owen Pan via cfe-commits

https://github.com/owenca approved this pull request.


https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-06-10 Thread via cfe-commits

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

>From 72e15ffb87eff94d51af69c0f804084ab7abe474 Mon Sep 17 00:00:00 2001
From: sstwcw 
Date: Mon, 6 May 2024 14:34:08 +
Subject: [PATCH 1/5] [clang-format] Add option to remove leading blank lines

---
 clang/docs/ClangFormatStyleOptions.rst  | 5 +
 clang/include/clang/Format/Format.h | 5 +
 clang/lib/Format/ContinuationIndenter.cpp   | 3 +++
 clang/lib/Format/Format.cpp | 2 ++
 clang/lib/Format/UnwrappedLineFormatter.cpp | 4 +++-
 clang/unittests/Format/ConfigParseTest.cpp  | 1 +
 clang/unittests/Format/FormatTest.cpp   | 7 +++
 7 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/clang/docs/ClangFormatStyleOptions.rst 
b/clang/docs/ClangFormatStyleOptions.rst
index ce9035a2770ee..c81de131f050c 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -4406,6 +4406,11 @@ the configuration (without a prefix: ``Auto``).
 **KeepEmptyLinesAtEOF** (``Boolean``) :versionbadge:`clang-format 17` :ref:`¶ 
`
   Keep empty lines (up to ``MaxEmptyLinesToKeep``) at end of file.
 
+.. _KeepEmptyLinesAtStart:
+
+**KeepEmptyLinesAtStart** (``Boolean``) :versionbadge:`clang-format 19` 
:ref:`¶ `
+  Keep empty lines (up to ``MaxEmptyLinesToKeep``) at start of file.
+
 .. _KeepEmptyLinesAtTheStartOfBlocks:
 
 **KeepEmptyLinesAtTheStartOfBlocks** (``Boolean``) :versionbadge:`clang-format 
3.7` :ref:`¶ `
diff --git a/clang/include/clang/Format/Format.h 
b/clang/include/clang/Format/Format.h
index 8ebdc86b98329..9a7837b1bac2d 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -3061,6 +3061,10 @@ struct FormatStyle {
   /// \version 17
   bool KeepEmptyLinesAtEOF;
 
+  /// Keep empty lines (up to ``MaxEmptyLinesToKeep``) at start of file.
+  /// \version 19
+  bool KeepEmptyLinesAtStart;
+
   /// If true, the empty line at the start of blocks is kept.
   /// \code
   ///true:  false:
@@ -4994,6 +4998,7 @@ struct FormatStyle {
JavaScriptQuotes == R.JavaScriptQuotes &&
JavaScriptWrapImports == R.JavaScriptWrapImports &&
KeepEmptyLinesAtEOF == R.KeepEmptyLinesAtEOF &&
+   KeepEmptyLinesAtStart == R.KeepEmptyLinesAtStart &&
KeepEmptyLinesAtTheStartOfBlocks ==
R.KeepEmptyLinesAtTheStartOfBlocks &&
Language == R.Language &&
diff --git a/clang/lib/Format/ContinuationIndenter.cpp 
b/clang/lib/Format/ContinuationIndenter.cpp
index ad0e2c3c620c3..33dca7b08f998 100644
--- a/clang/lib/Format/ContinuationIndenter.cpp
+++ b/clang/lib/Format/ContinuationIndenter.cpp
@@ -208,6 +208,9 @@ RawStringFormatStyleManager::RawStringFormatStyleManager(
   LanguageStyle = PredefinedStyle;
 }
 LanguageStyle->ColumnLimit = CodeStyle.ColumnLimit;
+// This way the first line of the string does not have to follow the code
+// before the string.
+LanguageStyle->KeepEmptyLinesAtStart = true;
 for (StringRef Delimiter : RawStringFormat.Delimiters)
   DelimiterStyle.insert({Delimiter, *LanguageStyle});
 for (StringRef EnclosingFunction : RawStringFormat.EnclosingFunctions)
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index c8d8ec3afbd99..31ffbf46cdd08 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -1003,6 +1003,7 @@ template <> struct MappingTraits {
 IO.mapOptional("KeepEmptyLinesAtTheStartOfBlocks",
Style.KeepEmptyLinesAtTheStartOfBlocks);
 IO.mapOptional("KeepEmptyLinesAtEOF", Style.KeepEmptyLinesAtEOF);
+IO.mapOptional("KeepEmptyLinesAtStart", Style.KeepEmptyLinesAtStart);
 IO.mapOptional("LambdaBodyIndentation", Style.LambdaBodyIndentation);
 IO.mapOptional("LineEnding", Style.LineEnding);
 IO.mapOptional("MacroBlockBegin", Style.MacroBlockBegin);
@@ -1513,6 +1514,7 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind 
Language) {
   LLVMStyle.JavaScriptQuotes = FormatStyle::JSQS_Leave;
   LLVMStyle.JavaScriptWrapImports = true;
   LLVMStyle.KeepEmptyLinesAtEOF = false;
+  LLVMStyle.KeepEmptyLinesAtStart = true;
   LLVMStyle.KeepEmptyLinesAtTheStartOfBlocks = true;
   LLVMStyle.LambdaBodyIndentation = FormatStyle::LBI_Signature;
   LLVMStyle.Language = Language;
diff --git a/clang/lib/Format/UnwrappedLineFormatter.cpp 
b/clang/lib/Format/UnwrappedLineFormatter.cpp
index 4ae54e56331bd..b8485ae2b9197 100644
--- a/clang/lib/Format/UnwrappedLineFormatter.cpp
+++ b/clang/lib/Format/UnwrappedLineFormatter.cpp
@@ -1473,8 +1473,10 @@ static auto computeNewlines(const AnnotatedLine ,
 Newlines = std::min(Newlines, 1u);
   if (Newlines == 0 && !RootToken.IsFirst)
 Newlines = 1;
-  if (RootToken.IsFirst && !RootToken.HasUnescapedNewline)
+  if (RootToken.IsFirst &&
+  (!Style.KeepEmptyLinesAtStart || !RootToken.HasUnescapedNewline)) {
 Newlines = 0;
+  }
 
   // Remove empty 

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

2024-06-10 Thread via cfe-commits

sstwcw wrote:

I was initially going to make removing leading blank lines the default.
Now the line is not needed anymore.  But I forgot to remove it.


https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-06-10 Thread Björn Schäpers via cfe-commits


@@ -208,6 +208,9 @@ RawStringFormatStyleManager::RawStringFormatStyleManager(
   LanguageStyle = PredefinedStyle;
 }
 LanguageStyle->ColumnLimit = CodeStyle.ColumnLimit;
+// This way the first line of the string does not have to follow the code
+// before the string.
+LanguageStyle->KeepEmptyLines.AtStartOfFile = true;

HazardyKnusperkeks wrote:

Why exactly is this necessary?

https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-06-09 Thread via cfe-commits

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

>From 72e15ffb87eff94d51af69c0f804084ab7abe474 Mon Sep 17 00:00:00 2001
From: sstwcw 
Date: Mon, 6 May 2024 14:34:08 +
Subject: [PATCH 1/4] [clang-format] Add option to remove leading blank lines

---
 clang/docs/ClangFormatStyleOptions.rst  | 5 +
 clang/include/clang/Format/Format.h | 5 +
 clang/lib/Format/ContinuationIndenter.cpp   | 3 +++
 clang/lib/Format/Format.cpp | 2 ++
 clang/lib/Format/UnwrappedLineFormatter.cpp | 4 +++-
 clang/unittests/Format/ConfigParseTest.cpp  | 1 +
 clang/unittests/Format/FormatTest.cpp   | 7 +++
 7 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/clang/docs/ClangFormatStyleOptions.rst 
b/clang/docs/ClangFormatStyleOptions.rst
index ce9035a2770ee..c81de131f050c 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -4406,6 +4406,11 @@ the configuration (without a prefix: ``Auto``).
 **KeepEmptyLinesAtEOF** (``Boolean``) :versionbadge:`clang-format 17` :ref:`¶ 
`
   Keep empty lines (up to ``MaxEmptyLinesToKeep``) at end of file.
 
+.. _KeepEmptyLinesAtStart:
+
+**KeepEmptyLinesAtStart** (``Boolean``) :versionbadge:`clang-format 19` 
:ref:`¶ `
+  Keep empty lines (up to ``MaxEmptyLinesToKeep``) at start of file.
+
 .. _KeepEmptyLinesAtTheStartOfBlocks:
 
 **KeepEmptyLinesAtTheStartOfBlocks** (``Boolean``) :versionbadge:`clang-format 
3.7` :ref:`¶ `
diff --git a/clang/include/clang/Format/Format.h 
b/clang/include/clang/Format/Format.h
index 8ebdc86b98329..9a7837b1bac2d 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -3061,6 +3061,10 @@ struct FormatStyle {
   /// \version 17
   bool KeepEmptyLinesAtEOF;
 
+  /// Keep empty lines (up to ``MaxEmptyLinesToKeep``) at start of file.
+  /// \version 19
+  bool KeepEmptyLinesAtStart;
+
   /// If true, the empty line at the start of blocks is kept.
   /// \code
   ///true:  false:
@@ -4994,6 +4998,7 @@ struct FormatStyle {
JavaScriptQuotes == R.JavaScriptQuotes &&
JavaScriptWrapImports == R.JavaScriptWrapImports &&
KeepEmptyLinesAtEOF == R.KeepEmptyLinesAtEOF &&
+   KeepEmptyLinesAtStart == R.KeepEmptyLinesAtStart &&
KeepEmptyLinesAtTheStartOfBlocks ==
R.KeepEmptyLinesAtTheStartOfBlocks &&
Language == R.Language &&
diff --git a/clang/lib/Format/ContinuationIndenter.cpp 
b/clang/lib/Format/ContinuationIndenter.cpp
index ad0e2c3c620c3..33dca7b08f998 100644
--- a/clang/lib/Format/ContinuationIndenter.cpp
+++ b/clang/lib/Format/ContinuationIndenter.cpp
@@ -208,6 +208,9 @@ RawStringFormatStyleManager::RawStringFormatStyleManager(
   LanguageStyle = PredefinedStyle;
 }
 LanguageStyle->ColumnLimit = CodeStyle.ColumnLimit;
+// This way the first line of the string does not have to follow the code
+// before the string.
+LanguageStyle->KeepEmptyLinesAtStart = true;
 for (StringRef Delimiter : RawStringFormat.Delimiters)
   DelimiterStyle.insert({Delimiter, *LanguageStyle});
 for (StringRef EnclosingFunction : RawStringFormat.EnclosingFunctions)
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index c8d8ec3afbd99..31ffbf46cdd08 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -1003,6 +1003,7 @@ template <> struct MappingTraits {
 IO.mapOptional("KeepEmptyLinesAtTheStartOfBlocks",
Style.KeepEmptyLinesAtTheStartOfBlocks);
 IO.mapOptional("KeepEmptyLinesAtEOF", Style.KeepEmptyLinesAtEOF);
+IO.mapOptional("KeepEmptyLinesAtStart", Style.KeepEmptyLinesAtStart);
 IO.mapOptional("LambdaBodyIndentation", Style.LambdaBodyIndentation);
 IO.mapOptional("LineEnding", Style.LineEnding);
 IO.mapOptional("MacroBlockBegin", Style.MacroBlockBegin);
@@ -1513,6 +1514,7 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind 
Language) {
   LLVMStyle.JavaScriptQuotes = FormatStyle::JSQS_Leave;
   LLVMStyle.JavaScriptWrapImports = true;
   LLVMStyle.KeepEmptyLinesAtEOF = false;
+  LLVMStyle.KeepEmptyLinesAtStart = true;
   LLVMStyle.KeepEmptyLinesAtTheStartOfBlocks = true;
   LLVMStyle.LambdaBodyIndentation = FormatStyle::LBI_Signature;
   LLVMStyle.Language = Language;
diff --git a/clang/lib/Format/UnwrappedLineFormatter.cpp 
b/clang/lib/Format/UnwrappedLineFormatter.cpp
index 4ae54e56331bd..b8485ae2b9197 100644
--- a/clang/lib/Format/UnwrappedLineFormatter.cpp
+++ b/clang/lib/Format/UnwrappedLineFormatter.cpp
@@ -1473,8 +1473,10 @@ static auto computeNewlines(const AnnotatedLine ,
 Newlines = std::min(Newlines, 1u);
   if (Newlines == 0 && !RootToken.IsFirst)
 Newlines = 1;
-  if (RootToken.IsFirst && !RootToken.HasUnescapedNewline)
+  if (RootToken.IsFirst &&
+  (!Style.KeepEmptyLinesAtStart || !RootToken.HasUnescapedNewline)) {
 Newlines = 0;
+  }
 
   // Remove empty 

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

2024-05-30 Thread Owen Pan via cfe-commits

owenca wrote:

Please refer to e3eca335940251308c8990c8880341002e74b9c1 for 
grouping/deprecating existing options with a new one.

https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-05-24 Thread via cfe-commits

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

>From 72e15ffb87eff94d51af69c0f804084ab7abe474 Mon Sep 17 00:00:00 2001
From: sstwcw 
Date: Mon, 6 May 2024 14:34:08 +
Subject: [PATCH 1/2] [clang-format] Add option to remove leading blank lines

---
 clang/docs/ClangFormatStyleOptions.rst  | 5 +
 clang/include/clang/Format/Format.h | 5 +
 clang/lib/Format/ContinuationIndenter.cpp   | 3 +++
 clang/lib/Format/Format.cpp | 2 ++
 clang/lib/Format/UnwrappedLineFormatter.cpp | 4 +++-
 clang/unittests/Format/ConfigParseTest.cpp  | 1 +
 clang/unittests/Format/FormatTest.cpp   | 7 +++
 7 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/clang/docs/ClangFormatStyleOptions.rst 
b/clang/docs/ClangFormatStyleOptions.rst
index ce9035a2770ee..c81de131f050c 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -4406,6 +4406,11 @@ the configuration (without a prefix: ``Auto``).
 **KeepEmptyLinesAtEOF** (``Boolean``) :versionbadge:`clang-format 17` :ref:`¶ 
`
   Keep empty lines (up to ``MaxEmptyLinesToKeep``) at end of file.
 
+.. _KeepEmptyLinesAtStart:
+
+**KeepEmptyLinesAtStart** (``Boolean``) :versionbadge:`clang-format 19` 
:ref:`¶ `
+  Keep empty lines (up to ``MaxEmptyLinesToKeep``) at start of file.
+
 .. _KeepEmptyLinesAtTheStartOfBlocks:
 
 **KeepEmptyLinesAtTheStartOfBlocks** (``Boolean``) :versionbadge:`clang-format 
3.7` :ref:`¶ `
diff --git a/clang/include/clang/Format/Format.h 
b/clang/include/clang/Format/Format.h
index 8ebdc86b98329..9a7837b1bac2d 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -3061,6 +3061,10 @@ struct FormatStyle {
   /// \version 17
   bool KeepEmptyLinesAtEOF;
 
+  /// Keep empty lines (up to ``MaxEmptyLinesToKeep``) at start of file.
+  /// \version 19
+  bool KeepEmptyLinesAtStart;
+
   /// If true, the empty line at the start of blocks is kept.
   /// \code
   ///true:  false:
@@ -4994,6 +4998,7 @@ struct FormatStyle {
JavaScriptQuotes == R.JavaScriptQuotes &&
JavaScriptWrapImports == R.JavaScriptWrapImports &&
KeepEmptyLinesAtEOF == R.KeepEmptyLinesAtEOF &&
+   KeepEmptyLinesAtStart == R.KeepEmptyLinesAtStart &&
KeepEmptyLinesAtTheStartOfBlocks ==
R.KeepEmptyLinesAtTheStartOfBlocks &&
Language == R.Language &&
diff --git a/clang/lib/Format/ContinuationIndenter.cpp 
b/clang/lib/Format/ContinuationIndenter.cpp
index ad0e2c3c620c3..33dca7b08f998 100644
--- a/clang/lib/Format/ContinuationIndenter.cpp
+++ b/clang/lib/Format/ContinuationIndenter.cpp
@@ -208,6 +208,9 @@ RawStringFormatStyleManager::RawStringFormatStyleManager(
   LanguageStyle = PredefinedStyle;
 }
 LanguageStyle->ColumnLimit = CodeStyle.ColumnLimit;
+// This way the first line of the string does not have to follow the code
+// before the string.
+LanguageStyle->KeepEmptyLinesAtStart = true;
 for (StringRef Delimiter : RawStringFormat.Delimiters)
   DelimiterStyle.insert({Delimiter, *LanguageStyle});
 for (StringRef EnclosingFunction : RawStringFormat.EnclosingFunctions)
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index c8d8ec3afbd99..31ffbf46cdd08 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -1003,6 +1003,7 @@ template <> struct MappingTraits {
 IO.mapOptional("KeepEmptyLinesAtTheStartOfBlocks",
Style.KeepEmptyLinesAtTheStartOfBlocks);
 IO.mapOptional("KeepEmptyLinesAtEOF", Style.KeepEmptyLinesAtEOF);
+IO.mapOptional("KeepEmptyLinesAtStart", Style.KeepEmptyLinesAtStart);
 IO.mapOptional("LambdaBodyIndentation", Style.LambdaBodyIndentation);
 IO.mapOptional("LineEnding", Style.LineEnding);
 IO.mapOptional("MacroBlockBegin", Style.MacroBlockBegin);
@@ -1513,6 +1514,7 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind 
Language) {
   LLVMStyle.JavaScriptQuotes = FormatStyle::JSQS_Leave;
   LLVMStyle.JavaScriptWrapImports = true;
   LLVMStyle.KeepEmptyLinesAtEOF = false;
+  LLVMStyle.KeepEmptyLinesAtStart = true;
   LLVMStyle.KeepEmptyLinesAtTheStartOfBlocks = true;
   LLVMStyle.LambdaBodyIndentation = FormatStyle::LBI_Signature;
   LLVMStyle.Language = Language;
diff --git a/clang/lib/Format/UnwrappedLineFormatter.cpp 
b/clang/lib/Format/UnwrappedLineFormatter.cpp
index 4ae54e56331bd..b8485ae2b9197 100644
--- a/clang/lib/Format/UnwrappedLineFormatter.cpp
+++ b/clang/lib/Format/UnwrappedLineFormatter.cpp
@@ -1473,8 +1473,10 @@ static auto computeNewlines(const AnnotatedLine ,
 Newlines = std::min(Newlines, 1u);
   if (Newlines == 0 && !RootToken.IsFirst)
 Newlines = 1;
-  if (RootToken.IsFirst && !RootToken.HasUnescapedNewline)
+  if (RootToken.IsFirst &&
+  (!Style.KeepEmptyLinesAtStart || !RootToken.HasUnescapedNewline)) {
 Newlines = 0;
+  }
 
   // Remove empty 

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

2024-05-10 Thread Owen Pan via cfe-commits

https://github.com/owenca requested changes to this pull request.

See https://github.com/llvm/llvm-project/pull/91221#issuecomment-2105454428.

https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-05-10 Thread Owen Pan via cfe-commits

owenca wrote:

> Should I make dropping leading blank lines the default?

We should keep leading blank lines (up to `MaxEmptyLinesToKeep`) by default as 
before.

https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-05-10 Thread Owen Pan via cfe-commits

owenca wrote:

I think this is a good time to combine the `KeepEmptyLines...` options. For 
example:
```
KeepEmptyLines:
  AtStartOfBlock: true
  AtStartOfFile: false
  AtEndOfFile: true
```

https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-05-09 Thread via cfe-commits

https://github.com/mydeveloperday approved this pull request.


https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-05-09 Thread Björn Schäpers via cfe-commits

https://github.com/HazardyKnusperkeks approved this pull request.


https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-05-06 Thread via cfe-commits

sstwcw wrote:

Should I make dropping leading blank lines the default?

There are some tests verifying that files that start with newlines should still 
start with newlines after being formatted.  However, they seem to be there to 
prevent the newlines from moving to wrong places.

There is 303baf53b1 "skip empty lines and comments in the top of the code when 
inserting new headers".

```C++
  std::string Code = "\nint x;";
  std::string Expected = "\n#include \"fix.h\"\n"
 "#include \"a.h\"\n"
 "#include \"b.h\"\n"
 "#include \"c.h\"\n"
 "#include \n"
 "#include \n"
 "int x;";
  tooling::Replacements Replaces = toReplacements(
  {createInsertion("#include \"a.h\""), createInsertion("#include \"c.h\""),
   createInsertion("#include \"b.h\""),
   createInsertion("#include "), createInsertion("#include "),
   createInsertion("#include \"fix.h\"")});
  EXPECT_EQ(Expected, formatAndApply(Code, Replaces));
```

There is also a test for preserving the byte order mark.

```C++
  verifyFormat("\xef\xbb\xbf\n#include ");
```

https://github.com/llvm/llvm-project/pull/91221
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


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

2024-05-06 Thread via cfe-commits

llvmbot wrote:




@llvm/pr-subscribers-clang

Author: None (sstwcw)


Changes



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


7 Files Affected:

- (modified) clang/docs/ClangFormatStyleOptions.rst (+5) 
- (modified) clang/include/clang/Format/Format.h (+5) 
- (modified) clang/lib/Format/ContinuationIndenter.cpp (+3) 
- (modified) clang/lib/Format/Format.cpp (+2) 
- (modified) clang/lib/Format/UnwrappedLineFormatter.cpp (+3-1) 
- (modified) clang/unittests/Format/ConfigParseTest.cpp (+1) 
- (modified) clang/unittests/Format/FormatTest.cpp (+7) 


``diff
diff --git a/clang/docs/ClangFormatStyleOptions.rst 
b/clang/docs/ClangFormatStyleOptions.rst
index ce9035a2770eec..c81de131f050c1 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -4406,6 +4406,11 @@ the configuration (without a prefix: ``Auto``).
 **KeepEmptyLinesAtEOF** (``Boolean``) :versionbadge:`clang-format 17` :ref:`¶ 
`
   Keep empty lines (up to ``MaxEmptyLinesToKeep``) at end of file.
 
+.. _KeepEmptyLinesAtStart:
+
+**KeepEmptyLinesAtStart** (``Boolean``) :versionbadge:`clang-format 19` 
:ref:`¶ `
+  Keep empty lines (up to ``MaxEmptyLinesToKeep``) at start of file.
+
 .. _KeepEmptyLinesAtTheStartOfBlocks:
 
 **KeepEmptyLinesAtTheStartOfBlocks** (``Boolean``) :versionbadge:`clang-format 
3.7` :ref:`¶ `
diff --git a/clang/include/clang/Format/Format.h 
b/clang/include/clang/Format/Format.h
index 8ebdc86b98329c..9a7837b1bac2d2 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -3061,6 +3061,10 @@ struct FormatStyle {
   /// \version 17
   bool KeepEmptyLinesAtEOF;
 
+  /// Keep empty lines (up to ``MaxEmptyLinesToKeep``) at start of file.
+  /// \version 19
+  bool KeepEmptyLinesAtStart;
+
   /// If true, the empty line at the start of blocks is kept.
   /// \code
   ///true:  false:
@@ -4994,6 +4998,7 @@ struct FormatStyle {
JavaScriptQuotes == R.JavaScriptQuotes &&
JavaScriptWrapImports == R.JavaScriptWrapImports &&
KeepEmptyLinesAtEOF == R.KeepEmptyLinesAtEOF &&
+   KeepEmptyLinesAtStart == R.KeepEmptyLinesAtStart &&
KeepEmptyLinesAtTheStartOfBlocks ==
R.KeepEmptyLinesAtTheStartOfBlocks &&
Language == R.Language &&
diff --git a/clang/lib/Format/ContinuationIndenter.cpp 
b/clang/lib/Format/ContinuationIndenter.cpp
index ad0e2c3c620c32..33dca7b08f998d 100644
--- a/clang/lib/Format/ContinuationIndenter.cpp
+++ b/clang/lib/Format/ContinuationIndenter.cpp
@@ -208,6 +208,9 @@ RawStringFormatStyleManager::RawStringFormatStyleManager(
   LanguageStyle = PredefinedStyle;
 }
 LanguageStyle->ColumnLimit = CodeStyle.ColumnLimit;
+// This way the first line of the string does not have to follow the code
+// before the string.
+LanguageStyle->KeepEmptyLinesAtStart = true;
 for (StringRef Delimiter : RawStringFormat.Delimiters)
   DelimiterStyle.insert({Delimiter, *LanguageStyle});
 for (StringRef EnclosingFunction : RawStringFormat.EnclosingFunctions)
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index c8d8ec3afbd990..31ffbf46cdd085 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -1003,6 +1003,7 @@ template <> struct MappingTraits {
 IO.mapOptional("KeepEmptyLinesAtTheStartOfBlocks",
Style.KeepEmptyLinesAtTheStartOfBlocks);
 IO.mapOptional("KeepEmptyLinesAtEOF", Style.KeepEmptyLinesAtEOF);
+IO.mapOptional("KeepEmptyLinesAtStart", Style.KeepEmptyLinesAtStart);
 IO.mapOptional("LambdaBodyIndentation", Style.LambdaBodyIndentation);
 IO.mapOptional("LineEnding", Style.LineEnding);
 IO.mapOptional("MacroBlockBegin", Style.MacroBlockBegin);
@@ -1513,6 +1514,7 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind 
Language) {
   LLVMStyle.JavaScriptQuotes = FormatStyle::JSQS_Leave;
   LLVMStyle.JavaScriptWrapImports = true;
   LLVMStyle.KeepEmptyLinesAtEOF = false;
+  LLVMStyle.KeepEmptyLinesAtStart = true;
   LLVMStyle.KeepEmptyLinesAtTheStartOfBlocks = true;
   LLVMStyle.LambdaBodyIndentation = FormatStyle::LBI_Signature;
   LLVMStyle.Language = Language;
diff --git a/clang/lib/Format/UnwrappedLineFormatter.cpp 
b/clang/lib/Format/UnwrappedLineFormatter.cpp
index 4ae54e56331bdc..b8485ae2b91975 100644
--- a/clang/lib/Format/UnwrappedLineFormatter.cpp
+++ b/clang/lib/Format/UnwrappedLineFormatter.cpp
@@ -1473,8 +1473,10 @@ static auto computeNewlines(const AnnotatedLine ,
 Newlines = std::min(Newlines, 1u);
   if (Newlines == 0 && !RootToken.IsFirst)
 Newlines = 1;
-  if (RootToken.IsFirst && !RootToken.HasUnescapedNewline)
+  if (RootToken.IsFirst &&
+  (!Style.KeepEmptyLinesAtStart || !RootToken.HasUnescapedNewline)) {
 Newlines = 0;
+  }
 
   // Remove empty lines after "{".
   if (!Style.KeepEmptyLinesAtTheStartOfBlocks && PreviousLine &&
diff --git 

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

2024-05-06 Thread via cfe-commits

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

None

>From 72e15ffb87eff94d51af69c0f804084ab7abe474 Mon Sep 17 00:00:00 2001
From: sstwcw 
Date: Mon, 6 May 2024 14:34:08 +
Subject: [PATCH] [clang-format] Add option to remove leading blank lines

---
 clang/docs/ClangFormatStyleOptions.rst  | 5 +
 clang/include/clang/Format/Format.h | 5 +
 clang/lib/Format/ContinuationIndenter.cpp   | 3 +++
 clang/lib/Format/Format.cpp | 2 ++
 clang/lib/Format/UnwrappedLineFormatter.cpp | 4 +++-
 clang/unittests/Format/ConfigParseTest.cpp  | 1 +
 clang/unittests/Format/FormatTest.cpp   | 7 +++
 7 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/clang/docs/ClangFormatStyleOptions.rst 
b/clang/docs/ClangFormatStyleOptions.rst
index ce9035a2770eec..c81de131f050c1 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -4406,6 +4406,11 @@ the configuration (without a prefix: ``Auto``).
 **KeepEmptyLinesAtEOF** (``Boolean``) :versionbadge:`clang-format 17` :ref:`¶ 
`
   Keep empty lines (up to ``MaxEmptyLinesToKeep``) at end of file.
 
+.. _KeepEmptyLinesAtStart:
+
+**KeepEmptyLinesAtStart** (``Boolean``) :versionbadge:`clang-format 19` 
:ref:`¶ `
+  Keep empty lines (up to ``MaxEmptyLinesToKeep``) at start of file.
+
 .. _KeepEmptyLinesAtTheStartOfBlocks:
 
 **KeepEmptyLinesAtTheStartOfBlocks** (``Boolean``) :versionbadge:`clang-format 
3.7` :ref:`¶ `
diff --git a/clang/include/clang/Format/Format.h 
b/clang/include/clang/Format/Format.h
index 8ebdc86b98329c..9a7837b1bac2d2 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -3061,6 +3061,10 @@ struct FormatStyle {
   /// \version 17
   bool KeepEmptyLinesAtEOF;
 
+  /// Keep empty lines (up to ``MaxEmptyLinesToKeep``) at start of file.
+  /// \version 19
+  bool KeepEmptyLinesAtStart;
+
   /// If true, the empty line at the start of blocks is kept.
   /// \code
   ///true:  false:
@@ -4994,6 +4998,7 @@ struct FormatStyle {
JavaScriptQuotes == R.JavaScriptQuotes &&
JavaScriptWrapImports == R.JavaScriptWrapImports &&
KeepEmptyLinesAtEOF == R.KeepEmptyLinesAtEOF &&
+   KeepEmptyLinesAtStart == R.KeepEmptyLinesAtStart &&
KeepEmptyLinesAtTheStartOfBlocks ==
R.KeepEmptyLinesAtTheStartOfBlocks &&
Language == R.Language &&
diff --git a/clang/lib/Format/ContinuationIndenter.cpp 
b/clang/lib/Format/ContinuationIndenter.cpp
index ad0e2c3c620c32..33dca7b08f998d 100644
--- a/clang/lib/Format/ContinuationIndenter.cpp
+++ b/clang/lib/Format/ContinuationIndenter.cpp
@@ -208,6 +208,9 @@ RawStringFormatStyleManager::RawStringFormatStyleManager(
   LanguageStyle = PredefinedStyle;
 }
 LanguageStyle->ColumnLimit = CodeStyle.ColumnLimit;
+// This way the first line of the string does not have to follow the code
+// before the string.
+LanguageStyle->KeepEmptyLinesAtStart = true;
 for (StringRef Delimiter : RawStringFormat.Delimiters)
   DelimiterStyle.insert({Delimiter, *LanguageStyle});
 for (StringRef EnclosingFunction : RawStringFormat.EnclosingFunctions)
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index c8d8ec3afbd990..31ffbf46cdd085 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -1003,6 +1003,7 @@ template <> struct MappingTraits {
 IO.mapOptional("KeepEmptyLinesAtTheStartOfBlocks",
Style.KeepEmptyLinesAtTheStartOfBlocks);
 IO.mapOptional("KeepEmptyLinesAtEOF", Style.KeepEmptyLinesAtEOF);
+IO.mapOptional("KeepEmptyLinesAtStart", Style.KeepEmptyLinesAtStart);
 IO.mapOptional("LambdaBodyIndentation", Style.LambdaBodyIndentation);
 IO.mapOptional("LineEnding", Style.LineEnding);
 IO.mapOptional("MacroBlockBegin", Style.MacroBlockBegin);
@@ -1513,6 +1514,7 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind 
Language) {
   LLVMStyle.JavaScriptQuotes = FormatStyle::JSQS_Leave;
   LLVMStyle.JavaScriptWrapImports = true;
   LLVMStyle.KeepEmptyLinesAtEOF = false;
+  LLVMStyle.KeepEmptyLinesAtStart = true;
   LLVMStyle.KeepEmptyLinesAtTheStartOfBlocks = true;
   LLVMStyle.LambdaBodyIndentation = FormatStyle::LBI_Signature;
   LLVMStyle.Language = Language;
diff --git a/clang/lib/Format/UnwrappedLineFormatter.cpp 
b/clang/lib/Format/UnwrappedLineFormatter.cpp
index 4ae54e56331bdc..b8485ae2b91975 100644
--- a/clang/lib/Format/UnwrappedLineFormatter.cpp
+++ b/clang/lib/Format/UnwrappedLineFormatter.cpp
@@ -1473,8 +1473,10 @@ static auto computeNewlines(const AnnotatedLine ,
 Newlines = std::min(Newlines, 1u);
   if (Newlines == 0 && !RootToken.IsFirst)
 Newlines = 1;
-  if (RootToken.IsFirst && !RootToken.HasUnescapedNewline)
+  if (RootToken.IsFirst &&
+  (!Style.KeepEmptyLinesAtStart || !RootToken.HasUnescapedNewline)) {
 Newlines = 0;
+  }
 
   //