SYCLomatic icon indicating copy to clipboard operation
SYCLomatic copied to clipboard

[SYCLomatic] EOF terminates token traversal to avoid infinite loop

Open the-slow-one opened this issue 1 year ago • 1 comments

While looking for "volatile" token, terminate at EOF token. If we don't do this explicitly Lexer::getRawToken keeps returning EOF on every subsequent invocation.

Signed by: Deepak Raj H R

the-slow-one avatar Sep 20 '24 09:09 the-slow-one

Please fix the clang-format

zhimingwang36 avatar Sep 23 '24 09:09 zhimingwang36

Failed tests are unrelated to this PR

[2024-09-24T17:11:24.336Z] Failed Tests (5):
[2024-09-24T17:11:24.336Z]   Clang :: dpct/codepin/report/change_floating_point_default_tolerances/test.cpp
[2024-09-24T17:11:24.336Z]   Clang :: dpct/codepin/report/dismatch_format/test.cpp
[2024-09-24T17:11:24.336Z]   Clang :: dpct/codepin/report/floating_point_compare/test.cpp
[2024-09-24T17:11:24.336Z]   Clang :: dpct/codepin/report/option/test.cpp
[2024-09-24T17:11:24.336Z]   Clang :: dpct/fix_internal_error_2.cu
[2024-09-24T17:11:24.336Z] 

the-slow-one avatar Sep 25 '24 05:09 the-slow-one