]> granicus.if.org Git - clang/commit
clang-format: [JS] Support type annotations.
authorDaniel Jasper <djasper@google.com>
Wed, 18 Feb 2015 17:09:53 +0000 (17:09 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 18 Feb 2015 17:09:53 +0000 (17:09 +0000)
commit3cf42560c61412439bc2ab8785e5f7814b001678
treec8ca374a0ccfe6d30a626c3c52de0cf364515f7f
parentf4ae8457c4169cdfdea845e90f59d97d0959e40a
clang-format: [JS] Support type annotations.

This patch adds support for type annotations that follow TypeScript's,
Flow's, and AtScript's syntax style.

Patch by Martin Probst, thank you.
Review: http://reviews.llvm.org/D7721

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