]> granicus.if.org Git - clang/commit
Insert a space at the start of a line comment in case it starts with an alphanumeric...
authorAlexander Kornienko <alexfh@google.com>
Tue, 11 Jun 2013 16:01:49 +0000 (16:01 +0000)
committerAlexander Kornienko <alexfh@google.com>
Tue, 11 Jun 2013 16:01:49 +0000 (16:01 +0000)
commit2b2faa53ecd32e823c55430d0889c11ea91b582c
tree8bdb192c6beb62d42837456311c664ac5b332c6d
parentb6f521aeb4defc018aef5c80f7c571fc413ba16b
Insert a space at the start of a line comment in case it starts with an alphanumeric character.

Summary:
"//Test" becomes "// Test". This change is aimed to improve code
readability and conformance to certain coding styles. If a comment starts with a
non-alphanumeric character, the space isn't added, e.g. "//-*-c++-*-" stays
unchanged.

Reviewers: klimek

Reviewed By: klimek

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D949

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183750 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/BreakableToken.cpp
lib/Format/BreakableToken.h
lib/Format/WhitespaceManager.cpp
lib/Format/WhitespaceManager.h
unittests/Format/FormatTest.cpp