Skip to content

Commit bd95ea0

Browse files
[modularize] Use default member initialization for Location (NFC)
1 parent 04cb2b3 commit bd95ea0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang-tools-extra/modularize/Modularize.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,11 @@ getModularizeArgumentsAdjuster(DependencyMap &Dependencies) {
381381
// somewhere into Tooling/ in mainline
382382
struct Location {
383383
OptionalFileEntryRef File;
384-
unsigned Line, Column;
384+
unsigned Line = 0, Column = 0;
385385

386-
Location() : File(), Line(), Column() {}
386+
Location() = default;
387387

388-
Location(SourceManager &SM, SourceLocation Loc) : File(), Line(), Column() {
388+
Location(SourceManager &SM, SourceLocation Loc) {
389389
Loc = SM.getExpansionLoc(Loc);
390390
if (Loc.isInvalid())
391391
return;

0 commit comments

Comments
 (0)