Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-3395

Proposed rule: #endif should always be followed by a doc comment /* macro name */

    XMLWordPrintable

    Details

      Description

      taken from: https://www.teamten.com/lawrence/style/notes.html

      Bad: #endif
      Good: #endif /* KERNEL */
      

      Always document #endif's because they are often hard to match to their #ifdef.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            arseniy.zaostrovnykh Arseniy Zaostrovnykh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: