MantisBT - KWStyle | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0010872 | KWStyle | public | 2010-06-24 16:39 | 2010-06-25 11:02 | |
| Reporter | Brad Davis | ||||
| Assigned To | Brad Davis | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Summary | 0010872: Comment symbols in strings (i.e., not comments) are parsed incorrectly as comments | ||||
| Description | Much of the style checking is done on the buffer m_BufferNoComment. This buffer contained the text of the file but with all comments removed. The algorithm for removing the comments was flawed in the following sense: comment-ish strings within double quotes were incorrectly interpreted as comments. I have added a test that reveals the problem and a fix and will soon push this fix (once I have a mantis number). | ||||
| Steps To Reproduce | |||||
| Additional Information | Here is an example that will trigger problems: A() { f("//"); } B() { g("//"); } C() { } | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2010-06-24 16:39 | Brad Davis | New Issue | |||
| 2010-06-25 09:08 | Brad Davis | Note Added: 0021166 | |||
| 2010-06-25 10:27 | Brad Davis | Note Added: 0021170 | |||
| 2010-06-25 10:29 | Brad Davis | Note Added: 0021171 | |||
| 2010-06-25 11:02 | Brad Davis | Status | new => resolved | ||
| 2010-06-25 11:02 | Brad Davis | Resolution | open => fixed | ||
| 2010-06-25 11:02 | Brad Davis | Assigned To | => Brad Davis | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||