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

Function IsEndOfLine

Source/SpireCore/Preprocessor.cpp:795–800  ·  view source on GitHub ↗

Determine if we have read everthing on the directive's line.

Source from the content-addressed store, hash-verified

793
794// Determine if we have read everthing on the directive's line.
795static bool IsEndOfLine(PreprocessorDirectiveContext* context)
796{
797 // Is the next token at the start of its own line?
798 // If so, we have read to the end of the directive.
799 return (PeekRawToken(context->preprocessor).flags & TokenFlag::AtStartOfLine) != 0;
800}
801
802// Read one raw token in a directive, without going past the end of the line.
803static Token AdvanceRawToken(PreprocessorDirectiveContext* context)

Callers 8

AdvanceRawTokenFunction · 0.85
PeekRawTokenFunction · 0.85
PeekRawTokenTypeFunction · 0.85
AdvanceTokenFunction · 0.85
PeekTokenFunction · 0.85
PeekTokenTypeFunction · 0.85
SkipToEndOfLineFunction · 0.85
HandleDirectiveFunction · 0.85

Calls 1

PeekRawTokenFunction · 0.85

Tested by

no test coverage detected