Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Applied [HEAD] [AST2] Re: [cdt-patch] [FIXED] 72611 [Parser] Timeout strategy does not affect scanner infinite loops


JohnC
www.eclipse.org/cdt


cdt-patch-admin@xxxxxxxxxxx wrote on 10/08/2004 09:48:21 AM:

>
> [FIXED] 72611 [Parser] Timeout strategy does not affect scanner infinite loops
>
> Here's a patch for 72611 that uses NullSourceElementRequestor.
> acceptMacro(IASTMacro) and NullSourceElementRequestor.
> acceptVariable(IASTVariable) to invoke parser.cancel() instead of
> relying on thread timeouts.  This should be a much more solid test
> for this patch.
>
> It has also been updated to throw ParseError(ParseError.
> ParseErrorKind.TIMEOUT_OR_CANCELLED) if a parse was cancelled and finishes.
>
> Thanks,
>
> Devin Steffler
> IBM's Eclipse CDT
> Ottawa (Palladium), Ontario, Canada
>
> [attachment "cdt_core.txt" deleted by John Camelon/Ottawa/IBM]
> [attachment "cdt_core_tests.txt" deleted by John Camelon/Ottawa/IBM]

Back to the top