#include "clang/AST/RawCommentList.h"
D
.
Definition at line 32 of file RawCommentList.h.
◆ CommentKind Enumerator RCK_InvalidInvalid comment.
RCK_OrdinaryBCPLAny normal BCPL comments.
RCK_OrdinaryCAny normal C comment.
RCK_BCPLSlash RCK_BCPLExcl RCK_JavaDoc RCK_Qt, also used by HeaderDoc
RCK_MergedTwo or more documentation comments merged together.
Definition at line 34 of file RawCommentList.h.
◆ RawComment() [1/2] ◆ RawComment() [2/2]Definition at line 108 of file RawCommentList.cpp.
References clang::SourceRange::getBegin(), clang::SourceManager::getBufferData(), clang::SourceManager::getDecomposedLoc(), clang::SourceRange::getEnd(), getRawText(), clang::Invalid, isOrdinaryKind(), onlyWhitespaceOnLineBefore(), clang::CommentOptions::ParseAllComments, RCK_Invalid, and RCK_Merged.
◆ getBeginLoc() ◆ getBriefText() ◆ getEndLoc() ◆ getFormattedLines()Returns sanitized comment text as separated lines with locations in source, suitable for further processing and rendering requiring source locations.
Definition at line 376 of file RawCommentList.cpp.
References Begin, clang::comments::tok::eof, clang::comments::Token::getLocation(), clang::SourceLocation::getLocWithOffset(), clang::SourceManager::getPresumedLoc(), getRawText(), getSourceRange(), clang::comments::Lexer::getSpelling(), clang::SourceManager::getSpellingColumnNumber(), clang::comments::Token::is(), clang::comments::Token::isNot(), clang::comments::Lexer::lex(), clang::Line, Loc, clang::comments::tok::newline, and clang::Result.
Referenced by getFormattedText(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordEnumConstants(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordObjCInstanceVariables(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordObjCMethods(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordObjCProperties(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitClassTemplatePartialSpecializationDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitClassTemplateSpecializationDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitConceptDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXConstructorDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXConversionDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXDestructorDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXMethodDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXRecordDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitEnumDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitFieldDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitFunctionDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitFunctionTemplateDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitNamespaceDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitObjCCategoryDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitObjCInterfaceDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitObjCProtocolDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitRecordDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitTypedefNameDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarTemplateDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarTemplatePartialSpecializationDecl(), and clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarTemplateSpecializationDecl().
◆ getFormattedText()Returns sanitized comment text, suitable for presentation in editor UIs.
E.g. will transform: // This is a long multiline comment. // Parts of it might be indented. /* The comments styles might be mixed. */ into "This is a long multiline comment.\n" " Parts of it might be indented.\n" "The comments styles might be mixed." Also removes leading indentation and sanitizes some common cases: /* This is a first line.
Definition at line 358 of file RawCommentList.cpp.
References getFormattedLines(), getRawText(), clang::Line, and clang::Result.
◆ getKind() ◆ getRawText() StringRef clang::RawComment::getRawText ( const SourceManager & SourceMgr ) const inline ◆ getSourceRange() SourceRange clang::RawComment::getSourceRange ( ) const inline ◆ hasUnsupportedSplice() bool clang::RawComment::hasUnsupportedSplice ( const SourceManager & SourceMgr ) const inline ◆ isAlmostTrailingComment() bool clang::RawComment::isAlmostTrailingComment ( ) const inline ◆ isAttached() bool clang::RawComment::isAttached ( ) const inlineIs this comment attached to any declaration?
Definition at line 63 of file RawCommentList.h.
◆ isDocumentation() bool clang::RawComment::isDocumentation ( ) const inline ◆ isInvalid() bool clang::RawComment::isInvalid ( ) const inline ◆ isMerged() bool clang::RawComment::isMerged ( ) const inline ◆ isOrdinary() bool clang::RawComment::isOrdinary ( ) const inline ◆ isTrailingComment() bool clang::RawComment::isTrailingComment ( ) const inline ◆ parse() ◆ setAttached() void clang::RawComment::setAttached ( ) inlineDefinition at line 67 of file RawCommentList.h.
◆ ASTReaderThe documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4