MCPcopy Create free account
hub / github.com/csyonghe/Spire / SkipToEndOfLine

Function SkipToEndOfLine

Source/SpireCore/Preprocessor.cpp:851–857  ·  view source on GitHub ↗

Skip to the end of the line (useful for recovering from errors in a directive)

Source from the content-addressed store, hash-verified

849
850// Skip to the end of the line (useful for recovering from errors in a directive)
851static void SkipToEndOfLine(PreprocessorDirectiveContext* context)
852{
853 while(!IsEndOfLine(context))
854 {
855 AdvanceRawToken(context);
856 }
857}
858
859static bool ExpectRaw(PreprocessorDirectiveContext* context, CoreLib::Text::TokenType tokenType, DiagnosticInfo const& diagnostic, Token* outToken = NULL)
860{

Callers 5

HandleWarningDirectiveFunction · 0.85
HandleErrorDirectiveFunction · 0.85
HandlePragmaDirectiveFunction · 0.85
HandleVersionDirectiveFunction · 0.85
HandleDirectiveFunction · 0.85

Calls 2

IsEndOfLineFunction · 0.85
AdvanceRawTokenFunction · 0.85

Tested by

no test coverage detected