diff options
| author | Martin Probst <martin@probst.io> | 2016-05-29 14:41:02 +0000 |
|---|---|---|
| committer | Martin Probst <martin@probst.io> | 2016-05-29 14:41:02 +0000 |
| commit | 1244ecbbd2072aa13f2bde79c00130486d9e7c78 (patch) | |
| tree | d96090a22dde76a8661517472ba8e76335fee8de /clang/lib/Format/UnwrappedLineParser.cpp | |
| parent | 442b9a90a47450b446c08aaae844a95baa2b92e3 (diff) | |
| download | bcm5719-llvm-1244ecbbd2072aa13f2bde79c00130486d9e7c78.tar.gz bcm5719-llvm-1244ecbbd2072aa13f2bde79c00130486d9e7c78.zip | |
clang-format: [JS] FormatToken.startsSequence/endsSequence.
Refactors AnnotatedLine.startsWith/endsWith by extracting the core functionality
into FormatToken.startsSequence/endsSequence. This allows checking tokens within
the pointered linked list structure with a lookahead, automatically ignoring
comments, which is useful in many places (e.g. see subsequent commit).
llvm-svn: 271183
Diffstat (limited to 'clang/lib/Format/UnwrappedLineParser.cpp')
0 files changed, 0 insertions, 0 deletions

