MantisBT - KWStyle | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0009938 | KWStyle | public | 2009-11-20 21:36 | 2009-11-21 18:49 | |
| Reporter | Jean-Christophe Fillion-Robin | ||||
| Assigned To | Julien Jomier | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Summary | 0009938: Comment having only one parenthesis following by a for loop spread over two line will cause ident problems | ||||
| Description | The 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: | ||||
| Steps To Reproduce | |||||
| Additional Information | A 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 } } | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/2679/CommentWithOnlyOneParenthesisIndentBug.cxx https://public.kitware.com/Bug/file/2680/MyAwesomeBug.kws.xml | ||||
| 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 | ||
| Notes | |||||
|
|
|||||
|
|
||||