]> granicus.if.org Git - clang/commit
clang-format: Fix crasher.
authorDaniel Jasper <djasper@google.com>
Wed, 12 Mar 2014 08:24:47 +0000 (08:24 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 12 Mar 2014 08:24:47 +0000 (08:24 +0000)
commit727fd088959ba1f3fcca0813b51a431f46830bb1
tree2ef83fb54499b0e47ea216b381d21d5d5a43a379
parentf7bc497ad124eb24508b668f627c35a17426887e
clang-format: Fix crasher.

Caused by unknown tokens (e.g. "\n") not properly updating the state.

Example:
  const char* c = STRINGIFY(
  \na : b);

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