Home Download Buy Blog Forum Support

C++ Indentation Problem.

C++ Indentation Problem.

Postby alchemik on Sat Dec 07, 2013 6:51 am

Hi all,

Did anyone run into problems with auto and smart indentation feature for C++? The following piece of code throws the indentation off in my case
(the function is nested in a class so everything should align relative to the column of the opening brace):

Code: Select all
            friend ostream &operator<<(ostream &out, const Vertex &v)
            {
                out << "Vertex(" << v._id << ") (";
                    Point<2> p = v.point();
                    out << p.x() << ", " << p.y() << ")";
return out;
}

Edit -> Line -> Reindent doesn't work. It seem's like the indentation rules do have a problem with parentheses inside of double quotes. Is there a way to fix this? Thanks
alchemik
 
Posts: 1
Joined: Sat Dec 07, 2013 6:26 am

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], jstonebraker, Yahoo [Bot] and 14 guests