1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 342683: Simplify GCCBuiltinSymbolProvider.

This commit is contained in:
Markus Schorn 2011-04-14 13:45:43 +00:00
parent 2fc24f319e
commit 925d2e441e
2 changed files with 361 additions and 2905 deletions

View file

@ -369,17 +369,18 @@ public class GCCCompleteParseExtensionsTest extends AST2BaseTest {
writer.write(" __builtin_strstr(\"\", \"\"); \n");//$NON-NLS-1$
writer.write(" __builtin_strstr(\"\", \"\"); \n");//$NON-NLS-1$
writer.write(" __builtin_vprintf(a, b);\n");//$NON-NLS-1$
writer.write(" __builtin_vsprintf(a, 1, \"\", b); \n");//$NON-NLS-1$
writer.write(" __builtin_isgreater(1,1); \n");//$NON-NLS-1$
writer.write(" __builtin_isgreaterequal(1,1);\n");//$NON-NLS-1$
writer.write(" __builtin_isless(1,1); \n");//$NON-NLS-1$
writer.write(" __builtin_islessequal(1,1); \n");//$NON-NLS-1$
writer.write(" __builtin_islessgreater(1,1); \n");//$NON-NLS-1$
writer.write(" __builtin_isunordered(1,1); \n");//$NON-NLS-1$
writer.write(" __builtin_vsprintf(a, \"\", b); \n");//$NON-NLS-1$
writer.write(" __builtin_isgreater(1.0,1.0); \n");//$NON-NLS-1$
writer.write(" __builtin_isgreaterequal(1.0,1.0);\n");//$NON-NLS-1$
writer.write(" __builtin_isless(1.0,1.0); \n");//$NON-NLS-1$
writer.write(" __builtin_islessequal(1.0,1.0); \n");//$NON-NLS-1$
writer.write(" __builtin_islessgreater(1.0,1.0); \n");//$NON-NLS-1$
writer.write(" __builtin_isunordered(1.0,1.0); \n");//$NON-NLS-1$
writer.write("} \n"); //$NON-NLS-1$
parseGCC( writer.toString() );
parseGPP( writer.toString() );
final String code = writer.toString();
parseGCC( code );
parseGPP( code );
}
// typedef int size_t; // will be defined in <stddef.h>