MCPcopy Create free account
hub / github.com/KDE/kdevelop / cmListFileLexer_Scan

Function cmListFileLexer_Scan

plugins/cmake/parser/cmListFileLexer.c:2623–2634  ·  view source on GitHub ↗

--------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

2621
2622/*--------------------------------------------------------------------------*/
2623cmListFileLexer_Token* cmListFileLexer_Scan(cmListFileLexer* lexer)
2624{
2625 if (!lexer->file) {
2626 return 0;
2627 }
2628 if (cmListFileLexer_yylex(lexer->scanner, lexer)) {
2629 return &lexer->token;
2630 } else {
2631 cmListFileLexer_SetFileName(lexer, 0, 0);
2632 return 0;
2633 }
2634}
2635
2636/*--------------------------------------------------------------------------*/
2637long cmListFileLexer_GetCurrentLine(cmListFileLexer* lexer)

Callers 2

readCMakeFileFunction · 0.85
readCMakeFunctionMethod · 0.85

Calls 1

Tested by

no test coverage detected