]> granicus.if.org Git - clang/commit
Make clang-format understand more line comments.
authorDaniel Jasper <djasper@google.com>
Fri, 22 Mar 2013 10:01:29 +0000 (10:01 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 22 Mar 2013 10:01:29 +0000 (10:01 +0000)
commitb64eca09dd3bcd18eb1a5cca2b123b169340bdd5
tree5a1a6e4b5a7ea9540d75d16dc68d74f125be4cbb
parent5921e04efd9341ec915338b00149ea832b02b430
Make clang-format understand more line comments.

Apparently one needs to set LangOptions.LineComment.

Before "//* */" got reformatted to "/ /* */" as the lexer was returning
the token sequence (slash, comment). This could also lead to weird other
stuff, e.g. for people that like to using comments like:
//****************

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