reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Format/TokenAnnotator.cpp
 2051   AnnotatingParser Parser(Style, Line, Keywords);
 2064   ExpressionParser ExprParser(Style, Keywords, Line);
 2323     if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_throws))
 2323     if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_throws))
 2325     if (Right.is(Keywords.kw_implements))
 2330     if (Right.is(Keywords.kw_function) && Left.isNot(tok::comma))
 2516   if (Left.is(Keywords.kw_assert) && Style.Language == FormatStyle::LK_Java)
 2596            (Right.isOneOf(Keywords.kw_override, Keywords.kw_final) &&
 2596            (Right.isOneOf(Keywords.kw_override, Keywords.kw_final) &&
 2659              (Left.isOneOf(tok::kw_try, Keywords.kw___except, tok::kw_catch,
 2726         Left.isOneOf(Keywords.kw_optional, Keywords.kw_required,
 2726         Left.isOneOf(Keywords.kw_optional, Keywords.kw_required,
 2727                      Keywords.kw_repeated, Keywords.kw_extend))
 2727                      Keywords.kw_repeated, Keywords.kw_extend))
 2730         Left.isOneOf(Keywords.kw_returns, Keywords.kw_option))
 2730         Left.isOneOf(Keywords.kw_returns, Keywords.kw_option))
 2760     if (Right.is(tok::l_paren) && Left.is(Keywords.kw_await) && Left.Previous &&
 2763     if (Left.is(Keywords.kw_async) && Right.is(tok::l_paren) &&
 2777     if (Left.is(tok::identifier) && Keywords.IsJavaScriptIdentifier(Left) &&
 2781         Left.isOneOf(Keywords.kw_function, Keywords.kw_yield))
 2781         Left.isOneOf(Keywords.kw_function, Keywords.kw_yield))
 2784         Left.isOneOf(Keywords.kw_function, Keywords.kw_yield,
 2784         Left.isOneOf(Keywords.kw_function, Keywords.kw_yield,
 2785                      Keywords.kw_extends, Keywords.kw_implements))
 2785                      Keywords.kw_extends, Keywords.kw_implements))
 2797       if (Left.isOneOf(tok::kw_throw, Keywords.kw_await, Keywords.kw_typeof,
 2797       if (Left.isOneOf(tok::kw_throw, Keywords.kw_await, Keywords.kw_typeof,
 2802     if (Left.endsSequence(tok::kw_const, Keywords.kw_as)) {
 2805     if ((Left.isOneOf(Keywords.kw_let, Keywords.kw_var, Keywords.kw_in,
 2805     if ((Left.isOneOf(Keywords.kw_let, Keywords.kw_var, Keywords.kw_in,
 2805     if ((Left.isOneOf(Keywords.kw_let, Keywords.kw_var, Keywords.kw_in,
 2810          (Left.is(Keywords.kw_of) && Left.Previous &&
 2815     if (Left.isOneOf(tok::kw_for, Keywords.kw_as) && Left.Previous &&
 2818     if (Left.is(Keywords.kw_as) &&
 2824     if (Left.is(Keywords.kw_is) && Right.is(tok::l_brace))
 2831         Line.First->isOneOf(Keywords.kw_import, tok::kw_export))
 2837                        Keywords.kw_implements, Keywords.kw_extends))
 2837                        Keywords.kw_implements, Keywords.kw_extends))
 2845         Right.isOneOf(Keywords.kw_as, Keywords.kw_in))
 2845         Right.isOneOf(Keywords.kw_as, Keywords.kw_in))
 2850     if (Left.is(Keywords.kw_synchronized) && Right.is(tok::l_paren))
 2854          Left.isOneOf(Keywords.kw_final, Keywords.kw_abstract,
 2854          Left.isOneOf(Keywords.kw_final, Keywords.kw_abstract,
 2855                       Keywords.kw_native)) &&
 3006         Line.First->isOneOf(tok::identifier, Keywords.kw_import, tok::kw_export,
 3010         !Line.First->isOneOf(Keywords.kw_var, Keywords.kw_let))
 3010         !Line.First->isOneOf(Keywords.kw_var, Keywords.kw_let))
 3268     if (Left.isOneOf(Keywords.kw_throws, Keywords.kw_extends,
 3268     if (Left.isOneOf(Keywords.kw_throws, Keywords.kw_extends,
 3269                      Keywords.kw_implements))
 3271     if (Right.isOneOf(Keywords.kw_throws, Keywords.kw_extends,
 3271     if (Right.isOneOf(Keywords.kw_throws, Keywords.kw_extends,
 3272                       Keywords.kw_implements))
 3278             tok::kw_return, Keywords.kw_yield, tok::kw_continue, tok::kw_break,
 3279             tok::kw_throw, Keywords.kw_interface, Keywords.kw_type,
 3279             tok::kw_throw, Keywords.kw_interface, Keywords.kw_type,
 3281             Keywords.kw_readonly, Keywords.kw_abstract, Keywords.kw_get,
 3281             Keywords.kw_readonly, Keywords.kw_abstract, Keywords.kw_get,
 3281             Keywords.kw_readonly, Keywords.kw_abstract, Keywords.kw_get,
 3282             Keywords.kw_set, Keywords.kw_async, Keywords.kw_await))
 3282             Keywords.kw_set, Keywords.kw_async, Keywords.kw_await))
 3282             Keywords.kw_set, Keywords.kw_async, Keywords.kw_await))
 3299     if (Right.is(Keywords.kw_is)) {
 3311     if (Left.is(Keywords.kw_in))
 3313     if (Right.is(Keywords.kw_in))
 3315     if (Right.is(Keywords.kw_as))
 3317     if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_infer)) {
 3317     if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_infer)) {
 3323     if (Left.is(Keywords.kw_as))
 3327     if (Left.is(Keywords.kw_declare) &&
 3328         Right.isOneOf(Keywords.kw_module, tok::kw_namespace,
 3329                       Keywords.kw_function, tok::kw_class, tok::kw_enum,
 3330                       Keywords.kw_interface, Keywords.kw_type, Keywords.kw_var,
 3330                       Keywords.kw_interface, Keywords.kw_type, Keywords.kw_var,
 3330                       Keywords.kw_interface, Keywords.kw_type, Keywords.kw_var,
 3331                       Keywords.kw_let, tok::kw_const))
 3335     if (Left.isOneOf(Keywords.kw_module, tok::kw_namespace) &&