Initialize Token fields on construction.

This commit is contained in:
Frederich Munch 2017-03-10 16:36:30 -05:00 committed by sftnight
parent 1b2a853b7d
commit 499b522de5

View File

@ -53,7 +53,9 @@ namespace cling {
unsigned length;
mutable unsigned value;
public:
void startToken(const char* Pos = 0) {
Token(const char* Buf = nullptr) { startToken(Buf); }
void startToken(const char* Pos = nullptr) {
kind = tok::unknown;
bufStart = Pos;
value = ~0U;