diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2018-02-16 23:40:07 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2018-02-16 23:40:07 +0000 |
commit | 53d982bea4e15405c228fd90afc486c36d71feed (patch) | |
tree | 4a4ce5ae8875d3783abf5947334045a5220be375 /include/clang/Basic/DiagnosticOptions.h | |
parent | 4735edbbaf28ced185e76223b39ab4f0141186e3 (diff) |
[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
Diffstat (limited to 'include/clang/Basic/DiagnosticOptions.h')
-rw-r--r-- | include/clang/Basic/DiagnosticOptions.h | 15 |
1 files changed, 9 insertions, 6 deletions
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 |