ClangFormat: Reduce the amount of electric characters

Adding '.' or ',' very ofter makes the statement invalid.
Do not force the formatting in such cases.

Change-Id: I7e58e5af6eed065a3bc0df29698aececa579feed
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Ivan Donchevskii
2019-01-22 11:08:30 +01:00
parent 7f9931b3f9
commit def5248db2

View File

@@ -402,8 +402,6 @@ bool ClangFormatBaseIndenter::isElectricCharacter(const QChar &ch) const
case ';': case ';':
case '(': case '(':
case ')': case ')':
case ',':
case '.':
return true; return true;
} }
return false; return false;