summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/UnwrappedLineParser.cpp
diff options
context:
space:
mode:
authorMartin Probst <martin@probst.io>2016-05-29 14:41:02 +0000
committerMartin Probst <martin@probst.io>2016-05-29 14:41:02 +0000
commit1244ecbbd2072aa13f2bde79c00130486d9e7c78 (patch)
treed96090a22dde76a8661517472ba8e76335fee8de /clang/lib/Format/UnwrappedLineParser.cpp
parent442b9a90a47450b446c08aaae844a95baa2b92e3 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud