clang
20.0.0git
include
clang
Basic
CommentOptions.h
Go to the documentation of this file.
1
//===- CommentOptions.h - Options for parsing comments ----------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
/// \file
10
/// Defines the clang::CommentOptions interface.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#ifndef LLVM_CLANG_BASIC_COMMENTOPTIONS_H
15
#define LLVM_CLANG_BASIC_COMMENTOPTIONS_H
16
17
#include <string>
18
#include <vector>
19
20
namespace
clang
{
21
22
/// Options for controlling comment parsing.
23
struct
CommentOptions
{
24
using
BlockCommandNamesTy
= std::vector<std::string>;
25
26
/// Command names to treat as block commands in comments.
27
/// Should not include the leading backslash.
28
BlockCommandNamesTy
BlockCommandNames
;
29
30
/// Treat ordinary comments as documentation comments.
31
bool
ParseAllComments
=
false
;
32
33
CommentOptions
() =
default
;
34
};
35
36
}
// namespace clang
37
38
#endif
// LLVM_CLANG_BASIC_COMMENTOPTIONS_H
clang
The JSON file list parser is used to communicate input to InstallAPI.
Definition:
CalledOnceCheck.h:17
clang::CommentOptions
Options for controlling comment parsing.
Definition:
CommentOptions.h:23
clang::CommentOptions::CommentOptions
CommentOptions()=default
clang::CommentOptions::ParseAllComments
bool ParseAllComments
Treat ordinary comments as documentation comments.
Definition:
CommentOptions.h:31
clang::CommentOptions::BlockCommandNames
BlockCommandNamesTy BlockCommandNames
Command names to treat as block commands in comments.
Definition:
CommentOptions.h:28
clang::CommentOptions::BlockCommandNamesTy
std::vector< std::string > BlockCommandNamesTy
Definition:
CommentOptions.h:24
Generated on Fri Nov 22 2024 09:47:13 for clang by
1.9.6