codesearch.isocpp.org by Andrew Tomazos.
Enter a valid C/C++ code snippet...
Searching for `unless`
...
2489599 source files searched.
1837 matches found.
Here is a random sample of matches...
actcd19/main/l/llvm-toolchain-3.8/llvm-toolchain-3.8_3.8.1-23/clang/unittests/ASTMatchers/ASTMatchersTest.cpp:3875:
" Y<T> y;"
"}; X<A> x;",
cxxRecordDecl(hasName("::X<A>::Y"), unless(isTemplateInstantiation()))));
}
actcd19/main/l/llvm-toolchain-3.8/llvm-toolchain-3.8_3.8.1-23/clang/unittests/AST/ASTContextParentMapTest.cpp:65:
"void g() { C<int> c; c.f(); }",
cxxMethodDecl(hasName("f"),
hasParent(cxxRecordDecl(unless(isTemplateInstantiation()))))));
EXPECT_FALSE(DeclVerifier.match(
"template<typename T> struct C { void f() {} };"
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/bugprone/TooSmallLoopVariableCheck.cpp:62:
unless(integerLiteral()),
unless(hasType(isConstQualified())),
unless(hasType(enumType())))))
.bind(LoopUpperBoundName);
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp:299:
anyOf(hasParent(stmt().bind("parentStmt")), anything()),
unless(isInTemplateInstantiation()),
unless(hasAncestor(functionTemplateDecl())))
.bind("implicitCastToBool"),
this);
actcd19/main/m/mlton/mlton_20180207-1/runtime/gc/hash-cons.c:159:
goto look;
}
unless (mightBeThere)
goto lookNext;
if (DEBUG_SHARE)
actcd19/main/m/mlton/mlton_20100608-5.1/.pc/22-fixes-20110319-to-20110719.patch/runtime/gc/profiling.c:422:
sigemptyset (&sa.sa_mask);
GC_setSigProfHandler (&sa);
unless (sigaction (SIGPROF, &sa, NULL) == 0)
diee ("initProfilingTime: sigaction failed");
/* Start the SIGPROF timer. */
actcd19/main/l/llvm-toolchain-3.8/llvm-toolchain-3.8_3.8.1-23/clang-tools-extra/clang-tidy/cppcoreguidelines/ProBoundsPointerArithmeticCheck.cpp:29:
hasOperatorName("+="), hasOperatorName("-=")),
hasType(pointerType()),
unless(hasLHS(ignoringImpCasts(declRefExpr(to(isImplicit()))))))
.bind("expr"),
this);
actcd19/main/l/llvm-toolchain-6.0/llvm-toolchain-6.0_6.0.1-10/clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeCstyleCastCheck.cpp:38:
Finder->addMatcher(
cStyleCastExpr(unless(isInTemplateInstantiation())).bind("cast"), this);
}
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang/unittests/AST/ASTImporterTest.cpp:3464:
Decl *FromTU0 = getTuDecl("class X {};", Lang_CXX, "input0.cc");
Decl *FromTU1 = getTuDecl("class X;", Lang_CXX, "input1.cc");
auto Pattern = cxxRecordDecl(hasName("X"), unless(isImplicit()));
auto FromDef = FirstDeclMatcher<CXXRecordDecl>().match(FromTU0, Pattern);
auto FromProto = FirstDeclMatcher<CXXRecordDecl>().match(FromTU1, Pattern);
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-6/clang-tools-extra/clang-tidy/cppcoreguidelines/AvoidGotoCheck.cpp:41:
whileStmt(hasAncestor(Loop)), doStmt(hasAncestor(Loop))));
Finder->addMatcher(gotoStmt(anyOf(unless(hasAncestor(NestedLoop)),
unless(isForwardJumping())))
.bind("goto"),
actcd19/main/s/snowball/snowball_0+svn585-1/compiler/analyser.c:846:
error(a, 1); break;
case -1:
unless (terminator < 0) omission_error(a, c_ket);
return;
}
actcd19/main/m/mlton/mlton_20180207-1/runtime/gc/init.c:140:
die ("@MLton hash-cons missing argument.");
s->controls.ratios.hashCons = stringToFloat (argv[i++]);
unless (0.0 <= s->controls.ratios.hashCons
and s->controls.ratios.hashCons <= 1.0)
die ("@MLton hash-cons argument must be between 0.0 and 1.0.");
actcd19/main/m/mlton/mlton_20130715-3/runtime/gc/init.c:344:
if (s->controls.fixedHeap > 0 and s->controls.maxHeap > 0)
die ("Cannot use both fixed-heap and max-heap.");
unless (s->controls.ratios.markCompact <= s->controls.ratios.copy
and s->controls.ratios.copy <= s->controls.ratios.live)
die ("Ratios must satisfy mark-compact-ratio <= copy-ratio <= live-ratio.");
actcd19/main/l/llvm-toolchain-6.0/llvm-toolchain-6.0_6.0.1-10/clang-tools-extra/clang-tidy/modernize/UseEmplaceCheck.cpp:91:
auto SoughtConstructExpr =
cxxConstructExpr(
unless(anyOf(IsCtorOfSmartPtr, HasInitList, BitFieldAsArgument,
InitializerListAsArgument, NewExprAsArgument,
ConstructingDerived, IsPrivateCtor)))
actcd19/main/f/firefox/firefox_65.0.1-1/build/clang-plugin/CanRunScriptChecker.cpp:22:
unless(cxxThisExpr()),
// and which is not a method call on a smart ptr,
unless(cxxMemberCallExpr(on(hasType(isSmartPtrToRefCounted())))),
// and which is not calling operator* on a smart ptr.
unless(
actcd19/main/l/llvm-toolchain-6.0/llvm-toolchain-6.0_6.0.1-10/clang-tools-extra/clang-move/ClangMove.cpp:525:
auto AllDeclsInHeader = namedDecl(
unless(ForwardClassDecls), unless(namespaceDecl()),
unless(usingDirectiveDecl()), // using namespace decl.
InOldHeader,
hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))),
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp:1452:
EXPECT_TRUE(notMatches("int x = ((0));",
varDecl(hasInitializer(ignoringParenCasts(
unless(anything()))))));
// This test creates an implicit cast from int to char in addition to the
actcd19/main/r/racket/racket_7.2+dfsg1-2/src/racket/src/port.c:1347:
SCHEME_CDR(unless) = unless_evt;
} else
unless = unless_evt;
/* Finally, call port's get or peek: */
actcd19/main/libl/liblingua-stem-snowball-perl/liblingua-stem-snowball-perl_0.952-3/snowball-code/compiler/analyser.c:29:
printf("\n");
unless (p->AE == 0) print_node_(p->AE, n+1, "# ");
unless (p->left == 0) print_node_(p->left, n+1, " ");
unless (p->right == 0) print_node_(p->right, n, " ");
if (p->aux != 0) print_node_(p->aux, n+1, "@ ");
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:260:
auto IsUserProvidedNonDelegatingConstructor =
allOf(isUserProvided(),
unless(anyOf(isInstantiated(), isDelegatingConstructor())));
auto IsNonTrivialDefaultConstructor = allOf(
isDefaultConstructor(), unless(isUserProvided()),
actcd19/main/m/mlton/mlton_20130715-3/runtime/gc/init.c:98:
die ("@MLton copy-generational-ratio missing argument.");
s->controls.ratios.copyGenerational = stringToFloat (argv[i++]);
unless (1.0 < s->controls.ratios.copyGenerational)
die ("@MLton copy-generational-ratio argument must be greater than 1.0.");
} else if (0 == strcmp (arg, "copy-ratio")) {
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-6/clang-tools-extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp:28:
const auto IsFloatExpr =
expr(hasType(realFloatingPointType()), unless(IsCeilFloorCall));
// casts:
actcd19/main/l/llvm-toolchain-3.8/llvm-toolchain-3.8_3.8.1-23/clang-tools-extra/clang-tidy/readability/FunctionSizeCheck.cpp:34:
Finder->addMatcher(
functionDecl(
unless(isInstantiated()),
forEachDescendant(
stmt(unless(compoundStmt()),
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/misc/RedundantExpressionCheck.cpp:654:
unless(hasEitherOperand(hasType(realFloatingPointType()))),
unless(hasLHS(AnyLiteralExpr)),
unless(hasDescendant(BannedIntegerLiteral)))
.bind("binary"),
this);
actcd19/main/g/geary/geary_0.12.4-4/src/sqlite3-unicodesn/libstemmer_c/runtime/utilities_sq3.c:102:
int ch;
int w = get_utf8(z->p, z->c, z->l, & ch);
unless (w) return -1;
if (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0)
return w;
actcd19/main/s/snowball/snowball_0+svn585-1/compiler/driver.c:254:
}
FREE(o);
unless (space_count == 0) fprintf(stderr, "%d blocks unfreed\n", space_count);
return 0;
}
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/clang-tools-extra/clang-tidy/modernize/UseAutoCheck.cpp:298:
returns(anyOf(ST, pointsTo(ST), references(ST))))));
return declStmt(unless(has(varDecl(
unless(hasInitializer(ignoringImplicit(TemplateCall)))))))
.bind(DeclWithTemplateCastId);
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp:83:
// Calling make_smart_ptr from within a member function of a type with a
// private or protected constructor would be ill-formed.
auto CanCallCtor = unless(has(ignoringImpCasts(
cxxConstructExpr(hasDeclaration(decl(unless(isPublic())))))));
actcd19/main/c/cfengine3/cfengine3_3.12.1-2/libpromises/promises.c:646:
/* Look for 'unless' exclusion. */
{
const Constraint *unless = PromiseGetConstraint(pp, "unless");
if (unless && IsVarClassDefined(ctx, unless, pcopy))
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp:294:
hasParent(stmt(anyOf(ifStmt(), whileStmt()), has(declStmt())))),
// Exclude cases common to implicit cast to and from bool.
unless(exceptionCases), unless(has(boolXor)),
// Retrive also parent statement, to check if we need additional
// parens in replacement.
actcd19/main/l/llvm-toolchain-3.8/llvm-toolchain-3.8_3.8.1-23/clang-tools-extra/clang-tidy/readability/ImplicitBoolCastCheck.cpp:344:
// bool_expr_a == bool_expr_b
// bool_expr_a != bool_expr_b
unless(hasParent(binaryOperator(
anyOf(hasOperatorName("=="), hasOperatorName("!=")),
hasLHS(createImplicitCastFromBoolMatcher()),
actcd19/main/z/zoem/zoem_11-166-1.2/src/ops.c:2884:
break
; else if
( ( unless && condition_ok)
|| (!unless && !condition_ok)
)
actcd19/main/m/mlton/mlton_20100608-5.1/runtime/gc/init.c:161:
die ("@MLton mark-compact-ratio missing argument.");
s->controls.ratios.markCompact = stringToFloat (argv[i++]);
unless (1.0 < s->controls.ratios.markCompact)
die ("@MLton mark-compact-ratio argument must be greater than 1.0.");
} else if (0 == strcmp (arg, "max-heap")) {
actcd19/main/l/llvm-toolchain-6.0/llvm-toolchain-6.0_6.0.1-10/clang-tools-extra/clang-tidy/misc/SizeofExpressionCheck.cpp:121:
expr(hasType(qualType(hasCanonicalType(arrayType()))))));
const auto ArrayCastExpr = expr(anyOf(
unaryOperator(hasUnaryOperand(ArrayExpr), unless(hasOperatorName("*"))),
binaryOperator(hasEitherOperand(ArrayExpr)),
castExpr(hasSourceExpression(ArrayExpr))));
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/cert/StaticObjectExceptionCheck.cpp:34:
cxxConstructorDecl(unless(isNoThrow())).bind("func")))),
hasDescendant(cxxNewExpr(hasDeclaration(
functionDecl(unless(isNoThrow())).bind("func")))),
hasDescendant(callExpr(hasDeclaration(
functionDecl(unless(isNoThrow())).bind("func"))))))
actcd19/main/l/llvm-toolchain-6.0/llvm-toolchain-6.0_6.0.1-10/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp:1119:
EXPECT_TRUE(notMatches(
"struct S { S(); };",
cxxConstructorDecl(isMoveConstructor(), unless(isImplicit()))));
EXPECT_TRUE(notMatches(
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp:157:
cxxRecordDecl(
isDerivedFrom("Y"),
unless(hasName("X")));
EXPECT_TRUE(notMatches("", NotClassX));
EXPECT_TRUE(notMatches("class Y {};", NotClassX));
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp:321:
// bool_expr_a == bool_expr_b
// bool_expr_a != bool_expr_b
unless(hasParent(binaryOperator(anyOf(
boolComparison, boolXor, boolOpAssignment, bitfieldAssignment)))),
implicitCastExpr().bind("implicitCastFromBool"),
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/abseil/NoNamespaceCheck.cpp:26:
Finder->addMatcher(
namespaceDecl(hasName("::absl"), unless(isInAbseilFile()))
.bind("abslNamespace"),
this);
actcd19/main/l/llvm-toolchain-6.0/llvm-toolchain-6.0_6.0.1-10/clang-tools-extra/clang-tidy/misc/RedundantExpressionCheck.cpp:678:
parametersAreEquivalent(),
// Filter noisy false positives.
unless(isMacro()), unless(isInTemplateInstantiation()))
.bind("call"),
this);
actcd19/main/r/racket/racket_7.2+dfsg1-2/src/racket/src/schemex.h:83:
int enable_break);
void (*scheme_wait_input_allowed)(Scheme_Input_Port *port, int nonblock);
int (*scheme_unless_ready)(Scheme_Object *unless);
int (*scheme_in_main_thread)(void);
void (*scheme_cancel_sleep)(void);
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp:454:
else
Finder->addMatcher(ifStmt(isExpansionInMainFile(),
unless(hasParent(ifStmt())),
hasThen(returnsBool(Value, ThenLiteralId)),
hasElse(returnsBool(!Value)))
actcd19/main/o/openjdk-12/openjdk-12_12~31-1/src/hotspot/share/opto/parseHelper.cpp:202:
Node* bol = _gvn.transform(new BoolNode( cmp, BoolTest::eq ));
Node* ctrl= control();
{ BuildCutout unless(this, bol, PROB_MAX);
uncommon_trap(Deoptimization::Reason_array_check,
Deoptimization::Action_maybe_recompile,
actcd19/main/f/firefox/firefox_65.0.1-1/build/clang-plugin/LoadLibraryUsageChecker.cpp:20:
hasName("LoadLibraryExA"))),
hasName("PR_LoadLibrary")))),
unless(hasArgument(0, stringLiteral()))))
.bind("funcCall"),
this);
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/clang-tools-extra/clang-tidy/misc/StaticAssertCheck.cpp:61:
ignoringParenCasts(AssertExprRoot)))))),
anything()),
unless(findAll(NonConstexprFunctionCall)))
.bind("condition");
auto Condition =
actcd19/main/libl/liblingua-stem-snowball-perl/liblingua-stem-snowball-perl_0.952-3/snowball-code/compiler/tokeniser.c:355:
case c_get:
code = read_token(t);
unless (code == c_literalstring) {
error1(t, "string omitted after get"); continue;
}
actcd19/main/l/llvm-toolchain-6.0/llvm-toolchain-6.0_6.0.1-10/clang-tools-extra/clang-tidy/misc/RedundantExpressionCheck.cpp:660:
// Filter noisy false positives.
unless(conditionalOperatorIsInMacro()),
unless(isInTemplateInstantiation()))
.bind("cond"),
this);
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/clang-tools-extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp:170:
forEachConstructorInitializer(
cxxCtorInitializer(
forField(unless(anyOf(getLangOpts().CPlusPlus2a
? unless(anything())
: isBitField(),
actcd19/main/o/openjdk-11/openjdk-11_11.0.3+1-1/src/hotspot/share/opto/library_call.cpp:1214:
{
BuildCutout unless(this, len_pos_bol, PROB_MAX);
uncommon_trap(Deoptimization::Reason_intrinsic,
Deoptimization::Action_make_not_entrant);
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/clang-tools-extra/clang-tidy/modernize/UseTransparentFunctorsCheck.cpp:50:
unless(elaboratedType()),
hasDeclaration(classTemplateSpecializationDecl(
unless(hasAnyTemplateArgument(templateArgument(refersToType(
qualType(pointsTo(qualType(isAnyCharacter()))))))),
hasAnyTemplateArgument(
actcd19/main/s/snowball/snowball_0+svn585-1/compiler/analyser.c:22:
printf("%s ", name_of_token(p->type));
unless (p->name == 0) report_b(stdout, p->name->b);
unless (p->literalstring == 0) {
printf("'");
report_b(stdout, p->literalstring);
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/include-fixer/find-all-symbols/FindAllSymbols.cpp:127:
// function's comment for detailed explanation).
auto CommonFilter =
allOf(unless(isImplicit()), unless(isExpansionInMainFile()));
auto HasNSOrTUCtxMatcher =
actcd19/main/l/llvm-toolchain-6.0/llvm-toolchain-6.0_6.0.1-10/clang-tools-extra/clang-tidy/performance/MoveConstArgCheck.cpp:49:
auto MoveCallMatcher =
callExpr(callee(functionDecl(hasName("::std::move"))), argumentCountIs(1),
unless(isInTemplateInstantiation()))
.bind("call-move");
actcd19/main/s/snowball/snowball_0+svn585-1/compiler/analyser.c:21:
for (i = 0; i < n; i++) fputs(i == n - 1 ? s : " ", stdout);
printf("%s ", name_of_token(p->type));
unless (p->name == 0) report_b(stdout, p->name->b);
unless (p->literalstring == 0) {
printf("'");
actcd19/main/r/racket/racket_7.2+dfsg1-2/src/racket/src/portfun.c:972:
nonblock,
peek, peek_skip,
unless, sinfo);
}
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-6/clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp:98:
anyOf(allOf(hasArgument(0, WrongComparend), hasArgument(1, STLArg)),
allOf(hasArgument(0, STLArg), hasArgument(1, WrongComparend))),
unless(hasAncestor(
cxxMethodDecl(ofClass(equalsBoundNode("container"))))))
.bind("BinCmp"),
actcd19/main/libl/liblingua-stem-snowball-perl/liblingua-stem-snowball-perl_0.952-3/snowball-code/compiler/tokeniser.c:281:
}
if (t->widechars || t->utf8) {
unless (0 <= number && number <= 0xffff) {
error1(t, "character values exceed 64K");
return;
actcd19/main/l/llvm-toolchain-3.8/llvm-toolchain-3.8_3.8.1-23/clang/unittests/ASTMatchers/ASTMatchersTest.cpp:3245:
EXPECT_TRUE(notMatches("int x; const int y = x;",
varDecl(hasInitializer(ignoringImpCasts(
unless(anything()))))));
EXPECT_TRUE(notMatches("int x; int y = x;",
varDecl(hasInitializer(ignoringImpCasts(
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-6/clang-tools-extra/clang-tidy/bugprone/MultipleStatementMacroCheck.cpp:60:
void MultipleStatementMacroCheck::registerMatchers(MatchFinder *Finder) {
const auto Inner = expr(isInMacro(), unless(compoundStmt())).bind("inner");
Finder->addMatcher(
stmt(anyOf(ifStmt(hasThen(Inner)), ifStmt(hasElse(Inner)).bind("else"),
actcd19/main/p/postgresql-11/postgresql-11_11.2-2/src/backend/snowball/libstemmer/utilities.c:120:
int w = get_utf8(z->p, z->c, z->l, & ch);
unless (w) return -1;
unless (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0)
return w;
z->c += w;
actcd19/main/f/fair/fair_0.5.3-2/src/chrono.c:96:
void chrono_at(chrono_t *cr, stamp_t moment) {
unless(cr) return;
cr->expiry = moment;
if(cr->tree)
actcd19/main/r/racket/racket_7.2+dfsg1-2/src/racket/src/port.c:1341:
ip->unless = unless;
} else {
unless = scheme_make_raw_pair(NULL, NULL);
ip->unless = unless;
}
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang/unittests/AST/ASTImporterTest.cpp:1159:
Lang_CXX, "", Lang_CXX, Verifier,
classTemplateDecl(hasAncestor(translationUnitDecl(
unless(has(cxxRecordDecl(hasName("declToImport"))))))));
}
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/modernize/UseAutoCheck.cpp:261:
return declStmt(
unless(has(varDecl(anyOf(
unless(hasInitializer(ignoringParenImpCasts(cxxNewExpr()))),
// FIXME: TypeLoc information is not reliable where CV
// qualifiers are concerned so these types can't be
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang/unittests/AST/ASTImporterTest.cpp:865:
functionDecl(
hasDescendant(implicitCastExpr(has(declRefExpr()))),
unless(hasAncestor(translationUnitDecl(has(typeAliasDecl()))))));
}
actcd19/main/r/rspamd/rspamd_1.8.1-2/contrib/snowball/compiler/header.h:8:
#define false 0
#define repeat while(true)
#define unless(C) if(!(C))
#define until(C) while(!(C))
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp:294:
hasParent(stmt(anyOf(ifStmt(), whileStmt()), has(declStmt())))),
// Exclude cases common to implicit cast to and from bool.
unless(exceptionCases), unless(has(boolXor)),
// Retrive also parent statement, to check if we need additional
// parens in replacement.
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/modernize/PassByValueCheck.cpp:143:
forEachConstructorInitializer(
cxxCtorInitializer(
unless(isBaseInitializer()),
// Clang builds a CXXConstructExpr only when it knows which
// constructor will be called. In dependent contexts a
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp:279:
return forStmt(
unless(isInTemplateInstantiation()),
hasLoopInit(
anyOf(declStmt(declCountIs(2),
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp:386:
anyOf(hasAncestor(lambdaExpr().bind("containing-lambda")),
hasAncestor(functionDecl().bind("containing-func"))),
unless(inDecltypeOrTemplateArg()))
.bind("call-move");
actcd19/main/m/mlton/mlton_20100608-5.1/runtime/gc/generational.c:113:
size_t sizeofCardMap (GC_state s, size_t heapSize) {
unless (s->mutatorMarksCards) {
return 0;
}
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-6/clang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp:484:
else
Finder->addMatcher(ifStmt(isExpansionInMainFile(),
unless(hasParent(ifStmt())), hasThen(Then),
hasElse(Else))
.bind(Id),
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang/unittests/AST/ASTImporterTest.cpp:3412:
TEST_P(ImportClasses, DefinitionShouldBeImportedAsADefinition) {
Decl *FromTU = getTuDecl("class X {};", Lang_CXX);
auto Pattern = cxxRecordDecl(hasName("X"), unless(isImplicit()));
auto *FromD = FirstDeclMatcher<CXXRecordDecl>().match(FromTU, Pattern);
actcd19/main/l/llvm-toolchain-6.0/llvm-toolchain-6.0_6.0.1-10/clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:262:
unless(anyOf(isInstantiated(), isDelegatingConstructor())));
auto IsNonTrivialDefaultConstructor = allOf(
isDefaultConstructor(), unless(isUserProvided()),
hasParent(cxxRecordDecl(unless(isTriviallyDefaultConstructible()))));
Finder->addMatcher(
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:286:
cxxConstructExpr(unless(requiresZeroInitialization()),
hasDeclaration(cxxConstructorDecl(
isDefaultConstructor(), unless(isUserProvided())))));
Finder->addMatcher(
varDecl(isDefinition(), HasDefaultConstructor,
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang/lib/ASTMatchers/Dynamic/Registry.cpp:493:
REGISTER_MATCHER(unaryOperator);
REGISTER_MATCHER(unaryTransformType);
REGISTER_MATCHER(unless);
REGISTER_MATCHER(unresolvedLookupExpr);
REGISTER_MATCHER(unresolvedMemberExpr);
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-6/clang/lib/StaticAnalyzer/Checkers/NumberObjectConversionChecker.cpp:256:
auto SuspiciousScalarNumberTypeM =
qualType(hasCanonicalType(isInteger()),
unless(typedefType(hasDeclaration(
typedefDecl(matchesName("^::u?intptr_t$"))))))
.bind("int_type");
actcd19/main/s/snowball/snowball_0+svn585-1/compiler/analyser.c:790:
struct node * p = new_node(a, c_define);
a->amongvar_needed = false;
unless (q == 0) {
check_name_type(a, q, 'R');
if (q->definition != 0) error(a, 36);
actcd19/main/libl/liblingua-stem-snowball-perl/liblingua-stem-snowball-perl_0.952-3/snowball-code/compiler/generator_java.c:1338:
q->no_gaps = true;
for (i = 0; i < range; i++) unless (bit_is_set(map, i)) q->no_gaps = false;
unless (q->no_gaps) {
actcd19/main/p/postgresql-11/postgresql-11_11.2-2/src/backend/snowball/libstemmer/utilities.c:119:
int ch;
int w = get_utf8(z->p, z->c, z->l, & ch);
unless (w) return -1;
unless (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0)
return w;
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp:1864:
allOf(
hasAncestor(cxxRecordDecl(isTemplateInstantiation())),
hasAncestor(cxxRecordDecl(unless(isTemplateInstantiation())))))));
}
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp:27:
pointsTo(decl(OnClass).bind("ptr_to_ptr"))))))
.bind("smart_pointer")),
unless(callee(memberExpr(hasObjectExpression(cxxThisExpr())))),
callee(cxxMethodDecl(
hasName("get"),
actcd19/main/s/snowball/snowball_0+svn585-1/compiler/analyser.c:30:
unless (p->AE == 0) print_node_(p->AE, n+1, "# ");
unless (p->left == 0) print_node_(p->left, n+1, " ");
unless (p->right == 0) print_node_(p->right, n, " ");
if (p->aux != 0) print_node_(p->aux, n+1, "@ ");
}
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/modernize/UseUncaughtExceptionsCheck.cpp:34:
// DeclRefExpr: warning, no fix-it.
Finder->addMatcher(
declRefExpr(to(functionDecl(hasName(MatchText))), unless(callExpr()))
.bind("decl_ref_expr"),
this);
actcd19/main/l/llvm-toolchain-3.8/llvm-toolchain-3.8_3.8.1-23/clang/unittests/ASTMatchers/ASTMatchersTest.cpp:619:
hasName("X"),
has(recordDecl(hasName("Z"))),
unless(
has(recordDecl(hasName("Y")))));
EXPECT_TRUE(matches("class X { class Z {}; };", ClassXHasNotClassY));
actcd19/main/f/fair/fair_0.5.3-2/src/relay.c:192:
relay_t *rl;
unless(cr) return;
rl = cr->data;
unless(rl) return;
actcd19/main/l/llvm-toolchain-6.0/llvm-toolchain-6.0_6.0.1-10/clang-tools-extra/clang-move/ClangMove.cpp:524:
// declarations will be ignored.
auto AllDeclsInHeader = namedDecl(
unless(ForwardClassDecls), unless(namespaceDecl()),
unless(usingDirectiveDecl()), // using namespace decl.
InOldHeader,
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-6/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp:1120:
EXPECT_TRUE(notMatches(
"struct S { S(); };",
cxxConstructorDecl(isCopyConstructor(), unless(isImplicit()))));
EXPECT_TRUE(notMatches(
"struct S { S(); };",
actcd19/main/f/fair/fair_0.5.3-2/src/fd.c:93:
void fd_write(fd_t *fd, fd_hook_t func, void *data) {
unless(fd) return;
fd->wfunc = func;
fd->wdata = data;
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/clang-tools-extra/clang-tidy/bugprone/ForwardingReferenceOverloadCheck.cpp:82:
// No warning: enable_if as constructor parameter.
parmVarDecl(hasType(isEnableIf())))),
unless(hasParent(functionTemplateDecl(has(templateTypeParmDecl(
// No warning: enable_if as type parameter.
hasDefaultArgument(isEnableIf())))))))
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp:1438:
EXPECT_TRUE(notMatches("char c = ((3));",
varDecl(hasInitializer(ignoringParenImpCasts(
unless(anything()))))));
// These tests verify that ignoringParenAndImplictCasts does not look
// through explicit casts.
actcd19/main/m/mlton/mlton_20100608-5.1/runtime/gc/init.c:154:
die ("@MLton mark-compact-generational-ratio missing argument.");
s->controls.ratios.markCompactGenerational = stringToFloat (argv[i++]);
unless (1.0 < s->controls.ratios.markCompactGenerational)
die ("@MLton mark-compact-generational-ratio argument must be greater than 1.0.");
} else if (0 == strcmp (arg, "mark-compact-ratio")) {
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/abseil/RedundantStrcatCallsCheck.cpp:40:
callee(functionDecl(hasAnyName("::absl::StrCat", "::absl::StrAppend"))));
Finder->addMatcher(
callExpr(CallToStrcat, unless(hasAncestor(CallToEither))).bind("StrCat"),
this);
Finder->addMatcher(CallToStrappend.bind("StrAppend"), this);
actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/clang-tools-extra/clang-tidy/bugprone/MoveForwardingReferenceCheck.cpp:81:
references(templateTypeParmType(hasDeclaration(
templateTypeParmDecl().bind("type-parm-decl")))),
unless(references(qualType(isConstQualified()))))))
.bind("parm-var");
actcd19/main/r/racket/racket_7.2+dfsg1-2/src/racket/src/portfun.c:1099:
return user_get_or_peek_bytes(port, buffer, offset, size,
nonblock, 1, skip,
unless,
NULL);
}
actcd19/main/f/fair/fair_0.5.3-2/src/fd.c:80:
void fd_delete(fd_t *victim) {
unless(victim) return;
avl_unlink_node(&fds, &victim->node);
free(victim);
actcd19/main/r/racket/racket_7.2+dfsg1-2/src/racket/include/scheme.h:1406:
typedef intptr_t (*Scheme_Get_String_Fun)(Scheme_Input_Port *port,
char *buffer, intptr_t offset, intptr_t size,
int nonblock, Scheme_Object *unless);
typedef intptr_t (*Scheme_Peek_String_Fun)(Scheme_Input_Port *port,
char *buffer, intptr_t offset, intptr_t size,
actcd19/main/libl/liblingua-stem-snowball-perl/liblingua-stem-snowball-perl_0.952-3/snowball-code/compiler/driver.c:206:
char * s = o->output_file;
unless (s) {
fprintf(stderr, "Please include the -o option\n");
print_arglist();
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/clang-tools-extra/clang-tidy/utils/ExprMutationAnalyzer.cpp:165:
const auto AsPointerFromArrayDecay =
castExpr(hasCastKind(CK_ArrayToPointerDecay),
unless(hasParent(arraySubscriptExpr())), has(equalsNode(Exp)));
// Used as non-const-ref argument when calling a function.
actcd19/main/l/llvm-toolchain-3.8/llvm-toolchain-3.8_3.8.1-23/clang-tools-extra/clang-tidy/readability/ImplicitBoolCastCheck.cpp:52:
ast_matchers::internal::Matcher<Expr> createExceptionCasesMatcher() {
return expr(anyOf(hasParent(explicitCastExpr()),
allOf(isMacroExpansion(), unless(isNULLMacroExpansion())),
isInTemplateInstantiation(),
hasAncestor(functionTemplateDecl())));