Git blame -- prior commits?

Is it possible to see who edited a specific line before the commit reported by git blame, like a history of commits for a given line? For example, I run the following (on the superb uncrustify...

How do I install uncrustify?

How do I install uncrustify? I followed the instruction to install uncrustify but when I run it, it does not work. Can anyone give me some help installing this tool? I want to run it on...

Uncrustify Collapse Multiline Function Call

I have function calls that look like this (for no apparent reason): func ( a, b, c ) Is there a way to make uncrustify collapse the function into a single line? I have been trying...

Using Uncrustify with VIM

In my vimrc I call Uncrustify by this command: %!uncrustify -l CPP -c D:\uncrustify\default.cfg After that on some code I get a Windows Fatal error: But when I call uncrustify on the same code...

git-apply fails mysteriously, how do I troubleshoot/fix?

I'm currently trying to to code-style checking on the PRs of a (github) repository, and I want to deliver patches to the submitters with which they can easily fix the codestyle. To this end, I'm...

which Uncrustify setting replaces blank lines with indenting spaces?

I've done a number of read-thrus of my Uncrustify settings page over the past couple days but haven't found the setting. Perhaps a second pair of eyes knows what I am missing. In my source code,...

Fix uncrustify formatting for lambda expression

I would like to homogenize Qt Creator and uncrustify formatting for lambda expression. Writing the following code with Qt Creator produces the following format: connect(this, &MyObject::mySignal,...

Uncrustify: initialization list: starts with comma

I would like to archive a following code structure automatically by Uncrustify: Class(int aArg1, int aArg2, int aArg3) : BaseClass(aArg1) , iMember1(aArg1) , iMember2(aArg2) ...

C++11 member initializer lists

I am wondering if it is possible to configure uncrustify to format C++11 member initialization list. E.g: bar::bar() : m_foo1{10}, m_client_factory{ ClientFactorySafePtr{ ...

How do I change Uncrustify configuration to indent variable names to the same column as the function name?

in my school we use a coding convention, which specifies to separate the name of the variable and its type (in C). In emacs, it would look like this : static int calc_dir(t_exe *exe, const...

How to reset code formatting with Uncrustify

I am using Uncrustify to formatting my C++ code and I am making some experiments with infinite list of settings. Because of some bad settings my code now has a lot of new line that split statement...

Uncrustify: how do I set the indentation of the initializer list and function arguments

I have been trying to get an indentation for the constructor which looks like this: ClassName::ClassName(const std::string &id, std::shared_ptr<AbstractInterface> object, ...

Indent settings for atom-beautify with uncrustify for C/C++?

Where can the indent settings (tab width) be set for uncrustify run by the Atom package atom-beautify (on Windows)? While the package settings offer to specify a path for an uncrustify config file...

Visual Studio Code extension settings

Got myself Visual Studio Code. I've installed a Uncrustify extension to make my files be formatted when I edit them. I wanted to make it format my files on save, but I cannot open like Options...

How to use uncrustify with atom-beautify?

I've been looking at the atom-beautify site and example .jsbeauifyrc, .editorconfig, and uncrustify.cgf files. I've also reviewed the options for atom-beautify. I know I'm supposed to specify...

Newline between bodieless while loops and semicolon

While using uncrustify, I encountered a problem with while loops. If the while loop has no body, a trailing semicolon will get pushed to the next line. On the GitHub and on this website I found no...

How to disable error highlighting in VS Code?

I need to disable error highlighting in Java files in VS Code. VS Code tries to check a Groovy file while thinking it is a Java file. As you can see in the picture all imports after the first and...

Adding newline after if-else block using uncrustify

Is there a way to introduce a new line after if-else block? Current code looks like this: if (condition) { } else { } if (condition) { } statement; I want to make it look like this: if...

Stop Uncrustify from aligning continued multiline conditional expression

I want to setup matching behavior for Visual Studio and Uncrustify so that instant formatting was not modified later by Uncrustify. I am almost there, but Uncrustify handles continued multiline...

Configuring uncrustify to add braces

I'm using version of 0.66.1 of uncrustify, and am puzzled by the behavior of 'mod_full_brace_if' which I've set to 'force'. Its comment says: Add or remove braces on single-line 'if' statement....

assign the multiline output of command to a variable

I need to assign multiline output of command to a variable. I read these two...

git clean filter shows differences in the result of git diff

I setup a clean filter to apply autoformat with uncrustify. The corresponding smudge filter does nothing, it just calls cat. [filter "autoformat"] clean = uncrustify -c...

Uncrustify guarantee function arguments are aligned to opening parenthesis

In my current uncrustify configuration, if a function is called, most of the time the arguments are aligned to the opening parenthesis which is what I want. However, if the first argument is long...

how to indent continued function parameters with uncrustify?

Consider this code: some_function(1, 2 3); some_function( 1, 2, 3); Is there a way to make uncrustify indent the second line so that the 3 is in the column after the (? Preferably without...

VScode rotates multiple formatter

I use the uncrustify extension from LaurentTreguier which worked as intented. But now vscode started to rotate formatter when i press Ctrl+Shift+I. Means one time uncrustify is executed and the...

uncrustify: How do I set the maximum line length

After running uncrustify I want no line to be longer than, say, 80 characters. How do I set the maximum length of a line in the uncrustify config file?

Azure DevOps bash script not seeing binaries on PATH

I am trying to execute a Bash script in my build pipeline that is run on a self-hosted agent. The error I am encountering is: ##[section]Starting:...

Disable git clean filter for checkout and stash pop

We use the auto-format tool uncrustify on our git repositories, they run in a git clean filter. The problem is that users sometimes turn off their filters (don't ask). This leads to some bad...

How to align function declaration using uncrustify?

I'm trying to replicate the GNU coding standard using uncrustify. My program has the following function declarations, static void connect_to_server_cb1 (GObject *source_object, ...

Automatically reload current file in vim after code formatter has run on save

I am trying to to acheive the following every time a file is saved in Vim under Windows 10 (Vim 8.2): Auto format the file (using an external tool, e.g. Uncrustify) Reload the formatted file in...