Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Eames2014-03-27 01:31:05 +0000
committerSergey Prigogin2014-04-12 16:47:34 +0000
commitf5942dac812c36d3e56c4f2f8b94df19d487609e (patch)
tree92032d7899c1ff7e3da70890fb89260271f35ed7 /lrparser
parent88d0024075520406cf894927e8b3a9f9766ec59c (diff)
downloadorg.eclipse.cdt-f5942dac812c36d3e56c4f2f8b94df19d487609e.tar.gz
org.eclipse.cdt-f5942dac812c36d3e56c4f2f8b94df19d487609e.tar.xz
org.eclipse.cdt-f5942dac812c36d3e56c4f2f8b94df19d487609e.zip
Bug 379684 Support for User Defined Literals
This patch adds preliminary support for C++11 user defined litrals: * Syntax support * Type deduction in expressions * Template literal operators * String literal concatenation I made quite a few changes in CPPASTLiteralExpression so that it more closely follows the spec when parsing numbers. And I'd like some feedback on the changes I made to CPPSemantics with regards to template literal operators. There are also some questions I have marked in comments, which I would appreciate an answer to. Change-Id: I242ecb8f5706f516a4c891fea268a668e5e4a694 Signed-off-by: Richard Eames <eclipse@naddiseo.ca> Reviewed-on: https://git.eclipse.org/r/24367 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Diffstat (limited to 'lrparser')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/ScannerExtensionConfiguration.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/ScannerExtensionConfiguration.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/ScannerExtensionConfiguration.java
index 502ec24b53..f4d06d80ed 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/ScannerExtensionConfiguration.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/ScannerExtensionConfiguration.java
@@ -41,4 +41,8 @@ public class ScannerExtensionConfiguration extends AbstractScannerExtensionConfi
return true;
}
+ @Override
+ public boolean supportUserDefinedLiterals() {
+ return false;
+ }
}

Back to the top