Skip to content

Commit

Permalink
[clang-tidy] Modernize FileState (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Apr 23, 2023
1 parent 8ac8c92 commit 76469d5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions clang-tools-extra/clang-tidy/modernize/MacroToEnumCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 76469d5

Please sign in to comment.