Skip to content

Commit

Permalink
[libclang] Modernize Location (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Aug 27, 2023
1 parent a8931a1 commit 3823395
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clang/tools/libclang/CXLoadedDiagnostic.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ class CXLoadedDiagnostic : public CXDiagnosticImpl {

struct Location {
CXFile file;
unsigned line;
unsigned column;
unsigned offset;
unsigned line = 0;
unsigned column = 0;
unsigned offset = 0;

Location() : line(0), column(0), offset(0) {}
Location() = default;
};

Location DiagLoc;
Expand Down

0 comments on commit 3823395

Please sign in to comment.