Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Corbat2014-01-30 08:46:18 +0000
committerSergey Prigogin2014-03-10 17:01:47 +0000
commitb5cf6c388c57777492a5162110c320eaaaf445d4 (patch)
treefa7b7ff0ffe669cce3c3a5f37d71285662ac041d /core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTIfStatement.java
parenta2a05a515aa3698e3e0ecdeb77a9baf241c93f10 (diff)
downloadorg.eclipse.cdt-b5cf6c388c57777492a5162110c320eaaaf445d4.tar.gz
org.eclipse.cdt-b5cf6c388c57777492a5162110c320eaaaf445d4.tar.xz
org.eclipse.cdt-b5cf6c388c57777492a5162110c320eaaaf445d4.zip
Bug 427539 - C++11 attribute implementation
- Implemented C++11 attributes without breaking the current API for attributes in CDT. Added attribute specifiers according to the standard, which can be added to attribute owners and contain ICPPASTAttributes themselves. - Adapted current attribute implementation (Tokens and Offsets) to be writable by ASTWriter. - Added integration of GNU attributes into the AST for several missing cases. Change-Id: Ifb6a05989f0b4da0d504be24213df86c66428060 Reviewed-on: https://git.eclipse.org/r/22555 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTIfStatement.java')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTIfStatement.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTIfStatement.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTIfStatement.java
index 13d5c7421ff..be2a9b84d69 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTIfStatement.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTIfStatement.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2012 IBM Corporation and others.
+ * Copyright (c) 2004, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -133,7 +133,7 @@ public class CPPASTIfStatement extends ASTAttributeOwner implements ICPPASTIfSta
}
}
- if (!((CPPASTIfStatement) stmt).acceptByAttributes(action)) return false;
+ if (!((CPPASTIfStatement) stmt).acceptByAttributeSpecifiers(action)) return false;
IASTNode child = stmt.getConditionExpression();
if (child != null && !child.accept(action))

Back to the top