Skip to content

Commit

Permalink
Add Class TypeConfig for extend type setting
Browse files Browse the repository at this point in the history
Using tinyxml to parse extend type, type restriction,
type convert, and operator restriction with extend type.

Signed-off-by: ZhuJunhua1104 tom.Zhu@huawei.com
  • Loading branch information
ZhuJunhua1104 committed Sep 7, 2015
1 parent 2e9b962 commit f5e4898
Show file tree
Hide file tree
Showing 4 changed files with 772 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/Makefile.am 100644 → 100755
Expand Up @@ -163,6 +163,8 @@ csmith_SOURCES = \
StringUtils.h \
Type.cpp \
Type.h \
TypeConfig.cpp \
TypeConfig.h \
PointerType.cpp \
PointerType.h \
AggregateType.cpp \
Expand Down
23 changes: 20 additions & 3 deletions src/Makefile.in 100644 → 100755
Expand Up @@ -137,9 +137,9 @@ am_csmith_OBJECTS = csmith-AbsExtension.$(OBJEXT) \
csmith-StatementExpr.$(OBJEXT) csmith-StatementFor.$(OBJEXT) \
csmith-StatementGoto.$(OBJEXT) csmith-StatementIf.$(OBJEXT) \
csmith-StatementReturn.$(OBJEXT) csmith-StringUtils.$(OBJEXT) \
csmith-Type.$(OBJEXT) csmith-PointerType.$(OBJEXT) \
csmith-AggregateType.$(OBJEXT) csmith-Variable.$(OBJEXT) \
csmith-VariableSelector.$(OBJEXT) \
csmith-Type.$(OBJEXT) csmith-TypeConfig.$(OBJEXT) \
csmith-PointerType.$(OBJEXT) csmith-AggregateType.$(OBJEXT) \
csmith-Variable.$(OBJEXT) csmith-VariableSelector.$(OBJEXT) \
csmith-VectorFilter.$(OBJEXT) csmith-platform.$(OBJEXT) \
csmith-random.$(OBJEXT) csmith-util.$(OBJEXT) \
csmith-tinyxml.$(OBJEXT) csmith-tinyxmlerror.$(OBJEXT) \
Expand Down Expand Up @@ -490,6 +490,8 @@ csmith_SOURCES = \
StringUtils.h \
Type.cpp \
Type.h \
TypeConfig.cpp \
TypeConfig.h \
PointerType.cpp \
PointerType.h \
AggregateType.cpp \
Expand Down Expand Up @@ -687,6 +689,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/csmith-StatementReturn.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/csmith-StringUtils.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/csmith-Type.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/csmith-TypeConfig.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/csmith-Variable.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/csmith-VariableSelector.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/csmith-VectorFilter.Po@am__quote@
Expand Down Expand Up @@ -1601,6 +1604,20 @@ csmith-Type.obj: Type.cpp
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(csmith_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o csmith-Type.obj `if test -f 'Type.cpp'; then $(CYGPATH_W) 'Type.cpp'; else $(CYGPATH_W) '$(srcdir)/Type.cpp'; fi`

csmith-TypeConfig.o: TypeConfig.cpp
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(csmith_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT csmith-TypeConfig.o -MD -MP -MF $(DEPDIR)/csmith-TypeConfig.Tpo -c -o csmith-TypeConfig.o `test -f 'TypeConfig.cpp' || echo '$(srcdir)/'`TypeConfig.cpp
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/csmith-TypeConfig.Tpo $(DEPDIR)/csmith-TypeConfig.Po
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TypeConfig.cpp' object='csmith-TypeConfig.o' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(csmith_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o csmith-TypeConfig.o `test -f 'TypeConfig.cpp' || echo '$(srcdir)/'`TypeConfig.cpp

csmith-TypeConfig.obj: TypeConfig.cpp
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(csmith_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT csmith-TypeConfig.obj -MD -MP -MF $(DEPDIR)/csmith-TypeConfig.Tpo -c -o csmith-TypeConfig.obj `if test -f 'TypeConfig.cpp'; then $(CYGPATH_W) 'TypeConfig.cpp'; else $(CYGPATH_W) '$(srcdir)/TypeConfig.cpp'; fi`
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/csmith-TypeConfig.Tpo $(DEPDIR)/csmith-TypeConfig.Po
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TypeConfig.cpp' object='csmith-TypeConfig.obj' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(csmith_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o csmith-TypeConfig.obj `if test -f 'TypeConfig.cpp'; then $(CYGPATH_W) 'TypeConfig.cpp'; else $(CYGPATH_W) '$(srcdir)/TypeConfig.cpp'; fi`

csmith-PointerType.o: PointerType.cpp
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(csmith_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT csmith-PointerType.o -MD -MP -MF $(DEPDIR)/csmith-PointerType.Tpo -c -o csmith-PointerType.o `test -f 'PointerType.cpp' || echo '$(srcdir)/'`PointerType.cpp
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/csmith-PointerType.Tpo $(DEPDIR)/csmith-PointerType.Po
Expand Down

0 comments on commit f5e4898

Please sign in to comment.