bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error when a // comment is followed by /* comment


From: Jean-Marc Vanel
Subject: error when a // comment is followed by /* comment
Date: Tue, 26 Aug 2008 11:18:13 +0200

Hi

Here is the kind of wrong ouput ; the opening /* is inhibited by the // on
the same line.

    //
ConstraintId=Activities-IntermediateActivities-ForkNode-one_incoming_edge
OCLType=ocl.cst.InvCS Name=unnamed Id= 1028456336// from Constraint Id:
Activities-IntermediateActivities-ForkNode-one_incoming_edge /*  A fork node
has one incoming edge.

       inv: true  */ bool one_incoming_edge(ForkNode self_ForkNode2) {


How to reproduce:
==============

cat  ForkNode.cpp
//====== generated by cpp_generation.pro on date(2008, 8, 22, 16, 16,
28.8179, 0, UTC, -)=======
#include "ocl_functions.h"
#include "sam_datamodel.h"

namespace UML::ForkNode {

// ConstraintId=Activities-IntermediateActivities-ForkNode-edges
OCLType=ocl.cst.InvCS Name=unnamed Id= 474187818
 // from Constraint Id:  Activities-IntermediateActivities-ForkNode-edges
 /*  The edges coming into and out of a fork node must be either all object
flows or
 all control flows.

 inv: true  */

 bool  edges (  ForkNode   self_ForkNode4  ) {
   bool result_ = true;
 bool bool_2 = true ;
 bool result_ =  bool_2 ;
   return result_;
}
// ConstraintId=Activities-IntermediateActivities-ForkNode-one_incoming_edge
OCLType=ocl.cst.InvCS Name=unnamed Id= 1028456336
 // from Constraint Id:
Activities-IntermediateActivities-ForkNode-one_incoming_edge
 /*  A fork node has one incoming edge.

 inv: true  */

 bool  one_incoming_edge (  ForkNode   self_ForkNode2  ) {
   bool result_ = true;
 bool bool_7 = true ;
 bool result_ =  bool_7 ;
   return result_;
}

indent --k-and-r-style ForkNode.cpp
indent --version
GNU indent 2.2.9

uname -a
Linux fr-sam-deb4-64 2.6.18-4-amd64 #1 SMP Mon Mar 26 11:36:53 CEST 2007
x86_64 GNU/Linux


Regards
-- 
Jean-Marc Vanel
http://jmvanel.free.fr/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]