Open iloveeclipse opened 1 year ago
Here is a test to add to CodeFormatterTest for anyone planning on working on this:
This may be a good fix to work on for someone new to the CDT code base as this code is reasonably well tested and well contained. See these packages for the main part of the code formatter code:
Some more useful reference - Bug 268962 is a similar class of bug and at the time Anton who was very familiar with the code base, said:
Macros can easily pose a problem for the formatter, esp. when they span only parts of a syntactic element. There are some heuristics in place, but a general solution is difficult.
Using C/C++ Development Tools SDK 10.7.1.202208222120.
Ctrl+Shift+F
This will produce this (broken, not compilable) code (note missing space between
1
andms
insidemethodWithParam(1ms);
)