diff options
author | Jürg Billeter <j@bitron.ch> | 2008-11-14 18:22:29 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-11-14 18:22:29 +0000 |
commit | 08fe68bb64ae76c619bce587ac701ccd726ce6dc (patch) | |
tree | 74616d962574205455d1c77be03c26c4759f5324 /vala/valaphifunction.vala | |
parent | 773507ce6043e1e05f7fccceaf01723b1dbe81de (diff) | |
download | vala-08fe68bb64ae76c619bce587ac701ccd726ce6dc.tar.gz |
Report use of possibly uninitialized variables, fixes bug 508477 and bug
2008-11-14 Jürg Billeter <j@bitron.ch>
* vala/Makefile.am:
* vala/valaassignment.vala:
* vala/valabasicblock.vala:
* vala/valabinaryexpression.vala:
* vala/valacastexpression.vala:
* vala/valacatchclause.vala:
* vala/valacodenode.vala:
* vala/valadeclarationstatement.vala:
* vala/valaelementaccess.vala:
* vala/valaexpressionstatement.vala:
* vala/valaflowanalyzer.vala:
* vala/valaforeachstatement.vala:
* vala/valainvocationexpression.vala:
* vala/valamemberaccess.vala:
* vala/valaobjectcreationexpression.vala:
* vala/valaparenthesizedexpression.vala:
* vala/valaphifunction.vala:
* vala/valapointerindirection.vala:
* vala/valareferencetransferexpression.vala:
* vala/valareturnstatement.vala:
* vala/valathrowstatement.vala:
* vala/valaunaryexpression.vala:
* compiler/valacompiler.vala:
Report use of possibly uninitialized variables, fixes bug 508477
and bug 556861
svn path=/trunk/; revision=2018
Diffstat (limited to 'vala/valaphifunction.vala')
-rw-r--r-- | vala/valaphifunction.vala | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/vala/valaphifunction.vala b/vala/valaphifunction.vala new file mode 100644 index 000000000..b95cc9fe6 --- /dev/null +++ b/vala/valaphifunction.vala @@ -0,0 +1,37 @@ +/* valaphifunction.vala + * + * Copyright (C) 2008 Jürg Billeter + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Author: + * Jürg Billeter <j@bitron.ch> + */ + +using Gee; + +public class Vala.PhiFunction { + public LocalVariable original_variable { get; private set; } + + public Gee.List<LocalVariable?> operands { get; private set; } + + public PhiFunction (LocalVariable variable, int num_of_ops) { + this.original_variable = variable; + this.operands = new ArrayList<LocalVariable?> (); + for (int i = 0; i < num_of_ops; i++) { + this.operands.add ((LocalVariable) null); + } + } +} |