Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHansruedi Patzen2018-05-17 08:34:38 -0400
committerThomas Corbat2018-06-03 04:43:08 -0400
commit5c5ce995f6eb390218a1ae5cdb17f23c15b3c6ef (patch)
tree72009e0c093cb90124e4d652a28377de119df9cc /core/org.eclipse.cdt.core/parser/org
parent7b53e75fb2aa2637066b01f099b63ca81c9d0340 (diff)
downloadorg.eclipse.cdt-5c5ce995f6eb390218a1ae5cdb17f23c15b3c6ef.tar.gz
org.eclipse.cdt-5c5ce995f6eb390218a1ae5cdb17f23c15b3c6ef.tar.xz
org.eclipse.cdt-5c5ce995f6eb390218a1ae5cdb17f23c15b3c6ef.zip
Bug 534813 - ASTWriter swaps noexcept and pure virtual specifier
Fix and test Change-Id: I14088e69aed829940fb1e9f5197dedf18d9bb7a5 Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch> Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/DeclaratorWriter.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/DeclaratorWriter.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/DeclaratorWriter.java
index 4ea36fbcac..18a961b08b 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/DeclaratorWriter.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/DeclaratorWriter.java
@@ -170,10 +170,6 @@ public class DeclaratorWriter extends NodeWriter {
scribe.printSpace();
scribe.print(Keywords.MUTABLE);
}
- writeVirtualSpecifiers(funcDec);
- if (funcDec.isPureVirtual()) {
- scribe.print(PURE_VIRTUAL);
- }
writeExceptionSpecification(funcDec, funcDec.getExceptionSpecification(), funcDec.getNoexceptExpression());
writeAttributes(funcDec, EnumSet.of(SpaceLocation.BEFORE));
if (funcDec.getTrailingReturnType() != null) {
@@ -182,6 +178,10 @@ public class DeclaratorWriter extends NodeWriter {
scribe.printSpace();
funcDec.getTrailingReturnType().accept(visitor);
}
+ writeVirtualSpecifiers(funcDec);
+ if (funcDec.isPureVirtual()) {
+ scribe.print(PURE_VIRTUAL);
+ }
}
public void writeVirtualSpecifiers(ICPPASTFunctionDeclarator funcDec) {

Back to the top