Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

C++0x autocomplete

(1/4) > >>

Halan:
Hey Guys,

does the Autocomplete-Plugin already support C++0x? On my machine it for example doesn't indent blocks like "for(auto x : list)" properly.

greetings,
Halan

Alpha:
This indents as expected on my computer.
Are you using a nightly?  How does what actually happens differ from what you expected to happen?

Halan:
Are you sure it's working properly on your machine?

With the latest stable it doesn't get indented at all, with the latest nightly it gets one tab less indented as expected...

Alpha:
I am not sure if I completely understand what (or even if) the problem is; could you please:
a.  Post a snippet of code that you enter.  (Using code tags.)
b.  Post a snippet of code showing what (if anything) Code::Blocks does to change/auto-format it.  (Using code tags.)
and
c.  Post a snippet of code showing what it is you would have liked Code::Blocks to have changed/auto-formatted it to.  (And again, using code tags.)

I am willing to look into this when I have time (I have messed around with that part of the code recently :), so I think I know my way around it), but simply do not know what I am supposed to be trying to fix it to do.

Halan:
Looks at this source code for example


--- Code: ---{
bool ok = true;

for(auto it: events)
ok = ok && this->subscribeEvent(elem, it);

return ok;
}
--- End code ---

The for-loop isn't indented correctly..

Navigation

[0] Message Index

[#] Next page

Go to full version