@Test public void testIfParenthesesRemoved() throws Exception { final TranslationUnit tu = ParseHelper.parse("void main() {" + " if (_GLF_DEAD(_GLF_FALSE(false, false))) {" + " }" + "}"); final String expected = "void main() {" + " if (false) {" + " }" + "}"; 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);  }