mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45: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:
parent
930b697e19
commit
63a0d506da
3 changed files with 11 additions and 0 deletions
|
@ -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
|
2005-08-30 Alain Magloire
|
||||||
PR 107150, code/patch written by Devin Steffler
|
PR 107150, code/patch written by Devin Steffler
|
||||||
* parser/org/eclipse/cdt/internal/core/parser/scanner2/BaseScanner.java
|
* parser/org/eclipse/cdt/internal/core/parser/scanner2/BaseScanner.java
|
||||||
|
|
|
@ -1739,6 +1739,9 @@ public class GNUCSourceParser extends AbstractGNUSourceCodeParser {
|
||||||
throwBacktrack(mark.getOffset(), mark.getLength());
|
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;
|
IToken nameToken = null;
|
||||||
// class name
|
// class name
|
||||||
if (LT(1) == IToken.tIDENTIFIER) {
|
if (LT(1) == IToken.tIDENTIFIER) {
|
||||||
|
|
|
@ -4274,6 +4274,9 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
||||||
|
|
||||||
IASTName name = null;
|
IASTName name = null;
|
||||||
|
|
||||||
|
if (LT(1) == IGCCToken.t__attribute__ && supportAttributeSpecifiers) // if __attribute__ occurs after struct/union/class and before the identifier
|
||||||
|
__attribute__();
|
||||||
|
|
||||||
// class name
|
// class name
|
||||||
if (LT(1) == IToken.tIDENTIFIER)
|
if (LT(1) == IToken.tIDENTIFIER)
|
||||||
name = createName(name());
|
name = createName(name());
|
||||||
|
|
Loading…
Add table
Reference in a new issue