]> granicus.if.org Git - clang/commit
Fix clang-format segfault.
authorDaniel Jasper <djasper@google.com>
Mon, 18 Mar 2013 12:50:26 +0000 (12:50 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 18 Mar 2013 12:50:26 +0000 (12:50 +0000)
commitcf6d76af806f7e1ba97be7b72b31bc78b919e0f0
tree172dbf476793ffd92656ff07ffee9a625c7efe0b
parent74c8b794be93e73ffca42b1dcf70f26c92d9ccfd
Fix clang-format segfault.

When annotating "lines" starting with ":", clang-format would segfault.
This could actually happen in valid code, e.g.
  #define A :

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