clang 22.0.0git
clang::comments::BriefParser Class Reference

A very simple comment parser that extracts "a brief description". More...

#include "clang/AST/CommentBriefParser.h"

Public Member Functions

 BriefParser (Lexer &L, const CommandTraits &Traits)
std::string Parse ()
 Return the best "brief description" we can find.

Detailed Description

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:

  • a \or \short command,
  • the first paragraph,
  • a \result or \return or \returns paragraph.

Definition at line 29 of file CommentBriefParser.h.

Constructor & Destructor Documentation

◆ BriefParser()

clang::comments::BriefParser::BriefParser ( Lexer & L,
const CommandTraits & Traits )

Definition at line 47 of file CommentBriefParser.cpp.

Member Function Documentation

◆ Parse()


The documentation for this class was generated from the following files: