Home
last modified time | relevance | path

Searched refs:isOneOf (Results 1 – 14 of 14) sorted by relevance

/external/clang/lib/Format/
DTokenAnnotator.cpp71 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace, in parseAngle()
80 if (CurrentToken->Previous->isOneOf(tok::pipepipe, tok::ampamp) && in parseAngle()
115 (Left->Previous->isOneOf(tok::kw_static_assert, tok::kw_if, in parseParens()
122 !Left->Previous->isOneOf(tok::identifier, in parseParens()
165 Prev->isOneOf(tok::star, tok::amp, tok::ampamp) && in parseParens()
174 CurrentToken->Previous->Previous->isOneOf(tok::l_paren, in parseParens()
213 if (CurrentToken->isOneOf(tok::r_square, tok::r_brace)) in parseParens()
222 if (CurrentToken->isOneOf(tok::kw_const, tok::kw_auto) || in parseParens()
225 if (CurrentToken->isOneOf(tok::semi, tok::colon)) in parseParens()
253 Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare()
[all …]
DContinuationIndenter.cpp105 Previous.Previous->isOneOf(tok::l_brace, tok::l_paren, tok::comma)) in canBreak()
152 !Current.isOneOf(tok::r_paren, tok::r_brace)) in mustBreak()
156 !Previous.isOneOf(tok::kw_return, tok::lessless, tok::at) && in mustBreak()
157 !Previous.isOneOf(TT_InlineASMColon, TT_ConditionalExpr) && in mustBreak()
218 if (Current.isOneOf(TT_FunctionDeclarationName, tok::kw_operator) && in mustBreak()
231 Previous.is(tok::l_brace) && !Current.isOneOf(tok::r_brace, tok::comment)) in mustBreak()
342 Previous.Previous->isOneOf(tok::kw_if, tok::kw_for)) { in addTokenOnCurrentLine()
347 } else if (!Current.isOneOf(tok::comment, tok::caret) && in addTokenOnCurrentLine()
351 } else if ((Previous.isOneOf(TT_BinaryOperator, TT_ConditionalExpr, in addTokenOnCurrentLine()
429 PreviousNonComment->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)) { in addTokenOnNewLine()
[all …]
DFormatToken.h281 template <typename A, typename B> bool isOneOf(A K1, B K2) const { in isOneOf() function
285 bool isOneOf(A K1, B K2, Ts... Ks) const { in isOneOf() function
286 return is(K1) || isOneOf(K2, Ks...); in isOneOf()
297 return isOneOf(tok::kw_public, tok::kw_protected, tok::kw_private) &&
313 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square, in opensScope()
318 return isOneOf(tok::r_paren, tok::r_brace, tok::r_square, in closesScope()
324 return isOneOf(tok::arrow, tok::period, tok::arrowstar) && in isMemberAccess()
325 !isOneOf(TT_DesignatedInitializerPeriod, TT_TrailingReturnArrow, in isMemberAccess()
DUnwrappedLineFormatter.cpp105 if (TheLine->First->isOneOf(tok::kw_for, tok::kw_while)) { in tryFitMultipleLinesInOne()
110 if (TheLine->First->isOneOf(tok::kw_case, tok::kw_default)) { in tryFitMultipleLinesInOne()
154 if (I[1]->First->isOneOf(tok::semi, tok::kw_if, tok::kw_for, in tryMergeSimpleControlStatement()
168 I[1]->First->isOneOf(tok::kw_case, tok::kw_default)) in tryMergeShortCaseLabels()
179 if (Line->First->isOneOf(tok::kw_case, tok::kw_default, tok::r_brace)) in tryMergeShortCaseLabels()
181 if (Line->First->isOneOf(tok::kw_if, tok::kw_for, tok::kw_switch, in tryMergeShortCaseLabels()
201 Line.First->isOneOf(tok::at, tok::minus, tok::plus)) in tryMergeSimpleBlock()
206 if (Line.First->isOneOf(tok::kw_else, tok::kw_case)) in tryMergeSimpleBlock()
208 if (Line.First->isOneOf(tok::kw_if, tok::kw_while, tok::kw_do, tok::kw_try, in tryMergeSimpleBlock()
218 Line.First->isOneOf(tok::kw_while, tok::kw_do, tok::kw_for)) in tryMergeSimpleBlock()
[all …]
DUnwrappedLineParser.cpp340 ProbablyBracedList = NextTok->isOneOf(tok::comma, tok::r_square); in calculateBraceTypes()
344 bool NextIsObjCMethod = NextTok->isOneOf(tok::plus, tok::minus) && in calculateBraceTypes()
356 NextTok->isOneOf(tok::comma, tok::semi, tok::period, tok::colon, in calculateBraceTypes()
445 return InitialToken.isOneOf(tok::kw_namespace, tok::kw_class); in ShouldBreakBeforeBrace()
777 if (FormatTok->isOneOf(Keywords.kw_NS_ENUM, Keywords.kw_NS_OPTIONS, in parseStructuralElement()
890 (Line->Tokens.back().Tok->isOneOf(tok::identifier, tok::kw_operator, in tryToParseLambda()
954 if (!FormatTok->isOneOf(tok::comma, tok::identifier)) { in tryToParseLambdaIntroducer()
966 if (!FormatTok->isOneOf(tok::identifier, tok::kw_this)) in tryToParseLambdaIntroducer()
996 if (!FormatTok->isOneOf(tok::identifier, tok::comma, tok::r_paren, in tryToParseJSFunction()
1195 assert(FormatTok->isOneOf(tok::kw_try, tok::kw___try) && "'try' expected"); in parseTryCatch()
[all …]
DFormat.cpp754 (I[1]->isOneOf(tok::l_paren, tok::semi, tok::l_brace, tok::r_brace, in tryMergeJSRegexLiteral()
786 if (!EndBacktick->isOneOf(tok::comment, tok::unknown)) in tryMergeTemplateString()
1067 FormatTok->isOneOf(tok::kw_struct, tok::kw_union, tok::kw_delete)) { in getNextToken()
/external/apache-http/src/org/apache/http/impl/
DDefaultHttpRequestFactory.java78 private static boolean isOneOf(final String[] methods, final String method) { in isOneOf() method in DefaultHttpRequestFactory
93 if (isOneOf(RFC2616_COMMON_METHODS, method)) { in newHttpRequest()
95 } else if (isOneOf(RFC2616_ENTITY_ENC_METHODS, method)) { in newHttpRequest()
97 } else if (isOneOf(RFC2616_SPECIAL_METHODS, method)) { in newHttpRequest()
106 if (isOneOf(RFC2616_COMMON_METHODS, method)) { in newHttpRequest()
108 } else if (isOneOf(RFC2616_ENTITY_ENC_METHODS, method)) { in newHttpRequest()
110 } else if (isOneOf(RFC2616_SPECIAL_METHODS, method)) { in newHttpRequest()
/external/apache-http/src/org/apache/http/message/
DBasicHeaderValueParser.java309 private static boolean isOneOf(final char ch, final char[] chs) { in isOneOf() method in BasicHeaderValueParser
344 if (isOneOf(ch, delimiters)) { in parseNameValuePair()
375 if (!qouted && !escaped && isOneOf(ch, delimiters)) { in parseNameValuePair()
/external/hamcrest/library/src/org/hamcrest/collection/
DIsIn.java42 public static <T> Matcher<T> isOneOf(T... elements) { in isOneOf() method in IsIn
/external/hamcrest/library/src/org/hamcrest/
DMatchers.java221 public static <T> org.hamcrest.Matcher<T> isOneOf(T... elements) { in isOneOf() method in Matchers
222 return org.hamcrest.collection.IsIn.isOneOf(elements); in isOneOf()
/external/libphonenumber/demo/war/WEB-INF/lib/
Dcommons-fileupload-1.2.1.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/robolectric/lib/main/
Dhttpcore-4.0.1.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.apache.commons.httpclient_3.1.0.v201005080502.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/jarjar/lib/
Dapache-ant-1.9.4.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...