Ejemplo n.º 1
0
 Intersect(
     this GccCommon.ICommonCompilerSettings shared,
     GccCommon.ICommonCompilerSettings other)
 {
     if (shared.AllWarnings != other.AllWarnings)
     {
         shared.AllWarnings = null;
     }
     if (shared.ExtraWarnings != other.ExtraWarnings)
     {
         shared.ExtraWarnings = null;
     }
     if (shared.Pedantic != other.Pedantic)
     {
         shared.Pedantic = null;
     }
     if (shared.Visibility != other.Visibility)
     {
         shared.Visibility = null;
     }
     if (shared.StrictAliasing != other.StrictAliasing)
     {
         shared.StrictAliasing = null;
     }
 }
Ejemplo n.º 2
0
 Delta(
     this GccCommon.ICommonCompilerSettings delta,
     GccCommon.ICommonCompilerSettings lhs,
     GccCommon.ICommonCompilerSettings rhs)
 {
     delta.AllWarnings = (lhs.AllWarnings != rhs.AllWarnings) ? lhs.AllWarnings : null;
     delta.ExtraWarnings = (lhs.ExtraWarnings != rhs.ExtraWarnings) ? lhs.ExtraWarnings : null;
     delta.Pedantic = (lhs.Pedantic != rhs.Pedantic) ? lhs.Pedantic : null;
     delta.Visibility = (lhs.Visibility != rhs.Visibility) ? lhs.Visibility : null;
     delta.StrictAliasing = (lhs.StrictAliasing != rhs.StrictAliasing) ? lhs.StrictAliasing : null;
 }
Ejemplo n.º 3
0
 Clone(
     this GccCommon.ICommonCompilerSettings settings,
     GccCommon.ICommonCompilerSettings other)
 {
     settings.AllWarnings = other.AllWarnings;
     settings.ExtraWarnings = other.ExtraWarnings;
     settings.Pedantic = other.Pedantic;
     settings.Visibility = other.Visibility;
     settings.StrictAliasing = other.StrictAliasing;
 }