Home
last modified time | relevance | path

Searched refs:voidType (Results 1 – 17 of 17) sorted by relevance

/llvm-project/mlir/unittests/Dialect/SPIRV/
H A DDeserializationTest.cpp245 auto voidType = addVoidType(); in TEST_F() local
246 auto fnType = addFunctionType(voidType, {}); in TEST_F()
247 addFunction(voidType, fnType); in TEST_F()
256 auto voidType = addVoidType(); in TEST_F() local
258 auto fnType = addFunctionType(voidType, {i32Type}); in TEST_F()
259 addFunction(voidType, fnType); in TEST_F()
268 auto voidType = addVoidType(); in TEST_F() local
269 auto fnType = addFunctionType(voidType, {}); in TEST_F()
270 addFunction(voidType, fnType); in TEST_F()
281 auto voidType = addVoidType(); in TEST_F() local
[all …]
/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DCastingThroughVoidCheck.cpp23 qualType(unless(hasCanonicalType(pointsTo(voidType())))) in registerMatchers()
28 expr(hasType(qualType(unless(pointsTo(voidType()))) in registerMatchers()
31 qualType(pointsTo(voidType())).bind("void_type"))) in registerMatchers()
H A DStandaloneEmptyCheck.cpp48 using ast_matchers::voidType;
82 callee(functionDecl(hasName("empty"), unless(returns(voidType()))))) in registerMatchers()
89 unless(returns(voidType())))))))) in registerMatchers()
H A DSuspiciousMemsetUsageCheck.cpp26 hasParameter(0, hasType(pointerType(pointee(voidType())))), in registerMatchers()
H A DUnusedReturnValueCheck.cpp179 unless(returns(voidType())), in registerMatchers()
H A DSuspiciousReallocUsageCheck.cpp112 hasParameter(0, hasType(pointerType(pointee(voidType())))), in registerMatchers()
/llvm-project/clang-tools-extra/clang-tidy/performance/
H A DNoexceptSwapCheck.cpp25 parameterCountIs(1U), unless(isConst()), returns(voidType()), in registerMatchers()
35 unless(cxxMethodDecl()), parameterCountIs(2U), returns(voidType()), in registerMatchers()
/llvm-project/clang/unittests/AST/
H A DDeclTest.cpp474 hasParameter(0, hasType(pointerType(pointee(voidType()))))) in TEST()
485 hasParameter(0, hasType(pointerType(pointee(voidType())))), in TEST()
499 hasParameter(0, hasType(pointerType(pointee(voidType()))))) in TEST()
510 hasParameter(0, hasType(pointerType(pointee(voidType())))), in TEST()
/llvm-project/clang-tools-extra/clang-tidy/readability/
H A DAvoidReturnWithVoidValueCheck.cpp33 hasReturnValue(allOf(hasType(voidType()), unless(initListExpr()))), in registerMatchers()
H A DRedundantControlFlowCheck.cpp33 functionDecl(isDefinition(), returns(voidType()), in registerMatchers()
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DUseNodiscardCheck.cpp94 returns(voidType()), in registerMatchers()
H A DUseTransparentFunctorsCheck.cpp29 unless(hasAnyTemplateArgument(refersToType(voidType()))), in registerMatchers()
H A DUseTrailingReturnTypeCheck.cpp388 unless(anyOf(hasTrailingReturn(), returns(voidType()), in registerMatchers()
/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp615 REGISTER_MATCHER(voidType);
/llvm-project/flang/lib/Optimizer/CodeGen/
H A DCodeGen.cpp1060 auto voidType = mlir::LLVM::LLVMVoidType::get(op.getContext()); in convertSubcomponentIndices()
1063 mlir::LLVM::LLVMFunctionType::get(voidType, in convertSubcomponentIndices()
1009 auto voidType = mlir::LLVM::LLVMVoidType::get(op.getContext()); getFree() local
/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h7052 /// functionDecl(returns(voidType()))
7054 AST_MATCHER(Type, voidType) {
7010 AST_MATCHER(Type,voidType) AST_MATCHER() argument
/llvm-project/clang/unittests/ASTMatchers/
H A DASTMatchersNarrowingTest.cpp3662 // FIXME: Add a test for `voidType()` that does not depend on C++. in TEST_P()
3667 cxxMethodDecl(returns(voidType())))); in TEST_P()