mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Patch for Victor Mozgin.
Fixed PR 39546 : Parser fails on 'signed' casts.
This commit is contained in:
parent
a3e052456b
commit
5423bbc79e
5 changed files with 19 additions and 8 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
2003-07-28 Victor Mozgin
|
||||||
|
Moved testBug39546() from ASTFailedTests.java to QuickParseASTTests.java.
|
||||||
|
|
||||||
2008-07-28 Andrew Niefer
|
2008-07-28 Andrew Niefer
|
||||||
-changes to resources/search/classDecl.cpp
|
-changes to resources/search/classDecl.cpp
|
||||||
-new search tests:
|
-new search tests:
|
||||||
|
|
|
@ -119,10 +119,7 @@ public class ASTFailedTests extends BaseASTTest
|
||||||
{
|
{
|
||||||
assertCodeFailsParse("void f(int a, struct {int b[a];} c) {}");
|
assertCodeFailsParse("void f(int a, struct {int b[a];} c) {}");
|
||||||
}
|
}
|
||||||
public void testBug39546() throws Exception
|
|
||||||
{
|
|
||||||
assertCodeFailsParse("signed char c = (signed char) 0xffffffff;");
|
|
||||||
}
|
|
||||||
//Here starts C99-specific section
|
//Here starts C99-specific section
|
||||||
public void testBug39549() throws Exception
|
public void testBug39549() throws Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -1715,4 +1715,10 @@ public class QuickParseASTTests extends BaseASTTest
|
||||||
parse("typedef foo<(U::id > 0)> foobar;");
|
parse("typedef foo<(U::id > 0)> foobar;");
|
||||||
assertTrue( quickParseCallback.getCompilationUnit().getDeclarations().hasNext() );
|
assertTrue( quickParseCallback.getCompilationUnit().getDeclarations().hasNext() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testBug39546() throws Exception
|
||||||
|
{
|
||||||
|
parse("signed char c = (signed char) 0xffffffff;");
|
||||||
|
assertTrue( quickParseCallback.getCompilationUnit().getDeclarations().hasNext() );
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -1,3 +1,6 @@
|
||||||
|
2003-07-29 Victor Mozgin
|
||||||
|
Fixed PR 39546 : Parser fails on 'signed' casts.
|
||||||
|
|
||||||
2003-07-28 John Camelon
|
2003-07-28 John Camelon
|
||||||
Fixed Bug 40842 - Parser: NPE while parsing class declaration in full parse mode
|
Fixed Bug 40842 - Parser: NPE while parsing class declaration in full parse mode
|
||||||
Fixed Bug 40843 - Parser: failParse doesn't set parsePassed = false on EOF.
|
Fixed Bug 40843 - Parser: failParse doesn't set parsePassed = false on EOF.
|
||||||
|
|
|
@ -3244,10 +3244,12 @@ public class Parser implements IParser
|
||||||
{
|
{
|
||||||
switch (LT(1))
|
switch (LT(1))
|
||||||
{
|
{
|
||||||
case IToken.t_short :
|
case IToken.t_signed :
|
||||||
case IToken.t_unsigned :
|
case IToken.t_unsigned :
|
||||||
case IToken.t_long :
|
case IToken.t_short :
|
||||||
case IToken.t_const :
|
case IToken.t_long :
|
||||||
|
case IToken.t_const :
|
||||||
|
case IToken.t_volatile :
|
||||||
end = consume();
|
end = consume();
|
||||||
break;
|
break;
|
||||||
case IToken.tAMPER :
|
case IToken.tAMPER :
|
||||||
|
|
Loading…
Add table
Reference in a new issue