@Test public void testFunctionCallParenthesesRemoved() throws Exception { final TranslationUnit tu = ParseHelper.parse("void main() {" + "foo(_GLF_IDENTITY(1 + 2, 1 + 2));" + "}" ); final String expected = "void main() {" + " foo(1 + 2);" + "}"; 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);  }