[clang-tools-extra] 76469d5 - [clang-tidy] Modernize FileState (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 23 09:07:36 PDT 2023
Author: Kazu Hirata
Date: 2023-04-23T09:07:23-07:00
New Revision: 76469d5aff1e0967adfe23d275075610585eef72
URL: https://github.com/llvm/llvm-project/commit/76469d5aff1e0967adfe23d275075610585eef72
DIFF: https://github.com/llvm/llvm-project/commit/76469d5aff1e0967adfe23d275075610585eef72.diff
LOG: [clang-tidy] Modernize FileState (NFC)
Added:
Modified:
clang-tools-extra/clang-tidy/modernize/MacroToEnumCheck.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/modernize/MacroToEnumCheck.cpp b/clang-tools-extra/clang-tidy/modernize/MacroToEnumCheck.cpp
index 428bfb13064ee..cdd1984ab50cf 100644
--- a/clang-tools-extra/clang-tidy/modernize/MacroToEnumCheck.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/MacroToEnumCheck.cpp
@@ -93,12 +93,11 @@ using MacroList = SmallVector<EnumMacro>;
enum class IncludeGuard { None, FileChanged, IfGuard, DefineGuard };
struct FileState {
- FileState()
- : ConditionScopes(0), LastLine(0), GuardScanner(IncludeGuard::None) {}
+ FileState() = default;
- int ConditionScopes;
- unsigned int LastLine;
- IncludeGuard GuardScanner;
+ int ConditionScopes = 0;
+ unsigned int LastLine = 0;
+ IncludeGuard GuardScanner = IncludeGuard::None;
SourceLocation LastMacroLocation;
};
More information about the cfe-commits
mailing list