if_diff/src/idfReport.cxx
//============================================================================
// Dump the AST of model1, indicating mismatches and differences.
// Outputs the AST as a sequence of one or more lines.
//============================================================================
Dump the AST of model1, indicating mismatches and differences.
Outputs the AST as a sequence of one or more lines.
Dump the AST of model1 indicating mismatches and differences . Outputs the AST as a sequence of one or more lines .
static void report_AST(const idfModel &model1, const idfModel &model2)
{
  idfAstDictionary *asts = model1.getAst();
  for (idfIterator iter = asts->first(); !asts->done(iter); asts->next(iter)) {
    idfAstSiblings *children = asts->lookup(iter);
    if (children != NULL && check_AST_siblings(*children, model1, model2)) {
      idf_report_spacer();
      (*ostrm) << model1.getFilename() << ":" << endl << " AST " << " {" << endl;
      report_AST_siblings(*children, "  ", model1, model2);
      (*ostrm) << " }" << endl;
    }
  }
}
static void report_AST ( const idfModel & model1 , const idfModel & model2 ) { idfAstDictionary * asts = model1 . getAst ( ) ; for ( idfIterator iter = asts -> first ( ) ; ! asts -> done ( iter ) ; asts -> next ( iter ) ) { idfAstSiblings * children = asts -> lookup ( iter ) ; if ( children != NULL && check_AST_siblings ( * children , model1 , model2 ) ) { idf_report_spacer ( ) ; ( * ostrm ) << model1 . getFilename ( ) << " " << endl << " " << " " << endl ; report_AST_siblings ( * children , " " , model1 , model2 ) ; ( * ostrm ) << " " << endl ; } } }
Dump the AST of model1, indicating mismatches and differences.
Dump the AST of model1 indicating mismatches and differences .
// Examine the ASTs to identify where the discrepancies are. // Dump the ASTs, indicating mismatches and differences.