YAML: Extract the code that skips a comment into a separate method, NFC.
authorAlex Lorenz <arphaman@gmail.com>
Wed, 6 May 2015 23:00:45 +0000 (23:00 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 6 May 2015 23:00:45 +0000 (23:00 +0000)
commit0f04f3b2132c2741ba206a52694fd51158ff7669
treed5096208beb28e77b7ae2539070fc0d30f8522bc
parentcdedd99893829082365c4489e89be4244e36956a
YAML: Extract the code that skips a comment into a separate method, NFC.

This commit extracts the code that skips over a YAML comment from
the 'scanToNextToken' method into a separate 'skipComment' method.

This refactoring is motivated by a patch that implements parsing
of YAML block scalars (http://reviews.llvm.org/D9503), as the
method that parses a block scalar reuses the 'skipComment' method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236663 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/YAMLParser.cpp