MCPcopy Create free account
hub / github.com/KDE/kdevelop / testPointerAlignment

Method testPointerAlignment

plugins/astyle/tests/test_astyle.cpp:320–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320void TestAstyle::testPointerAlignment()
321{
322 AStyleFormatter formatter;
323 formatter.setPointerAlignment(astyle::PTR_ALIGN_NAME);
324
325 const QString initial(QStringLiteral("int* a;\nint * b;\nint *c;\nint & d;\nconst double * const e;\n"));
326 const QString expected(QStringLiteral("int *a;\nint *b;\nint *c;\nint &d;\nconst double *const e;\n"));
327 const QString formatted = formatter.formatSource(initial);
328 QCOMPARE(formatted, expected);
329}
330
331void TestAstyle::testKdeFrameworks()
332{

Callers

nothing calls this directly

Calls 2

formatSourceMethod · 0.80
setPointerAlignmentMethod · 0.45

Tested by

no test coverage detected