templight
templight copied to clipboard
Templight is a Clang-based tool to profile the time and memory consumption of template instantiations and to perform interactive debugging sessions to gain introspection into the template instantiatio...
in file include/ThinProtobuf.h:225 (for example), llvm::support::endianness doesn't exist. It seems to be llvm::endianness that should be used instead. See : https://llvm.org/doxygen/namespacellvm.html#ae1e26e57357947b25e392fd18ab000db in lib/TemplightTracer.cpp:200 and lib/TemplightAction.cpp:59, getFileName doesn't exist. It seems...
Hi there, Any chance you could get us a signed source archive off of master? Thanks!
On the latest `main` of llvm, the generated C++ compiler (`templight++`) aborts with an error: ``` -- Check for working CXX compiler: /Users/calum/projects/llvm-project/build/bin/templight++ - broken CMake Error at /opt/homebrew/Cellar/cmake/3.20.1/share/cmake/Modules/CMakeTestCXXCompiler.cmake:59 (message):...
Thanks for this great tool! I am able to step through the template process, but unfortunately it isn't of much use as it does not output anything for the above...
The llvm/clang code has moved along and I am not able to build templight with the latest version llvm/tools/clang/lib/Sema/SemaTemplateInstantiate.cpp:219:68: error: no viable conversion from 'clang::Sema::ActiveTemplateInstantiation' to 'const clang::ActiveTemplateInstantiation' SemaRef.TemplateInstCallbacksChain->atTemplateBegin(SemaRef, Inst);...
That is, if you have a compilation command database, you can just call templight -debug path/to/file.cc and it'll automatically do the right thing. See https://reviews.llvm.org/source/clang/browse/cfe/trunk/tools/clang-check/ClangCheck.cpp for a simple example.
Would you care to provide a binary distribution of templight for windows ? Patching and building clang is such a pain :/
Perhaps a docker image can be constructed that has a recent templight build in it? I am not able to build following the instructions on the page. I'm sure any...
Hi Mikael, As the current commit (of the master branch) works with a released version of Clang, it might be tagged, so anyone willing to build a Templight 3.8.0 can...