(self)
| 3017 | ) |
| 3018 | |
| 3019 | def testSpacingAfterAlternateToken(self): |
| 3020 | try: |
| 3021 | cpplint._cpplint_state.AddFilters("-readability/alt_tokens") |
| 3022 | self.TestLint("if (foo or (bar) or foobar) {", "") |
| 3023 | self.TestLint("if (foo or (bar)) {", "") |
| 3024 | self.TestLint("if ((foo) or (bar)) {", "") |
| 3025 | self.TestLint("if (not foo) {", "") |
| 3026 | self.TestLint("if (not (foo)) {", "") |
| 3027 | self.TestLint("if (not(foo)) {", "") |
| 3028 | self.TestLint( |
| 3029 | "if ((foo)or(bar)) {", "Missing spaces around || [whitespace/operators] [3]" |
| 3030 | ) |
| 3031 | finally: |
| 3032 | cpplint._cpplint_state.SetFilters("") |
| 3033 | |
| 3034 | def testSpacingBeforeBraces(self): |
| 3035 | self.TestLint("if (foo){", "Missing space before { [whitespace/braces] [5]") |
nothing calls this directly
no test coverage detected