summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/FormatToken.h
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-12-30 08:00:58 +0000
committerDaniel Jasper <djasper@google.com>2015-12-30 08:00:58 +0000
commit779c66f3ca9e51efd0b8eaac75347df4b109c7d2 (patch)
tree218bb1d451e9091ed9f7c4250dee8a0db6bd2355 /clang/lib/Format/FormatToken.h
parentf98eb3548cafbeb780a251f17682fa0572c6dc6d (diff)
downloadbcm5719-llvm-779c66f3ca9e51efd0b8eaac75347df4b109c7d2.tar.gz
bcm5719-llvm-779c66f3ca9e51efd0b8eaac75347df4b109c7d2.zip
clang-format: [JS] Support TypeScript 1.6 user defined type guards.
Before: function foo(check: Object): check is{foo: string, bar: string, baz: string, foobar: string} { return 'bar' in check; } After: function foo(check: Object): check is {foo: string, bar: string, baz: string, foobar: string} { return 'bar' in check; } llvm-svn: 256631
Diffstat (limited to 'clang/lib/Format/FormatToken.h')
-rw-r--r--clang/lib/Format/FormatToken.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Format/FormatToken.h b/clang/lib/Format/FormatToken.h
index 93baaf29321..78bc0edc45c 100644
--- a/clang/lib/Format/FormatToken.h
+++ b/clang/lib/Format/FormatToken.h
@@ -536,6 +536,7 @@ struct AdditionalKeywords {
kw_finally = &IdentTable.get("finally");
kw_function = &IdentTable.get("function");
kw_import = &IdentTable.get("import");
+ kw_is = &IdentTable.get("is");
kw_let = &IdentTable.get("let");
kw_var = &IdentTable.get("var");
@@ -580,6 +581,7 @@ struct AdditionalKeywords {
IdentifierInfo *kw_finally;
IdentifierInfo *kw_function;
IdentifierInfo *kw_import;
+ IdentifierInfo *kw_is;
IdentifierInfo *kw_let;
IdentifierInfo *kw_var;
OpenPOWER on IntegriCloud