llvm-project/clang/unittests
Martin Probst 6181da4796 clang-format: [JS] nested and tagged template strings.
JavaScript template strings can be nested arbitrarily:

    foo = `text ${es.map(e => { return `<${e}>`; })} text`;

This change lexes nested template strings using a stack of lexer states to
correctly switch back to template string lexing on closing braces.

Also, reuse the same stack for the token-stashed logic.

Reviewers: djasper

Subscribers: cfe-commits, klimek

Differential Revision: https://reviews.llvm.org/D22431

llvm-svn: 279727
2016-08-25 10:13:21 +00:00
..
AST [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
ASTMatchers Add an AST matcher for external formal linkage. 2016-08-17 13:10:42 +00:00
Analysis CFGTests: Update libdeps. 2016-07-08 17:06:27 +00:00
Basic [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
CodeGen Make sure the LLVMContext outlive the CompilerInstance 2016-04-14 05:37:41 +00:00
Driver [Driver] Set the default driver mode based on the executable. 2016-08-12 17:47:52 +00:00
Format clang-format: [JS] nested and tagged template strings. 2016-08-25 10:13:21 +00:00
Frontend [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
Lex [Lexer] Don't merge macro args from different macro files 2016-05-19 23:44:02 +00:00
Rewrite Remove autoconf support 2016-01-26 21:30:40 +00:00
Sema [Sema] Allow an external sema source to handle delayed typo corrections. 2016-05-19 10:46:10 +00:00
StaticAnalyzer Remove autoconf support 2016-01-26 21:30:40 +00:00
Tooling Resubmit "[Tooling] Parse compilation database command lines on Windows." 2016-08-18 19:31:48 +00:00
libclang Fixed more signed/unsigned mismatch warnings introduced in my change at r279076 2016-08-18 20:56:48 +00:00
CMakeLists.txt CFGBuilder: Fix crash when visiting a range-based for over a dependent type 2016-07-08 10:50:51 +00:00