• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/clang/lib/Format/

Lines Matching refs:Keywords

225                                          const AdditionalKeywords &Keywords,
230 CurrentLines(&Lines), Style(Style), Keywords(Keywords),
458 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in,
459 Keywords.kw_as)) ||
613 const AdditionalKeywords &Keywords) {
624 if (I->Tok->isNot(Keywords.kw_function))
648 (isGoogScope(*Line) || isIIFE(*Line, Keywords)));
883 static bool mustBeJSIdent(const AdditionalKeywords &Keywords,
889 Keywords.kw_in, Keywords.kw_of, Keywords.kw_as, Keywords.kw_async,
890 Keywords.kw_await, Keywords.kw_yield, Keywords.kw_finally,
891 Keywords.kw_function, Keywords.kw_import, Keywords.kw_is,
892 Keywords.kw_let, Keywords.kw_var, tok::kw_const,
893 Keywords.kw_abstract, Keywords.kw_extends, Keywords.kw_implements,
894 Keywords.kw_instanceof, Keywords.kw_interface, Keywords.kw_throws,
895 Keywords.kw_from));
898 static bool mustBeJSIdentOrValue(const AdditionalKeywords &Keywords,
902 mustBeJSIdent(Keywords, FormatTok);
907 static bool isJSDeclOrStmt(const AdditionalKeywords &Keywords,
910 tok::kw_return, Keywords.kw_yield,
918 tok::kw_throw, tok::kw_try, tok::kw_catch, Keywords.kw_finally,
920 tok::kw_const, tok::kw_class, Keywords.kw_var, Keywords.kw_let,
921 Keywords.kw_async, Keywords.kw_function,
923 Keywords.kw_import, tok::kw_export);
945 bool PreviousMustBeValue = mustBeJSIdentOrValue(Keywords, Previous);
960 bool NextMustBeValue = mustBeJSIdentOrValue(Keywords, Next);
969 isJSDeclOrStmt(Keywords, Next))
1092 if (FormatTok->is(Keywords.kw_import)) {
1111 FormatTok->isOneOf(Keywords.kw_signals, Keywords.kw_qsignals,
1112 Keywords.kw_slots, Keywords.kw_qslots)) {
1143 FormatTok->is(Keywords.kw_interface)) {
1218 if (FormatTok->isOneOf(Keywords.kw_NS_ENUM, Keywords.kw_NS_OPTIONS,
1219 Keywords.kw_CF_ENUM, Keywords.kw_CF_OPTIONS,
1220 Keywords.kw_CF_CLOSED_ENUM,
1221 Keywords.kw_NS_CLOSED_ENUM))
1310 FormatTok->is(Keywords.kw_function) &&
1312 Keywords.kw_async)))) {
1318 FormatTok->is(Keywords.kw_interface)) {
1327 if (Next && !mustBeJSIdent(Keywords, Next)) {
1527 assert(FormatTok->is(Keywords.kw_function) ||
1528 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function));
1529 if (FormatTok->is(Keywords.kw_async))
1588 if (FormatTok->is(Keywords.kw_function) ||
1589 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)) {
1712 (FormatTok->is(Keywords.kw_function) ||
1713 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)))
1845 if (!(FormatTok->isOneOf(tok::kw_catch, Keywords.kw___except,
1849 FormatTok->is(Keywords.kw_finally)) ||
1940 FormatTok->is(Keywords.kw_await))
2041 if (FormatTok->isOneOf(Keywords.kw_slots, Keywords.kw_qslots))
2191 FormatTok->isOneOf(Keywords.kw_extends, Keywords.kw_implements)) {
2392 bool IsImport = FormatTok->is(Keywords.kw_import);
2403 if (FormatTok->is(Keywords.kw_async))
2405 if (FormatTok->is(Keywords.kw_function)) {