Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
Qt Creator 4.11.1
-
None
Description
The code generated by using the clang format plugin within QT Creator does not always match the code generated by the official clang-format command line tool. This is causing a lot of headache for our automated code validation steps on build servers
An example (QSets and literal instantiation):
Qt Creator want a space between the name of the variable and the beginning '{' like so:
QSet<int> myIntSet {
1,
2,
3
};
The clang-format tool using the WebKit style, on the other hand, does not want this space:
QSet<int> myIntSet{
1,
2,
3
};
I prefer the look of the Qt Creator "style" to be honest, but I guess it should be the same as the official clang-format tool, so that automatic tools that do code linting checks won't fail on code generated within Qt Creator?