kfowler / google-styleguide

Automatically exported from code.google.com/p/google-styleguide
0 stars 0 forks source link

Patch for /trunk/cpplint/cpplint.py #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Allow end-of-namespace lines that begin with whitespace.  Without this change, 
indented end-of-namespace lines (mostly due to nested namespaces) would still 
cause an error even if the appropriate change is made to the line.  Example:

namespace x {
  namespace y {
    // this is a nontrivial namespace according
    // to cpplint
    static const int nontrivial[] = {
      0,
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10
    };
    // end of namespace y is indented, so would
    // still cause an error!
  }  // namespace y
}  // namespace x

Original issue reported on code.google.com by pocci...@gmail.com on 28 Jul 2013 at 7:40

Attachments: