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

Lines Matching defs:Keywords

226                                          const AdditionalKeywords &Keywords,
231 CurrentLines(&Lines), Style(Style), Keywords(Keywords),
333 if (FormatTok->is(Keywords.kw_where)) {
507 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in,
508 Keywords.kw_as)) ||
662 const AdditionalKeywords &Keywords) {
673 if (I->Tok->isNot(Keywords.kw_function))
697 (isGoogScope(*Line) || isIIFE(*Line, Keywords)));
932 static bool mustBeJSIdent(const AdditionalKeywords &Keywords,
938 Keywords.kw_in, Keywords.kw_of, Keywords.kw_as, Keywords.kw_async,
939 Keywords.kw_await, Keywords.kw_yield, Keywords.kw_finally,
940 Keywords.kw_function, Keywords.kw_import, Keywords.kw_is,
941 Keywords.kw_let, Keywords.kw_var, tok::kw_const,
942 Keywords.kw_abstract, Keywords.kw_extends, Keywords.kw_implements,
943 Keywords.kw_instanceof, Keywords.kw_interface, Keywords.kw_throws,
944 Keywords.kw_from));
947 static bool mustBeJSIdentOrValue(const AdditionalKeywords &Keywords,
951 mustBeJSIdent(Keywords, FormatTok);
956 static bool isJSDeclOrStmt(const AdditionalKeywords &Keywords,
959 tok::kw_return, Keywords.kw_yield,
967 tok::kw_throw, tok::kw_try, tok::kw_catch, Keywords.kw_finally,
969 tok::kw_const, tok::kw_class, Keywords.kw_var, Keywords.kw_let,
970 Keywords.kw_async, Keywords.kw_function,
972 Keywords.kw_import, tok::kw_export);
994 bool PreviousMustBeValue = mustBeJSIdentOrValue(Keywords, Previous);
1009 bool NextMustBeValue = mustBeJSIdentOrValue(Keywords, Next);
1018 isJSDeclOrStmt(Keywords, Next))
1158 if (FormatTok->is(Keywords.kw_import)) {
1177 FormatTok->isOneOf(Keywords.kw_signals, Keywords.kw_qsignals,
1178 Keywords.kw_slots, Keywords.kw_qslots)) {
1209 FormatTok->is(Keywords.kw_interface)) {
1284 if (FormatTok->isOneOf(Keywords.kw_NS_ENUM, Keywords.kw_NS_OPTIONS,
1285 Keywords.kw_CF_ENUM, Keywords.kw_CF_OPTIONS,
1286 Keywords.kw_CF_CLOSED_ENUM,
1287 Keywords.kw_NS_CLOSED_ENUM))
1371 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where) &&
1388 FormatTok->is(Keywords.kw_function) &&
1390 Keywords.kw_async)))) {
1396 FormatTok->is(Keywords.kw_interface)) {
1405 if (Next && !mustBeJSIdent(Keywords, Next)) {
1525 tok::kw_protected, Keywords.kw_internal, Keywords.kw_get,
1526 Keywords.kw_set)) {
1527 if (Tok->isOneOf(Keywords.kw_get, Keywords.kw_set))
1579 if (FormatTok->isOneOf(Keywords.kw_get, Keywords.kw_set) &&
1707 assert(FormatTok->is(Keywords.kw_function) ||
1708 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function));
1709 if (FormatTok->is(Keywords.kw_async))
1780 if (FormatTok->is(Keywords.kw_function) ||
1781 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)) {
1911 (FormatTok->is(Keywords.kw_function) ||
1912 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)))
2059 if (!(FormatTok->isOneOf(tok::kw_catch, Keywords.kw___except,
2063 FormatTok->is(Keywords.kw_finally)) ||
2167 FormatTok->is(Keywords.kw_await))
2274 if (FormatTok->isOneOf(Keywords.kw_slots, Keywords.kw_qslots))
2479 FormatTok->isOneOf(Keywords.kw_extends, Keywords.kw_implements)) {
2525 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where)) {
2694 bool IsImport = FormatTok->is(Keywords.kw_import);
2705 if (FormatTok->is(Keywords.kw_async))
2707 if (FormatTok->is(Keywords.kw_function)) {