Skip to content

[llvm] add support for mustache templating language #105893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 87 commits into from
Mar 10, 2025

Conversation

PeterChou1
Copy link
Contributor

@PeterChou1 PeterChou1 commented Aug 23, 2024

Adds Support for the Mustache Templating Language. See specs here: https://mustache.github.io/mustache.5.html
This patch implements support+tests for majority of the features of the language including:

  • Variables
  • Comments
  • Lambdas
  • Sections

This meant as a library to support places where we have to generate HTML, such as in clang-doc.

Copy link

github-actions bot commented Aug 23, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

@PeterChou1 PeterChou1 requested a review from ilovepi September 6, 2024 21:44
@PeterChou1 PeterChou1 marked this pull request as ready for review September 6, 2024 21:45
Copy link
Contributor

@ilovepi ilovepi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall a good start, but I think we can tighten up the implementation in a few places, and improve the documentation here quite a bit.

I'd also like to see a somewhat expanded comment block in the header, describing the overall design of the library. This is a pattern you'll see a lot in LLVM, and its usually appreciated.

llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Mar 11, 2025
…e" (#130720)

Reverts llvm/llvm-project#105893 since it broke all builders that use
GCC as the compiler.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 11, 2025

LLVM Buildbot has detected a new failure on builder clang-with-thin-lto-ubuntu running on as-worker-92 while building llvm at step 6 "build-stage1-compiler".

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

Here is the relevant piece of the build log for the reference
Step 6 (build-stage1-compiler) failure: build (failure)
...
3.429 [6297/72/116] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Unicode.cpp.o
3.462 [6296/72/117] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/SlowDynamicAPInt.cpp.o
3.464 [6295/72/118] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ELFAttrParserCompact.cpp.o
3.481 [6294/72/119] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/MemoryBuffer.cpp.o
3.521 [6293/72/120] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ARMAttributeParser.cpp.o
3.543 [6292/72/121] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/LockFileManager.cpp.o
3.549 [6291/72/122] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/UnicodeCaseFold.cpp.o
3.572 [6290/72/123] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ELFAttrParserExtended.cpp.o
3.621 [6289/72/124] Generating VCSRevision.h
3.642 [6288/72/125] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/lib/Support -I/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/lib/Support -I/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/include -I/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/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 -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/lib/Support/Mustache.cpp
/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/lib/Support/Mustache.cpp:109:12: error: declaration of ‘{anonymous}::Accessor llvm::mustache::Token::Accessor’ changes meaning of ‘Accessor’ [-fpermissive]
  109 |   Accessor Accessor;
      |            ^~~~~~~~
/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/lib/Support/Mustache.cpp:19:7: note: ‘Accessor’ declared here as ‘using Accessor = class llvm::SmallVector<std::__cxx11::basic_string<char> >’
   19 | using Accessor = SmallVector<std::string>;
      |       ^~~~~~~~
/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/lib/Support/Mustache.cpp:186:18: error: declaration of ‘const Accessor llvm::mustache::ASTNode::Accessor’ changes meaning of ‘Accessor’ [-fpermissive]
  186 |   const Accessor Accessor;
      |                  ^~~~~~~~
/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/lib/Support/Mustache.cpp:19:7: note: ‘Accessor’ declared here as ‘using Accessor = class llvm::SmallVector<std::__cxx11::basic_string<char> >’
   19 | using Accessor = SmallVector<std::string>;
      |       ^~~~~~~~
In file included from /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/lib/Support/Mustache.cpp:8:
/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/include/llvm/Support/Mustache.h: In constructor ‘llvm::mustache::Template::Template(llvm::mustache::Template&&)’:
/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/include/llvm/Support/Mustache.h:123:12: warning: ‘llvm::mustache::Template::Tree’ will be initialized after [-Wreorder]
  123 |   ASTNode *Tree;
      |            ^~~~
/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/include/llvm/Support/Mustache.h:120:26: warning:   ‘llvm::BumpPtrAllocator llvm::mustache::Template::AstAllocator’ [-Wreorder]
  120 |   llvm::BumpPtrAllocator AstAllocator;
      |                          ^~~~~~~~~~~~
/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/lib/Support/Mustache.cpp:769:1: warning:   when initialized here [-Wreorder]
  769 | Template::Template(Template &&Other) noexcept
      | ^~~~~~~~
