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

References

tools/clang/lib/Format/TokenAnnotator.cpp
 1812     while (Current && (Current->is(tok::kw_return) ||
 1812     while (Current && (Current->is(tok::kw_return) ||
 1813                        (Current->is(tok::colon) &&
 1814                         Current->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral))))
 1817     if (!Current || Precedence > PrecedenceArrowAndPeriod)
 1833     FormatToken *Start = Current;
 1837     while (Current) {
 1843       if (Current && Current->is(TT_SelectorName) &&
 1843       if (Current && Current->is(TT_SelectorName) &&
 1847         Start = Current;
 1852       if (!Current ||
 1853           (Current->closesScope() &&
 1854            (Current->MatchingParen || Current->is(TT_TemplateString))) ||
 1854            (Current->MatchingParen || Current->is(TT_TemplateString))) ||
 1857            Precedence == prec::Assignment && Current->is(tok::colon))) {
 1862       if (Current->opensScope()) {
 1865         while (Current && (!Current->closesScope() || Current->opensScope())) {
 1865         while (Current && (!Current->closesScope() || Current->opensScope())) {
 1865         while (Current && (!Current->closesScope() || Current->opensScope())) {
 1874             LatestOperator->NextOperator = Current;
 1875           LatestOperator = Current;
 1876           Current->OperatorIndex = OperatorIndex;
 1883     if (LatestOperator && (Current || Precedence > 0)) {
 1898     if (Current) {
 1899       const FormatToken *NextNonComment = Current->getNextNonComment();
 1900       if (Current->is(TT_ConditionalExpr))
 1902       if (NextNonComment && Current->is(TT_SelectorName) &&
 1908       if (Current->is(TT_JsComputedPropertyName))
 1910       if (Current->is(TT_LambdaArrow))
 1912       if (Current->is(TT_JsFatArrow))
 1914       if (Current->isOneOf(tok::semi, TT_InlineASMColon, TT_SelectorName) ||
 1915           (Current->is(tok::comment) && NextNonComment &&
 1918       if (Current->is(TT_RangeBasedForLoopColon))
 1922           Current->is(Keywords.kw_instanceof))
 1925           Current->isOneOf(Keywords.kw_in, Keywords.kw_as))
 1927       if (Current->is(TT_BinaryOperator) || Current->is(tok::comma))
 1927       if (Current->is(TT_BinaryOperator) || Current->is(tok::comma))
 1928         return Current->getPrecedence();
 1929       if (Current->isOneOf(tok::period, tok::arrow))
 1933           Current->isOneOf(Keywords.kw_extends, Keywords.kw_implements,
 1944     if (Current) {
 1945       FormatToken *Previous = Current->Previous;
 1958     while (Current && Current->is(TT_UnaryOperator)) {
 1958     while (Current && Current->is(TT_UnaryOperator)) {
 1959       Tokens.push_back(Current);
 1969     while (Current && Current->isTrailingComment()) {
 1969     while (Current && Current->isTrailingComment()) {
 1972     FormatToken *Start = Current;
 1974     if (!Current || !Current->is(tok::question))
 1974     if (!Current || !Current->is(tok::question))
 1978     if (!Current || Current->isNot(TT_ConditionalExpr))
 1978     if (!Current || Current->isNot(TT_ConditionalExpr))
 1986     if (Current)
 1987       Current = Current->Next;
 1987       Current = Current->Next;
 1988     while (Current &&
 1989            (Current->NewlinesBefore == 0 || SkipPastLeadingComments) &&
 1990            Current->isTrailingComment())
 1991       Current = Current->Next;
 1991       Current = Current->Next;