View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009938KWStylepublic2009-11-20 21:362009-11-21 18:49
ReporterJean-Christophe Fillion-Robin 
Assigned ToJulien Jomier 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Summary0009938: Comment having only one parenthesis following by a for loop spread over two line will cause ident problems
DescriptionThe following code will cause indent problems:

int main(int argc, char** argv)
{
  // Comment with only one parenthesis (

  for (i = begin(); i < 10;
       i++)
    {
    // blah blah
    }
}

Running:

KWStyle -v -xml MyAwesomeBug.kws.xml CommentWithOnlyOneParenthesisIndentBug.cxx

Output:

Processing CommentWithOnlyOneParenthesisIndentBug.cxx
Error 0000012 (12) Indent is wrong 7 (should be 2)

See enclosed files:

Additional InformationA possible to trick:
  - Close the parenthesis in the comment

OR

Ident as requested:

int main(int argc, char** argv)
{
  // Comment with only one parenthesis (

  for (i = begin(); i < 10;
  i++)
    {
    // blah blah
    }
}
TagsNo tags attached.
Attached Filescxx file icon CommentWithOnlyOneParenthesisIndentBug.cxx [^] (325 bytes) 2009-11-20 21:36
xml file icon MyAwesomeBug.kws.xml [^] (650 bytes) 2009-11-20 21:37

 Relationships

  Notes
(0018508)
Julien Jomier (manager)
2009-11-21 18:49

Fixed in SVN. I'll check tomorrow's dashboard to see if that didn't break any other tests

 Issue History
Date Modified Username Field Change
2009-11-20 21:36 Jean-Christophe Fillion-Robin New Issue
2009-11-20 21:36 Jean-Christophe Fillion-Robin File Added: CommentWithOnlyOneParenthesisIndentBug.cxx
2009-11-20 21:37 Jean-Christophe Fillion-Robin File Added: MyAwesomeBug.kws.xml
2009-11-21 18:48 Julien Jomier Status new => assigned
2009-11-21 18:48 Julien Jomier Assigned To => Julien Jomier
2009-11-21 18:49 Julien Jomier Note Added: 0018508
2009-11-21 18:49 Julien Jomier Status assigned => resolved
2009-11-21 18:49 Julien Jomier Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team