Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Auto Template Spacing Inconsistent(Eclipse CDT Juno 8.3)
Auto Template Spacing Inconsistent [message #1701532] Mon, 13 July 2015 22:57
Andrew Capodieci is currently offline Andrew CapodieciFriend
Messages: 1
Registered: July 2015
Junior Member
I'm using a custom project specific format which has the same options selected for template arguments and template parameters: "after comma" and "after closing angle bracket". In the preview window of the formatter, it shows the following:
template<typename T1, typename T2> class map
{
};
map<int, int> m;

This preview code format is exactly what I want. However I get inconsistent results in my codebase when I run the formatter. Here's an example:
 std::vector < std::vector<cv::Point2i> > vertices( 1, std::vector < cv::Point2i > (0) );
  for( std::vector<ObjectPoint>::const_iterator objectPointIterator = obj.m_pointList.begin( );

For some reason the first line doesn't apply the proper format and incorrectly inserts spaces between angle brackets, whereas the second line of the for loop properly spaces the template arguments.

Does anyone know how to fix this?
Previous Topic:Debug configuration setup for STM32 board
Next Topic:Symbol 'std' could not be resolved
Goto Forum:
  


Current Time: Fri Apr 26 05:45:22 GMT 2024

Powered by FUDForum. Page generated in 0.02558 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top