Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Aug 18, 2015 · 3 comments
Closed

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

Since this bug is pretty annoying, I had a look at the code introduced by patch 
7.3.202 and wrote a quick fix for the indentation issue (see attached patch). 
It seems to work properly but someone else should have a look and verify that 
it's sane.

Original comment by martin.g...@gmail.com on 15 Sep 2011 at 6:06

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by lech.lor...@gmail.com on 27 Nov 2011 at 10:14

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Original comment by lech.lor...@gmail.com on 27 Nov 2011 at 10:14

  • Changed state: Verified

brammool referenced this issue Jul 22, 2018
Problem:    ":profdel func" does not work if func was called already.
            (Dominique Pelle)
Solution:   Reset uf_profiling and add a flag to indicate initialization was
            done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant