- Started with delphi2cpp.exe
http://ivan.vecerina.com/code/delphi2cpp/
- string needs to be replaced with UnicodeString
- __fastcall needs to be added to virtual methods, constructors of components, and accessors of published properties
- Replaced void with TObject in OnGetData/OnSetData events as for some reasons the void causes linked problems, unless the class has PASCALIMPLEMENTATION attribute
Source commit: 6e3b0f977ecbcf9d3dc0706c129a911c0393569e
Mostly
– explicit static global variables
– const, sign and down casts safety
– same-named variables in nested scopes
– incorrectly identified uninitialized variables
– semicolon after function implementation
– unused variables, fields, arguments and macros
– exact include filename case
– field initialization order
– typename use
– struct vs class declarations
– incorrectly identified uninitialized variables
– refactoring to solve Clang internal compiler error when using new variable in __finally block
Source commit: 3da995ff5169eefcfe3b3b7cc0d019c660096c07
(including mechanism to inject a different control implementation + as I needed to add an header include to most form header files, I reordered include sections along a bit)
Source commit: aa2a1b6f5daf70865c0c87c0733aad1be4825b83