//===- LineIterator.cpp - Implementation of line iteration ----------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "llvm/Support/LineIterator.h" #include "llvm/Support/MemoryBuffer.h" usingnamespacellvm; static bool isAtLineEnd(const char *P) { … } static bool skipIfAtLineEnd(const char *&P) { … } line_iterator::line_iterator(const MemoryBuffer &Buffer, bool SkipBlanks, char CommentMarker) : … { … } line_iterator::line_iterator(const MemoryBufferRef &Buffer, bool SkipBlanks, char CommentMarker) : … { … } void line_iterator::advance() { … }