clang API Documentation
#include <CommentBriefParser.h>
Public Member Functions | |
BriefParser (Lexer &L, const CommandTraits &Traits) | |
std::string | Parse () |
Return the best "brief description" we can find. |
A very simple comment parser that extracts "a brief description".
Due to a variety of comment styles, it considers the following as "a brief description", in order of priority:
Definition at line 30 of file CommentBriefParser.h.
clang::comments::BriefParser::BriefParser | ( | Lexer & | L, |
const CommandTraits & | Traits | ||
) |
Definition at line 58 of file CommentBriefParser.cpp.
std::string clang::comments::BriefParser::Parse | ( | ) |
Return the best "brief description" we can find.
Definition at line 64 of file CommentBriefParser.cpp.
References clang::comments::tok::at_command, clang::comments::tok::backslash_command, clang::comments::tok::eof, clang::comments::Token::getCommandID(), clang::comments::CommandTraits::getCommandInfo(), clang::comments::Token::getText(), clang::comments::Token::is(), clang::comments::CommandInfo::IsBlockCommand, clang::comments::CommandInfo::IsBriefCommand, clang::comments::Token::isNot(), clang::comments::CommandInfo::IsReturnsCommand, clang::isWhitespace(), clang::comments::tok::newline, and clang::comments::tok::text.