1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 22:35:43 +02:00

2005-08-30 Alain Magloire

PR 108202, code from Devin Steffler.
	* parser/org/eclipse/cdt/internal/core/dom/parser/c/GNUCSourceParser.java
	* parser/org/eclipse/cdt/internal/core/do/parser/cpp/GNUCPPSourceParser.java
This commit is contained in:
Alain Magloire 2005-08-30 20:15:08 +00:00
parent 930b697e19
commit 63a0d506da
3 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-08-30 Alain Magloire
PR 108202, code from Devin Steffler.
* parser/org/eclipse/cdt/internal/core/dom/parser/c/GNUCSourceParser.java
* parser/org/eclipse/cdt/internal/core/do/parser/cpp/GNUCPPSourceParser.java
2005-08-30 Alain Magloire
PR 107150, code/patch written by Devin Steffler
* parser/org/eclipse/cdt/internal/core/parser/scanner2/BaseScanner.java

View file

@ -1739,6 +1739,9 @@ public class GNUCSourceParser extends AbstractGNUSourceCodeParser {
throwBacktrack(mark.getOffset(), mark.getLength());
}
if (LT(1) == IGCCToken.t__attribute__ && supportAttributeSpecifiers) // if __attribute__ occurs after struct/union/class and before the identifier
__attribute__();
IToken nameToken = null;
// class name
if (LT(1) == IToken.tIDENTIFIER) {

View file

@ -4274,6 +4274,9 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
IASTName name = null;
if (LT(1) == IGCCToken.t__attribute__ && supportAttributeSpecifiers) // if __attribute__ occurs after struct/union/class and before the identifier
__attribute__();
// class name
if (LT(1) == IToken.tIDENTIFIER)
name = createName(name());