Skip to content

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

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 [email protected] on 12 Jun 2011 at 11:20

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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