diff options
Diffstat (limited to 'include/clang/Basic/CommentOptions.h')
-rw-r--r-- | include/clang/Basic/CommentOptions.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/clang/Basic/CommentOptions.h b/include/clang/Basic/CommentOptions.h index 92419f91b741b..6cc9cf6b199c5 100644 --- a/include/clang/Basic/CommentOptions.h +++ b/include/clang/Basic/CommentOptions.h @@ -1,4 +1,4 @@ -//===--- CommentOptions.h - Options for parsing comments -----*- C++ -*-===// +//===- CommentOptions.h - Options for parsing comments ----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -6,10 +6,10 @@ // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// -/// +// /// \file -/// \brief Defines the clang::CommentOptions interface. -/// +/// Defines the clang::CommentOptions interface. +// //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_COMMENTOPTIONS_H @@ -20,20 +20,20 @@ namespace clang { -/// \brief Options for controlling comment parsing. +/// Options for controlling comment parsing. struct CommentOptions { - typedef std::vector<std::string> BlockCommandNamesTy; + using BlockCommandNamesTy = std::vector<std::string>; - /// \brief Command names to treat as block commands in comments. + /// Command names to treat as block commands in comments. /// Should not include the leading backslash. BlockCommandNamesTy BlockCommandNames; - /// \brief Treat ordinary comments as documentation comments. - bool ParseAllComments; + /// Treat ordinary comments as documentation comments. + bool ParseAllComments = false; - CommentOptions() : ParseAllComments(false) { } + CommentOptions() = default; }; -} // end namespace clang +} // namespace clang -#endif +#endif // LLVM_CLANG_BASIC_COMMENTOPTIONS_H |