TPpToken: Fix compiling on clang-10 (#2189)
This commit is contained in:
parent
c9b28b9f33
commit
02c70ad10e
@ -105,13 +105,13 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Used for comparing macro definitions, so checks what is relevant for that.
|
// Used for comparing macro definitions, so checks what is relevant for that.
|
||||||
bool operator==(const TPpToken& right)
|
bool operator==(const TPpToken& right) const
|
||||||
{
|
{
|
||||||
return space == right.space &&
|
return space == right.space &&
|
||||||
ival == right.ival && dval == right.dval && i64val == right.i64val &&
|
ival == right.ival && dval == right.dval && i64val == right.i64val &&
|
||||||
strncmp(name, right.name, MaxTokenLength) == 0;
|
strncmp(name, right.name, MaxTokenLength) == 0;
|
||||||
}
|
}
|
||||||
bool operator!=(const TPpToken& right) { return ! operator==(right); }
|
bool operator!=(const TPpToken& right) const { return ! operator==(right); }
|
||||||
|
|
||||||
TSourceLoc loc;
|
TSourceLoc loc;
|
||||||
// True if a space (for white space or a removed comment) should also be
|
// True if a space (for white space or a removed comment) should also be
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user