Skip to content

Commit 0c83a0b

Browse files
[modularize] Use default member initialization for Location (NFC) (#139384)
1 parent bae77d5 commit 0c83a0b

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
@@ -379,11 +379,11 @@ getModularizeArgumentsAdjuster(DependencyMap &Dependencies) {
379379
// somewhere into Tooling/ in mainline
380380
struct Location {
381381
OptionalFileEntryRef File;
382-
unsigned Line, Column;
382+
unsigned Line = 0, Column = 0;
383383

384-
Location() : File(), Line(), Column() {}
384+
Location() = default;
385385

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

0 commit comments

Comments
 (0)