[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 11 00:46:46 PDT 2025


llvm-ci wrote:

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

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

```

</details>

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


More information about the cfe-commits mailing list