Closed StefanOberhumer closed 3 weeks ago
The Pinmapping.h
can be removed, thats true. But the ordering is correct. The first include in the cpp file is always the corresponding header file (with the same name of the cpp file).
... But the ordering is correct. The first ....
Ah - OK! I usually include all of the "standards" (#include < xx >) first! Then the project related includes. (#include " xx ") Sorted all by names. But thinking about ... Your approach makes more sense ! :+1:
Will adapt ...
I've set the auto formatter style to WebKit
. It sorts the corresponding header file at the first position followed by project specific headers and at least the global headers. Thats the style for all the header files.
The now diff says: I just removed the unneeded '#include PinMapping.h', changed a comment and added an empty line!
Based on your explanation: That result should match the project requirements.
Btw: THX having comprehensible/explicable project settings/requirements :+1:
Thank you and sorry for the nagging. I will include the PR in the next release.
Also: Sort include directives by name.