|
clang 24.0.0git
|
Options for controlling comment parsing. More...
#include "clang/Basic/CommentOptions.h"
Public Types | |
| using | BlockCommandNamesTy = std::vector<std::string> |
Public Member Functions | |
| CommentOptions ()=default | |
Public Attributes | |
| BlockCommandNamesTy | BlockCommandNames |
| Command names to treat as block commands in comments. | |
| bool | ParseAllComments = false |
| Treat ordinary comments as documentation comments. | |
| bool | RetainComments = false |
| Force the front end to retain all documentation comments in the AST, even when no comment consuming diagnostic or language option is enabled. | |
| bool | RetainCommentsFromSystemHeaders = false |
| Retain documentation comments from system headers in the AST. | |
Options for controlling comment parsing.
Definition at line 23 of file CommentOptions.h.
| using clang::CommentOptions::BlockCommandNamesTy = std::vector<std::string> |
Definition at line 24 of file CommentOptions.h.
|
default |
| BlockCommandNamesTy clang::CommentOptions::BlockCommandNames |
Command names to treat as block commands in comments.
Should not include the leading backslash.
Definition at line 28 of file CommentOptions.h.
Referenced by checkLanguageOptions(), and clang::comments::CommandTraits::registerCommentOptions().
Treat ordinary comments as documentation comments.
Definition at line 31 of file CommentOptions.h.
Referenced by clang::RawCommentList::addComment(), and clang::RawComment::RawComment().
Force the front end to retain all documentation comments in the AST, even when no comment consuming diagnostic or language option is enabled.
Tools that query comments after parsing set this.
Definition at line 36 of file CommentOptions.h.
Referenced by clang::ASTDumpAction::CreateASTConsumer(), and clang::GenerateModuleInterfaceAction::PrepareToExecuteAction().
Retain documentation comments from system headers in the AST.
Definition at line 39 of file CommentOptions.h.