Home
last modified time | relevance | path

Searched refs:hasInitializer (Results 1 – 25 of 119) sorted by relevance

12345

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DStringviewNullptrCheck.cpp115 hasInitializer(ignoringImpCasts( in StringviewNullptrCheckImpl()
124 hasInitializer(cxxConstructExpr( in StringviewNullptrCheckImpl()
133 hasInitializer(cxxConstructExpr( in StringviewNullptrCheckImpl()
144 hasInitializer(cxxConstructExpr( in StringviewNullptrCheckImpl()
186 hasInitializer(ignoringImpCasts( in StringviewNullptrCheckImpl()
194 hasInitializer(cxxConstructExpr( in StringviewNullptrCheckImpl()
H A DMisplacedOperatorInStrlenInAllocCheck.cpp50 hasInitializer(ignoringParenImpCasts( in registerMatchers()
54 hasInitializer(ignoringParenImpCasts( in registerMatchers()
H A DDanglingHandleCheck.cpp111 hasInitializer( in registerMatchersForVariables()
122 hasInitializer(exprWithCleanups( in registerMatchersForVariables()
H A DStringConstructorCheck.cpp73 hasInitializer(ignoringParenImpCasts(BoundStringLiteral))); in registerMatchers()
77 hasInitializer(ignoringParenImpCasts(BoundStringLiteral))); in registerMatchers()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DGlobalVariable.h91 inline bool hasInitializer() const { return !isDeclaration(); } in hasInitializer() function
110 return hasInitializer() && in hasDefinitiveInitializer()
136 assert(hasInitializer() && "GV doesn't have initializer!"); in getInitializer()
140 assert(hasInitializer() && "GV doesn't have initializer!"); in getInitializer()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersTraversalTest.cpp2207 varDecl(hasInitializer(anyOf( in TEST()
2233 varDecl(hasInitializer( in TEST()
2319 auto Matcher = varDecl(hasInitializer(floatLiteral())); in TEST()
2514 hasInitializer( in TEST()
3562 auto Matcher = varDecl(hasInitializer(floatLiteral())); in TEST()
4510 varDecl(hasInitializer(ignoringImpCasts( in TEST()
4514 varDecl(hasInitializer(ignoringImpCasts( in TEST()
4550 varDecl(hasInitializer(ignoringImpCasts( in TEST()
4558 varDecl(hasInitializer(ignoringParenCasts( in TEST()
4561 varDecl(hasInitializer(ignoringParenCasts( in TEST()
[all …]
H A DASTMatchersNodeTest.cpp508 StatementMatcher Reference = declRefExpr(to(varDecl(hasInitializer( in TEST_P()
1052 varDecl(hasInitializer(parenListExpr(has(unaryOperator())))))); in TEST_P()
1057 varDecl(hasInitializer(stmtExpr())))); in TEST_P()
1315 traverse(TK_AsIs, varDecl(hasInitializer(implicitCastExpr()))))); in TEST_P()
1319 traverse(TK_AsIs, varDecl(hasInitializer(implicitCastExpr()))))); in TEST_P()
1332 notMatches("int x = 0;", varDecl(hasInitializer(implicitCastExpr())))); in TEST_P()
1336 varDecl(hasInitializer(implicitCastExpr())))); in TEST_P()
1344 varDecl(hasInitializer(implicitCastExpr())))); in TEST_P()
1346 varDecl(hasInitializer(implicitCastExpr())))); in TEST_P()
2280 varDecl(hasName("cc"), hasInitializer(integerLiteral(equals(1)))))))); in TEST_P()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DLowerEmuTLS.cpp100 if (GV->hasInitializer()) { in addEmuTlsVar()
127 if (!GV->hasInitializer()) in addEmuTlsVar()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseAutoCheck.cpp216 unless(hasInitializer(ignoringParenImpCasts(cxxNewExpr()))), in makeDeclWithNewMatcher()
233 unless(has(varDecl(unless(hasInitializer(explicitCastExpr())))))) in makeDeclWithCastMatcher()
254 unless(hasInitializer(ignoringImplicit(TemplateCall))))))) in makeDeclWithTemplateCastMatcher()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DDeclRefExprUtils.cpp75 hasInitializer(ignoringImpCasts(DeclRefToVar)))))), in constReferenceDeclRefExprs()
81 hasInitializer(ignoringImpCasts(unaryOperator( in constReferenceDeclRefExprs()
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceGlobalVarInitializers.cpp24 if (GV.hasInitializer() && !O.shouldKeep()) { in extractGVsFromModule()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DDefaultArgumentsCheck.cpp22 hasAnyParameter(parmVarDecl(hasInitializer(expr())))) in registerMatchers()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DRefactoringCallbacksTest.cpp111 varDecl(hasInitializer(expr().bind("init"))).bind("decl"), in TEST()
122 varDecl(hasInitializer(expr().bind("init"))).bind("decl"), in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DCleanupCtadCheck.cpp33 hasInitializer(hasDescendant( in CleanupCtadCheckImpl()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DConstCorrectnessCheck.cpp88 allOf(isLocal(), hasInitializer(anything()), in registerMatchers()
90 hasInitializer(isInstantiationDependent()), in registerMatchers()
/llvm-project-15.0.7/llvm/lib/Target/DirectX/
H A DDirectXAsmPrinter.cpp44 if (!GV->hasInitializer() || GV->hasImplicitSection()) in emitGlobalVariable()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DInterfacesGlobalInitCheck.cpp32 hasInitializer(expr(hasDescendant( in registerMatchers()
H A DOwningMemoryCheck.cpp97 varDecl(hasInitializer(unless(ConsideredOwner)), IsOwnerType) in registerMatchers()
128 traverse(TK_AsIs, namedDecl(varDecl(allOf(hasInitializer(CreatesOwner), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DInefficientVectorOperationCheck.cpp99 varDecl(hasInitializer(DefaultConstructorCall)).bind(VarDeclName); in addMatcher()
111 declStmt(hasSingleDecl(varDecl(hasInitializer(integerLiteral(equals(0)))) in addMatcher()
H A DImplicitConversionInLoopCheck.cpp55 hasInitializer( in registerMatchers()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DElimAvailExtern.cpp40 if (GV.hasInitializer()) { in eliminateAvailableExternally()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/
H A DPreferRegisterOverUnsignedCheck.cpp27 varDecl(hasInitializer(exprWithCleanups( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DIdDependentBackwardBranchCheck.cpp34 anyOf(declStmt(hasDescendant(varDecl(hasInitializer(ThreadID)) in registerMatchers()
49 varDecl(hasInitializer(RefVarOrField)).bind("pot_tid_var"))), in registerMatchers()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DMangling.cpp57 if (GV->hasInitializer()) { in add()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUCtorDtorLowering.cpp53 if (!GV || !GV->hasInitializer()) in createInitOrFiniKernel()

12345