LexingRawMode = false;
// Default to keeping comments if requested.
- KeepCommentMode = PP->getCommentRetentionState();
+ KeepCommentMode = false;
+ SetCommentRetentionState(PP->getCommentRetentionState());
}
/// Lexer constructor - Create a new raw lexer object. This object is only
FormTokenWithChars(Result, CurPtr);
// Restore comment saving mode, in case it was disabled for directive.
- KeepCommentMode = PP->getCommentRetentionState();
+ SetCommentRetentionState(PP->getCommentRetentionState());
return true; // Have a token.
}
ParsingPreprocessorDirective = false;
// Restore comment saving mode, in case it was disabled for directive.
- KeepCommentMode = PP->getCommentRetentionState();
+ SetCommentRetentionState(PP->getCommentRetentionState());
// Since we consumed a newline, we are back at the start of a line.
IsAtStartOfLine = true;