diff options
Diffstat (limited to 'chromium/third_party/angle/src/compiler/preprocessor/SourceLocation.h')
-rw-r--r-- | chromium/third_party/angle/src/compiler/preprocessor/SourceLocation.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/chromium/third_party/angle/src/compiler/preprocessor/SourceLocation.h b/chromium/third_party/angle/src/compiler/preprocessor/SourceLocation.h index 6982613ac74..d4c1a5e1788 100644 --- a/chromium/third_party/angle/src/compiler/preprocessor/SourceLocation.h +++ b/chromium/third_party/angle/src/compiler/preprocessor/SourceLocation.h @@ -12,10 +12,18 @@ namespace pp struct SourceLocation { - SourceLocation() : file(0), line(0) { } - SourceLocation(int f, int l) : file(f), line(l) { } + SourceLocation() + : file(0), + line(0) + { + } + SourceLocation(int f, int l) + : file(f), + line(l) + { + } - bool equals(const SourceLocation& other) const + bool equals(const SourceLocation &other) const { return (file == other.file) && (line == other.line); } @@ -24,12 +32,12 @@ struct SourceLocation int line; }; -inline bool operator==(const SourceLocation& lhs, const SourceLocation& rhs) +inline bool operator==(const SourceLocation &lhs, const SourceLocation &rhs) { return lhs.equals(rhs); } -inline bool operator!=(const SourceLocation& lhs, const SourceLocation& rhs) +inline bool operator!=(const SourceLocation &lhs, const SourceLocation &rhs) { return !lhs.equals(rhs); } |