3.642 [6288/71/126] Building C object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_neon.c.o
3.648 [6288/70/127] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/raw_os_ostream.cpp.o
3.655 [6288/69/128] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/VersionTuple.cpp.o
3.710 [6288/68/129] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Parallel.cpp.o
3.717 [6288/67/130] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Twine.cpp.o
3.744 [6288/66/131] Building C object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_dispatch.c.o
3.752 [6288/65/132] Building C object lib/Support/CMakeFiles/LLVMSupport.dir/regexec.c.o
3.789 [6288/64/133] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/TypeSize.cpp.o
3.804 [6288/63/134] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/RandomNumberGenerator.cpp.o
3.829 [6288/62/135] Building C object lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o
3.842 [6288/61/136] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ToolOutputFile.cpp.o
4.081 [6288/60/137] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/TarWriter.cpp.o
4.088 [6288/59/138] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/RWMutex.cpp.o
4.096 [6288/58/139] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/SuffixTree.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 11, 2025

LLVM Buildbot has detected a new failure on builder clang-ppc64-aix running on aix-ppc64 while building llvm at step 3 "clean-build-dir".

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

Here is the relevant piece of the build log for the reference
Step 3 (clean-build-dir) failure: Delete failed. (failure) (timed out)
Step 5 (build-unified-tree) failure: build (failure)
...
35.673 [5224/10/87] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/MD5.cpp.o
36.212 [5223/10/88] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/JSON.cpp.o
36.398 [5222/10/89] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/MSP430AttributeParser.cpp.o
36.476 [5221/10/90] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/NativeFormatting.cpp.o
36.554 [5220/10/91] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/MemoryBuffer.cpp.o
36.685 [5219/10/92] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/OptimizedStructLayout.cpp.o
37.116 [5218/10/93] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Optional.cpp.o
37.596 [5217/10/94] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/OptionStrCmp.cpp.o
38.230 [5216/10/95] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/PrettyStackTrace.cpp.o
38.410 [5215/10/96] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
/usr/local/clang-17.0.2/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_LARGE_FILE_API -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/lib/Support -I/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/lib/Support -I/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/include -I/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/include -mcmodel=large -fPIC -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  -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/lib/Support/Mustache.cpp
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/lib/Support/Mustache.cpp:278:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  278 |     NextToken.TokenBody = std::move(NextTokenBody.substr(2).str());
      |                           ^
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/lib/Support/Mustache.cpp:278:27: note: remove std::move call here
  278 |     NextToken.TokenBody = std::move(NextTokenBody.substr(2).str());
      |                           ^~~~~~~~~~                             ~
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/lib/Support/Mustache.cpp:280:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  280 |     NextToken.TokenBody = std::move(NextTokenBody.substr(1).str());
      |                           ^
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/lib/Support/Mustache.cpp:280:27: note: remove std::move call here
  280 |     NextToken.TokenBody = std::move(NextTokenBody.substr(1).str());
      |                           ^~~~~~~~~~                             ~
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/lib/Support/Mustache.cpp:298:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  298 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/lib/Support/Mustache.cpp:298:27: note: remove std::move call here
  298 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/lib/Support/Mustache.cpp:772:42: error: field 'Tree' will be initialized after field 'AstAllocator' [-Werror,-Wreorder-ctor]
  772 |       Escapes(std::move(Other.Escapes)), Tree(Other.Tree),
      |                                          ^~~~~~~~~~~~~~~~
      |                                          AstAllocator(std::move(Other.AstAllocator))
  773 |       AstAllocator(std::move(Other.AstAllocator)),
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |       RenderAllocator(std::move(Other.RenderAllocator))
  774 |       RenderAllocator(std::move(Other.RenderAllocator)) {
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |       Tree(Other.Tree)
4 errors generated.
38.769 [5215/9/97] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/RewriteBuffer.cpp.o
38.901 [5215/8/98] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/PluginLoader.cpp.o
38.973 [5215/7/99] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/PGOOptions.cpp.o
39.086 [5215/6/100] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Regex.cpp.o
39.296 [5215/5/101] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/RISCVAttributes.cpp.o
39.739 [5215/4/102] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/RewriteRope.cpp.o
40.320 [5215/3/103] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Parallel.cpp.o
40.649 [5215/2/104] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/RandomNumberGenerator.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 11, 2025

LLVM Buildbot has detected a new failure on builder clang-arm64-windows-msvc running on linaro-armv8-windows-msvc-04 while building llvm at step 4 "build stage 1".

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

Here is the relevant piece of the build log for the reference
Step 4 (build stage 1) failure: 'ninja' (failure)
...
[9097/9301] Linking CXX executable bin\llvm-opt-fuzzer.exe
[9098/9301] Linking CXX executable bin\yaml2obj.exe
[9099/9301] Linking CXX shared module unittests\Support\DynamicLibrary\SecondLib.dll
[9100/9301] Linking CXX static library lib\benchmark_main.lib
[9101/9301] Linking CXX executable bin\KillTheDoctor.exe
[9102/9301] Copying llvm-locstats into C:/Users/tcwg/llvm-worker/clang-arm64-windows-msvc/stage1/./bin
[9103/9301] Linking CXX executable bin\verify-uselistorder.exe
[9104/9301] Linking CXX executable bin\llvm-reduce.exe
[9105/9301] Linking CXX executable bin\llvm-split.exe
[9106/9301] Linking CXX shared library bin\LLVM-C.dll
command timed out: 1200 seconds without output running [b'ninja'], attempting to kill
program finished with exit code 1
elapsedTime=9656.456651

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 11, 2025

LLVM Buildbot has detected a new failure on builder polly-x86_64-linux-shared running on polly-x86_64-gce2 while building llvm at step 5 "build".

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

Here is the relevant piece of the build log for the reference
Step 5 (build) failure: 'ninja' (failure)
...
[227/4326] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/GlobalTypeTableBuilder.cpp.o
[228/4326] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/LazyRandomTypeCollection.cpp.o
[229/4326] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/MergingTypeTableBuilder.cpp.o
[230/4326] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/Line.cpp.o
[231/4326] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/RecordName.cpp.o
[232/4326] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/RecordSerialization.cpp.o
[233/4326] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/StringsAndChecksums.cpp.o
[234/4326] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/SimpleTypeSerializer.cpp.o
[235/4326] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/SymbolDumper.cpp.o
[236/4326] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.obj/lib/Support -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.obj/include -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/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 -O3 -DNDEBUG -fPIC -UNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:109:12: error: declaration of ‘{anonymous}::Accessor llvm::mustache::Token::Accessor’ changes meaning of ‘Accessor’ [-fpermissive]
  109 |   Accessor Accessor;
      |            ^~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:19:7: note: ‘Accessor’ declared here as ‘using Accessor = class llvm::SmallVector<std::__cxx11::basic_string<char> >’
   19 | using Accessor = SmallVector<std::string>;
      |       ^~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:186:18: error: declaration of ‘const Accessor llvm::mustache::ASTNode::Accessor’ changes meaning of ‘Accessor’ [-fpermissive]
  186 |   const Accessor Accessor;
      |                  ^~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:19:7: note: ‘Accessor’ declared here as ‘using Accessor = class llvm::SmallVector<std::__cxx11::basic_string<char> >’
   19 | using Accessor = SmallVector<std::string>;
      |       ^~~~~~~~
In file included from /home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:8:
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/include/llvm/Support/Mustache.h: In constructor ‘llvm::mustache::Template::Template(llvm::mustache::Template&&)’:
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/include/llvm/Support/Mustache.h:123:12: warning: ‘llvm::mustache::Template::Tree’ will be initialized after [-Wreorder]
  123 |   ASTNode *Tree;
      |            ^~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/include/llvm/Support/Mustache.h:120:26: warning:   ‘llvm::BumpPtrAllocator llvm::mustache::Template::AstAllocator’ [-Wreorder]
  120 |   llvm::BumpPtrAllocator AstAllocator;
      |                          ^~~~~~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:769:1: warning:   when initialized here [-Wreorder]
  769 | Template::Template(Template &&Other) noexcept
      | ^~~~~~~~
[237/4326] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/SymbolRecordHelpers.cpp.o
[238/4326] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/SymbolRecordMapping.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 11, 2025

LLVM Buildbot has detected a new failure on builder polly-x86_64-linux-shlib running on polly-x86_64-gce2 while building llvm at step 5 "build".

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

Here is the relevant piece of the build log for the reference
Step 5 (build) failure: 'ninja' (failure)
...
[259/4173] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTNodesEmitter.cpp.o
[260/4173] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangBuiltinsEmitter.cpp.o
[261/4173] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o
[262/4173] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangBuiltinTemplatesEmitter.cpp.o
[263/4173] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp.o
[264/4173] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangCommentHTMLTagsEmitter.cpp.o
[265/4173] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangDataCollectorsEmitter.cpp.o
[266/4173] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangOpcodesEmitter.cpp.o
[267/4173] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangDiagnosticsEmitter.cpp.o
[268/4173] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.obj/lib/Support -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.obj/include -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/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 -O3 -DNDEBUG -UNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:109:12: error: declaration of ‘{anonymous}::Accessor llvm::mustache::Token::Accessor’ changes meaning of ‘Accessor’ [-fpermissive]
  109 |   Accessor Accessor;
      |            ^~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:19:7: note: ‘Accessor’ declared here as ‘using Accessor = class llvm::SmallVector<std::__cxx11::basic_string<char> >’
   19 | using Accessor = SmallVector<std::string>;
      |       ^~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:186:18: error: declaration of ‘const Accessor llvm::mustache::ASTNode::Accessor’ changes meaning of ‘Accessor’ [-fpermissive]
  186 |   const Accessor Accessor;
      |                  ^~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:19:7: note: ‘Accessor’ declared here as ‘using Accessor = class llvm::SmallVector<std::__cxx11::basic_string<char> >’
   19 | using Accessor = SmallVector<std::string>;
      |       ^~~~~~~~
In file included from /home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:8:
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/include/llvm/Support/Mustache.h: In constructor ‘llvm::mustache::Template::Template(llvm::mustache::Template&&)’:
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/include/llvm/Support/Mustache.h:123:12: warning: ‘llvm::mustache::Template::Tree’ will be initialized after [-Wreorder]
  123 |   ASTNode *Tree;
      |            ^~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/include/llvm/Support/Mustache.h:120:26: warning:   ‘llvm::BumpPtrAllocator llvm::mustache::Template::AstAllocator’ [-Wreorder]
  120 |   llvm::BumpPtrAllocator AstAllocator;
      |                          ^~~~~~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:769:1: warning:   when initialized here [-Wreorder]
  769 | Template::Template(Template &&Other) noexcept
      | ^~~~~~~~
[269/4173] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangOptionDocEmitter.cpp.o
[270/4173] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangOpenCLBuiltinEmitter.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 11, 2025

LLVM Buildbot has detected a new failure on builder polly-x86_64-linux-shlib-plugin running on polly-x86_64-gce2 while building llvm at step 5 "build".

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

Here is the relevant piece of the build log for the reference
Step 5 (build) failure: 'ninja' (failure)
...
[301/4173] Copying clang's __stdarg_va_copy.h...
[302/4173] Copying clang's stdint.h...
[303/4173] Copying clang's __stdarg_va_list.h...
[304/4173] Copying clang's stdatomic.h...
[305/4173] Copying clang's stdbool.h...
[306/4173] Copying clang's stdckdint.h...
[307/4173] Copying clang's stddef.h...
[308/4173] Copying clang's __stddef_header_macro.h...
[309/4173] Copying clang's __stddef_max_align_t.h...
[310/4173] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.obj/lib/Support -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.obj/include -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/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 -O3 -DNDEBUG -UNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:109:12: error: declaration of ‘{anonymous}::Accessor llvm::mustache::Token::Accessor’ changes meaning of ‘Accessor’ [-fpermissive]
  109 |   Accessor Accessor;
      |            ^~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:19:7: note: ‘Accessor’ declared here as ‘using Accessor = class llvm::SmallVector<std::__cxx11::basic_string<char> >’
   19 | using Accessor = SmallVector<std::string>;
      |       ^~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:186:18: error: declaration of ‘const Accessor llvm::mustache::ASTNode::Accessor’ changes meaning of ‘Accessor’ [-fpermissive]
  186 |   const Accessor Accessor;
      |                  ^~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:19:7: note: ‘Accessor’ declared here as ‘using Accessor = class llvm::SmallVector<std::__cxx11::basic_string<char> >’
   19 | using Accessor = SmallVector<std::string>;
      |       ^~~~~~~~
In file included from /home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:8:
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/include/llvm/Support/Mustache.h: In constructor ‘llvm::mustache::Template::Template(llvm::mustache::Template&&)’:
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/include/llvm/Support/Mustache.h:123:12: warning: ‘llvm::mustache::Template::Tree’ will be initialized after [-Wreorder]
  123 |   ASTNode *Tree;
      |            ^~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/include/llvm/Support/Mustache.h:120:26: warning:   ‘llvm::BumpPtrAllocator llvm::mustache::Template::AstAllocator’ [-Wreorder]
  120 |   llvm::BumpPtrAllocator AstAllocator;
      |                          ^~~~~~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:769:1: warning:   when initialized here [-Wreorder]
  769 | Template::Template(Template &&Other) noexcept
      | ^~~~~~~~
[311/4173] Copying clang's __stddef_null.h...
[312/4173] Copying clang's __stddef_nullptr_t.h...
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 11, 2025

LLVM Buildbot has detected a new failure on builder polly-x86_64-linux-shared-plugin running on polly-x86_64-gce2 while building llvm at step 5 "build".

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

Here is the relevant piece of the build log for the reference
Step 5 (build) failure: 'ninja' (failure)
...
[324/4326] Copying clang's unwind.h...
[325/4326] Copying clang's varargs.h...
[326/4326] Copying clang's arm_cmse.h...
[327/4326] Copying clang's armintr.h...
[328/4326] Copying clang's arm_acle.h...
[329/4326] Copying clang's __clang_cuda_libdevice_declares.h...
[330/4326] Copying clang's arm64intr.h...
[331/4326] Copying clang's __clang_cuda_math_forward_declares.h...
[332/4326] Copying clang's __clang_cuda_runtime_wrapper.h...
[333/4326] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.obj/lib/Support -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.obj/include -I/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/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 -O3 -DNDEBUG -fPIC -UNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:109:12: error: declaration of ‘{anonymous}::Accessor llvm::mustache::Token::Accessor’ changes meaning of ‘Accessor’ [-fpermissive]
  109 |   Accessor Accessor;
      |            ^~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:19:7: note: ‘Accessor’ declared here as ‘using Accessor = class llvm::SmallVector<std::__cxx11::basic_string<char> >’
   19 | using Accessor = SmallVector<std::string>;
      |       ^~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:186:18: error: declaration of ‘const Accessor llvm::mustache::ASTNode::Accessor’ changes meaning of ‘Accessor’ [-fpermissive]
  186 |   const Accessor Accessor;
      |                  ^~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:19:7: note: ‘Accessor’ declared here as ‘using Accessor = class llvm::SmallVector<std::__cxx11::basic_string<char> >’
   19 | using Accessor = SmallVector<std::string>;
      |       ^~~~~~~~
In file included from /home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:8:
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/include/llvm/Support/Mustache.h: In constructor ‘llvm::mustache::Template::Template(llvm::mustache::Template&&)’:
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/include/llvm/Support/Mustache.h:123:12: warning: ‘llvm::mustache::Template::Tree’ will be initialized after [-Wreorder]
  123 |   ASTNode *Tree;
      |            ^~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/include/llvm/Support/Mustache.h:120:26: warning:   ‘llvm::BumpPtrAllocator llvm::mustache::Template::AstAllocator’ [-Wreorder]
  120 |   llvm::BumpPtrAllocator AstAllocator;
      |                          ^~~~~~~~~~~~
/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.src/llvm/lib/Support/Mustache.cpp:769:1: warning:   when initialized here [-Wreorder]
  769 | Template::Template(Template &&Other) noexcept
      | ^~~~~~~~
[334/4326] Copying clang's hexagon_circ_brev_intrinsics.h...
[335/4326] Copying clang's hexagon_protos.h...
ninja: build stopped: subcommand failed.

PeterChou1 added a commit that referenced this pull request Mar 12, 2025
Reapply #105893

Fixes errors which broke build bot that uses GCC as a compiler
https://lab.llvm.org/buildbot/#/builders/136/builds/3100

The issue here was that using Accessor defined in the anonymous
namespace introduces Accessor as a type alias. Which is, later redeclare
as members in classes Token and ASTNode with the same name which causes
error in GCC. The patch fixes it by renaming the Accesor to
AccessorValue. It also fixes warnings caused by the compile due to
initialization


Adds Support for the Mustache Templating Language. See specs here:
https://mustache.github.io/mustache.5.html
This patch implements support+tests for majority of the features of the
language including:

   - Variables
   - Comments
   - Lambdas
   - Sections

This meant as a library to support places where we have to generate
HTML, such as in clang-doc.
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Mar 12, 2025
…e (#130732)

Reapply llvm/llvm-project#105893

Fixes errors which broke build bot that uses GCC as a compiler
https://lab.llvm.org/buildbot/#/builders/136/builds/3100

The issue here was that using Accessor defined in the anonymous
namespace introduces Accessor as a type alias. Which is, later redeclare
as members in classes Token and ASTNode with the same name which causes
error in GCC. The patch fixes it by renaming the Accesor to
AccessorValue. It also fixes warnings caused by the compile due to
initialization

Adds Support for the Mustache Templating Language. See specs here:
https://mustache.github.io/mustache.5.html
This patch implements support+tests for majority of the features of the
language including:

   - Variables
   - Comments
   - Lambdas
   - Sections

This meant as a library to support places where we have to generate
HTML, such as in clang-doc.
PeterChou1 added a commit that referenced this pull request Mar 12, 2025
VishMCW pushed a commit to VishMCW/llvm-project that referenced this pull request Mar 18, 2025
…0720)

Reverts llvm#105893 since it broke all builders that use
GCC as the compiler.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 24, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 4 (build stage 1) failure: 'ninja -j4' (failure)
...
[230/6002] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/StringsAndChecksums.cpp.o
[231/6002] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/SymbolDumper.cpp.o
[232/6002] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/SymbolRecordHelpers.cpp.o
[233/6002] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/SymbolRecordMapping.cpp.o
[234/6002] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/SymbolSerializer.cpp.o
[235/6002] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/TypeDumpVisitor.cpp.o
[236/6002] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/TypeIndexDiscovery.cpp.o
[237/6002] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/TypeIndex.cpp.o
[238/6002] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/TypeHashing.cpp.o
[239/6002] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.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-multistage/stage1/lib/Support -I/home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/lib/Support -I/home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/stage1/include -I/home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/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 -O3 -DNDEBUG -UNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/lib/Support/Mustache.cpp
/home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/lib/Support/Mustache.cpp:109:12: error: declaration of '{anonymous}::Accessor llvm::mustache::Token::Accessor' changes meaning of 'Accessor' [-fpermissive]
  109 |   Accessor Accessor;
      |            ^~~~~~~~
/home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/lib/Support/Mustache.cpp:19:7: note: 'Accessor' declared here as 'using Accessor = class llvm::SmallVector<std::__cxx11::basic_string<char> >'
   19 | using Accessor = SmallVector<std::string>;
      |       ^~~~~~~~
/home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/lib/Support/Mustache.cpp:186:18: error: declaration of 'const Accessor llvm::mustache::ASTNode::Accessor' changes meaning of 'Accessor' [-fpermissive]
  186 |   const Accessor Accessor;
      |                  ^~~~~~~~
/home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/lib/Support/Mustache.cpp:19:7: note: 'Accessor' declared here as 'using Accessor = class llvm::SmallVector<std::__cxx11::basic_string<char> >'
   19 | using Accessor = SmallVector<std::string>;
      |       ^~~~~~~~
In file included from /home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/lib/Support/Mustache.cpp:8:
/home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/include/llvm/Support/Mustache.h: In constructor 'llvm::mustache::Template::Template(llvm::mustache::Template&&)':
/home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/include/llvm/Support/Mustache.h:123:12: warning: 'llvm::mustache::Template::Tree' will be initialized after [-Wreorder]
  123 |   ASTNode *Tree;
      |            ^~~~
/home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/include/llvm/Support/Mustache.h:120:26: warning:   'llvm::BumpPtrAllocator llvm::mustache::Template::AstAllocator' [-Wreorder]
  120 |   llvm::BumpPtrAllocator AstAllocator;
      |                          ^~~~~~~~~~~~
/home/uweigand/sandbox/buildbot/clang-s390x-linux-multistage/llvm/llvm/lib/Support/Mustache.cpp:769:1: warning:   when initialized here [-Wreorder]
  769 | Template::Template(Template &&Other) noexcept
      | ^~~~~~~~
[240/6002] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/TypeRecordHelpers.cpp.o
[241/6002] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/TypeStreamMerger.cpp.o
[242/6002] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/TypeRecordMapping.cpp.o
ninja: build stopped: subcommand failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants