Skip to content

Instantly share code, notes, and snippets.

@Interfere
Created March 22, 2017 08:39
Show Gist options
  • Save Interfere/51921055089ab4e4f49b1b20849bfc3f to your computer and use it in GitHub Desktop.
Save Interfere/51921055089ab4e4f49b1b20849bfc3f to your computer and use it in GitHub Desktop.
End of file
case 0:
// If this is a random nul character in the middle
// of a buffer, skip it as whitespace.
if (CurPtr-1 != BufferEnd) {
diagnoseEmbeddedNul(Diags, CurPtr-1);
goto Restart;
}
// Otherwise, this is the real end of the buffer.
// Put CurPtr back into buffer bounds.
CurPtr--;
// Return EOF.
return formToken(tok::eof, TokStart);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment