Update Coding Style for ITK

Maybe the immediately preceding comment lines:

// The following methods are used for updating the data processing pipeline.
//

//-------------------------------------------------------------

bear an impact on how the code is formatted/aligned in subsequent blocks?

In this specific case (the extra space before the ::MemberName), I agree that it isn’t worth using “clang-format off”, but thanks for the suggestion, Hans.

It seems to me that the space was introduced when the original source code had a line break instead. Like it was here ( DataObject ::Update in ITK 5.0.1):

Interestingly, it appears to me that if you would manually remove those spaces, Clang-Format would not restore them!!! So it does look like a Clang-Format bug to me, indeed.

2 Likes

And if it is a bug in the Clang-Format version currently used by ITK (version 8.0.1), well
 I just tried Clang-Format 11.0, and it still leaves those spaces there, between the class name and the ::MemberName!

Fortunately, Clang-Format does not appear to restore those spaces, when manually removed:

3 Likes