I'm evaluating uncrustify and I'm having several problems #4252
Replies: 1 comment
-
wow. This website really messed up the code samples. I'm sorry I didn't notice that before posting Example 1: Note that public is not indented properly compared to the class definition. Class defined within a class
public: Example 2: Note indentation issue with the arguments. Seems to use the default indentation, not the continuation indentation, or aligning relative to the (
OK, I can't get the web page to stop screwing up the indentation. Example 1, public is indented 2 spaces while class is indented 4. public indentation is not relative to class |
Beta Was this translation helpful? Give feedback.
-
I am evaluating uncrustify and I'm having several problems. In all these cases, I either cannot find the option to control the functionality or the option isn't working (or not working in all cases). Any suggestions on where to look would be appreciated. Thanks
The indentation of constructor initialization is wrong. I'd like it to be indented more than just the default indentation. It should be indented like the continuation line that it is.
I have indent_columns = 2. I played around with all the indentation options. Nothing seems to change it. This seems to be a problem only with constructors.
We use an indentation of one space with the access keywords (public etc) indented only one space. I have that working except when there is a class within a class. The indentation is absolute, rather than relative to the class level, i.e. the "class" keyword.
class DisableSettingOfDirtyFlagGuard { public:
The indentation for method definitions where the arguments are continued on subsequent lines works except when ALL the arguments are on subsequent lines
bool cSI_AUDIO_SIGNAL_TABLE_STARTEND_DELEGATE::HandleMouseClick( QWidget* parent, Qt::MouseButton button, QModelIndex& index)
Beta Was this translation helpful? Give feedback.
All reactions