|
From: | Preston A. Elder |
Subject: | Re: [Bug-indent] C++ ability for indent .. code patch and question. |
Date: | Sat, 12 Jan 2002 09:29:27 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010923 |
Carlo Wood wrote:
On Sat, Jan 12, 2002 at 02:39:10AM -0500, Preston A. Elder wrote:a< b< c>>;I found the fix was to modify lexi.c, and insert the following code at line 1020 (ie. the detection code for the lexical token of '<', '>' and '!'):if (token - cur_line) if (token[-1] == ' ' || token[-1] == TAB) parser_state_tos->want_blank = true;This should force the parser to maintain a space before a <, > or ! character if there was one there already. I cannot see any ill effectstd::cin >> s; int i = j >> 4;
I just made code of: sometemplate<a<b> >Test1; std::cin >> s; int i = j >> 4; And my version of indent came up with: sometemplate < a < b > >Test1; std::cin >> s; int i = j >> 4;So you're above examples work just fine (note, I used the --dont-break-procedure-type argument, to stop the int decleration going over multipal lines).
-- PreZ Development Head Magick IRC Services Magick IRC Services, power to the PEOPLE! Product Site: http://www.magick.tm Project Site: http://www.sourceforge.net/projects/magick
[Prev in Thread] | Current Thread | [Next in Thread] |