test_astyle: Fix test after astyle upgrade

Authored by kfunk on Dec 13 2017, 10:40 PM.

Description

test_astyle: Fix test after astyle upgrade

Disambiguate test code snippet a bit where we run astyle on, otherwise
we might hit this case in libastyle which prevents spaces from being
added after the foreach keyword:

if (isCStyle()
        && (newHeader == &AS_FOREVER || newHeader == &AS_FOREACH))
{
       if (currentLine.find_first_of("=;", charNum) != string::npos)
               newHeader = NULL;

Details

Committed
kfunkDec 13 2017, 10:40 PM
Parents
R32:f2ad67414318: Minor: Fix string, respect KDE HIG
Branches
Unknown
Tags
Unknown