Skip to content

cindent: regression in C++ class indenting after 7.3.202 #9

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
Try indenting a file with the following contents with the settings as specified 
by the modeline:

#v+
// vim: cindent cino=(0,gs,hs et sw=8
class Foo : public Bar
{
        public:
                virtual void method1(void) = 0; // FIXME: 2 indent levels
                virtual void method2(int arg1,
                                     int arg2,
                                     int arg3) = 0;
};
#v-


What is the expected output? What do you see instead?

The output file should be identical as the input but instead method 
declarations are indented one level too few:

#v+
// vim: cindent cino=(0,gs,hs et sw=8
class Foo : public Bar
{
        public:
        virtual void method1(void) = 0; // FIXME: 2 indent levels
        virtual void method2(int arg1,
                             int arg2,
                             int arg3) = 0;
};

#v-

As noted in the summary, the problem was introduced in 7.3.202.

Original issue reported on code.google.com by lech.lor...@gmail.com on 12 Jun 2011 at 11:20

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions