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

Method testMacroFormatting

plugins/astyle/tests/test_astyle.cpp:187–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void TestAstyle::testMacroFormatting()
188{
189 AStyleFormatter fmt;
190 fmt.setSpaceIndentationNoConversion(2);
191 fmt.setPreprocessorIndent(true);
192 QString formatted = fmt.formatSource(QStringLiteral("#define asdf\\\nfoobar\n"));
193 QCOMPARE(formatted, QString("#define asdf\\\n foobar\n"));
194}
195
196void TestAstyle::testContext()
197{

Callers

nothing calls this directly

Calls 4

setPreprocessorIndentMethod · 0.80
formatSourceMethod · 0.80
QStringClass · 0.50

Tested by

no test coverage detected