-
Notifications
You must be signed in to change notification settings - Fork 15.2k
reapply [llvm] add support for mustache templating language #130876
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
Conversation
…m-project into llvm-add-mustache
…m-project into llvm-add-mustache
…m-project into llvm-add-mustache
…m-project into llvm-add-mustache
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/9343 Here is the relevant piece of the build log for the reference |
|
New memory leaks https://lab.llvm.org/buildbot/#/builders/24/builds/6240/steps/12/logs/stdio cc @pcc |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/146/builds/2476 Here is the relevant piece of the build log for the reference |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/64/builds/2486 Here is the relevant piece of the build log for the reference |
|
@PeterChou1 |
…lvm#130876)" This reverts commit 6bf0c46.
| std::string Body; | ||
| ASTNode *Parent; | ||
| // TODO: switch implementation to SmallVector<T> | ||
| std::vector<ASTNode *> Children; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you're getting leaks reported w/ this vector because the ASTNodes are allocated via BumpPtrAllocator, and thus never have their destructors called. Things allocated via BumpPtrAllocator can't have owned heap allocations like this. The two std::strings above are also problematic for the same reason.
When this used StringRef originally, it wasn't an issue for the strings. For the vector, you probably need to either rethink the overall strategy, or pass it in via reference. Maybe DenseMap<ASTNode*, vector<ASTNode*>> is workable using the same patterns/lifetimes as the StringMaps?
Reapply #130732
Fixes errors which broke build bot that uses GCC as a compiler
https://lab.llvm.org/buildbot/#/builders/66/builds/11049
GCC threw an warning due to an issue std::move with a temporary object which prevents copy elision. Fixes the issue by removing the std::move
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:
This meant as a library to support places where we have to generate HTML, such as in clang-doc.