//===--- CommentBriefParser.cpp - Dumb comment parser ---------------------===// // // 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 "clang/AST/CommentBriefParser.h" #include "clang/AST/CommentCommandTraits.h" #include "clang/Basic/CharInfo.h" namespace clang { namespace comments { namespace { /// Convert all whitespace into spaces, remove leading and trailing spaces, /// compress multiple spaces into one. void cleanupBrief(std::string &S) { … } bool isWhitespace(StringRef Text) { … } } // unnamed namespace BriefParser::BriefParser(Lexer &L, const CommandTraits &Traits) : … { … } std::string BriefParser::Parse() { … } } // end namespace comments } // end namespace clang