emacs C/C++ indentation: different for pre and post comments
===

BRIEF:

Are there (reasonably standard) emacs settings to obtain different indentation for C/C++ comments, depending on whether the comment is associated with the next line (in which case I want it indented appropriately for the syntax) or whether the comment is associated with the previous line (in which case I want it indented an additional level)?

E.g.

    int
    foo() 
    {
         // this comment is for the variable bazz below
         int bazz;
             //- this comment is for the variable bazz,on the line above.
             //- I want it indented an extra level, which I will do by hand here.
    
         // this comment is for the next variable, biff
         int biff;
    
         int example; /* comment
    		   * on multiple lines
    		   * but this can be too much indented
    		   */
    
         int example_of_a_really_long_name_that_can_produce_excessive_indentation; /* comment
    										* on multiple lines
    										* but this can be too much indented
    										*/
    
    }

The comments beginning //and //- are pretty much what I want. // is indented along with the surrounding code. This is what emacs gives me.

I would like //- to be indented an extra indentation level. Or //+,or whatever, if there is a convention.  Sounds like a job for a regexp.

I provide examples of what I know how to do for // and /*.  The /* comments get spread over multiple lines, but can be excessively indented.


DETAIL:

I am just now installing emacs 24.1 - or at least I hope I am installing it, the systems at work have very old and crankly distros.    But if something works on older emacs, such as 21.4.1, I'd e even happier - avoiding the hassle of having to install emacs on many different systems.