diff options
author | Markus Schorn | 2009-11-24 10:53:12 +0000 |
---|---|---|
committer | Markus Schorn | 2009-11-24 10:53:12 +0000 |
commit | 99148105b37df9699bdb5b4751f1ce2423318825 (patch) | |
tree | cb4a1315469adae4b6f4635d891d916554decd5d /core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/FunctionCost.java | |
parent | 042f47dbef3e695a8aa7cf028587807236444308 (diff) | |
download | org.eclipse.cdt-99148105b37df9699bdb5b4751f1ce2423318825.tar.gz org.eclipse.cdt-99148105b37df9699bdb5b4751f1ce2423318825.tar.xz org.eclipse.cdt-99148105b37df9699bdb5b4751f1ce2423318825.zip |
RValue References: Implementation and testcases, bug 294730.
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/FunctionCost.java')
-rw-r--r-- | core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/FunctionCost.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/FunctionCost.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/FunctionCost.java index f789cd476ed..0121ab087a6 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/FunctionCost.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/FunctionCost.java @@ -33,6 +33,12 @@ class FunctionCost { fSourceIsLValue= new BitSet(paramCount); } + public FunctionCost(IFunction fn, Cost cost) { + fFunction= fn; + fCosts= new Cost[] {cost}; + fSourceIsLValue= null; // no udc will be performed + } + public int getLength() { return fCosts.length; } |