[PATCH] D16535: [clang-tidy] Check to find unintended semicolons that changes the semantics.

Richard via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 26 13:08:51 PST 2016


LegalizeAdulthood added a subscriber: LegalizeAdulthood.

================
Comment at: docs/clang-tidy/checks/misc-suspicious-semicolon.rst:48-49
@@ +47,4 @@
+
+    while(readWhitespace());
+      Token t = readNextToken();
+
----------------
In this documentation, can we please format code so that control structures don't look like function calls?  By this I mean write:
```
if (x >=y);
  x -= y;

while (readwhitespace());
  Token t = readNextToken();
```
instead of
```
if(x >=y);
  x -= y;

while(readwhitespace());
  Token t = readNextToken();
```



Repository:
  rL LLVM

http://reviews.llvm.org/D16535





More information about the cfe-commits mailing list