From 53d982bea4e15405c228fd90afc486c36d71feed Mon Sep 17 00:00:00 2001 From: Eugene Zelenko Date: Fri, 16 Feb 2018 23:40:07 +0000 Subject: [Basic] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325412 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/DiagnosticOptions.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'include/clang/Basic/DiagnosticOptions.h') diff --git a/include/clang/Basic/DiagnosticOptions.h b/include/clang/Basic/DiagnosticOptions.h index 3844eb63f0..404d0c5aef 100644 --- a/include/clang/Basic/DiagnosticOptions.h +++ b/include/clang/Basic/DiagnosticOptions.h @@ -1,4 +1,4 @@ -//===--- DiagnosticOptions.h ------------------------------------*- C++ -*-===// +//===- DiagnosticOptions.h --------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -21,8 +21,11 @@ namespace clang { /// \brief Specifies which overload candidates to display when overload /// resolution fails. enum OverloadsShown : unsigned { - Ovl_All, ///< Show all overloads. - Ovl_Best ///< Show just the "best" overload candidates. + /// Show all overloads. + Ovl_All, + + /// Show just the "best" overload candidates. + Ovl_Best }; /// \brief A bitmask representing the diagnostic levels used by @@ -119,8 +122,8 @@ public: } }; -typedef DiagnosticOptions::TextDiagnosticFormat TextDiagnosticFormat; +using TextDiagnosticFormat = DiagnosticOptions::TextDiagnosticFormat; -} // end namespace clang +} // namespace clang -#endif +#endif // LLVM_CLANG_BASIC_DIAGNOSTICOPTIONS_H -- cgit v1.2.3