@Test public void testForParenthesesRemoved() throws Exception { final TranslationUnit tu = ParseHelper.parse("void main() {" + " for (" + " int i = int(_GLF_ONE(1.0, _GLF_IDENTITY(1.0, 1.0)));" + " i > _GLF_IDENTITY(1, _GLF_FUZZED(1));" + " i++)" + " { }" + " }" + "}"); final String expected = "void main() {" + " for (int i = int(1.0); i > 1; i++)" + " { }" + "}"; final TranslationUnit simplifiedTu = Simplify.simplify(tu); CompareAsts.assertEqualAsts(expected, simplifiedTu); }
public static TranslationUnit simplify(TranslationUnit tu) { return AddBraces.transform(EliminateGraphicsFuzzDefines.transform(tu)); }
Simplify { public static TranslationUnit simplify(TranslationUnit tu) { return AddBraces.transform(EliminateGraphicsFuzzDefines.transform(tu)); } }
Simplify { public static TranslationUnit simplify(TranslationUnit tu) { return AddBraces.transform(EliminateGraphicsFuzzDefines.transform(tu)); }  }
Simplify { public static TranslationUnit simplify(TranslationUnit tu) { return AddBraces.transform(EliminateGraphicsFuzzDefines.transform(tu)); }  static TranslationUnit simplify(TranslationUnit tu); }
Simplify { public static TranslationUnit simplify(TranslationUnit tu) { return AddBraces.transform(EliminateGraphicsFuzzDefines.transform(tu)); }  static TranslationUnit simplify(TranslationUnit tu);  }