Home
last modified time | relevance | path

Searched refs:typeLoc (Results 1 – 25 of 36) sorted by relevance

12

/llvm-project-15.0.7/clang/unittests/AST/
H A DSourceLocationTest.cpp215 EXPECT_TRUE(Verifier.match("int a;", typeLoc())); in TEST()
221 EXPECT_TRUE(Verifier.match("long a;", typeLoc())); in TEST()
235 typeLoc(loc(decltypeType())).bind("target"), Ctx); in TEST()
269 EXPECT_TRUE(Verifier.match("long double a;", typeLoc())); in TEST()
275 EXPECT_TRUE(Verifier.match("double long a;", typeLoc())); in TEST()
281 EXPECT_TRUE(Verifier.match("long int a;", typeLoc())); in TEST()
287 EXPECT_TRUE(Verifier.match("int long a;", typeLoc())); in TEST()
293 EXPECT_TRUE(Verifier.match("unsigned int a;", typeLoc())); in TEST()
299 EXPECT_TRUE(Verifier.match("int unsigned a;", typeLoc())); in TEST()
305 EXPECT_TRUE(Verifier.match("long long a;", typeLoc())); in TEST()
[all …]
H A DASTContextParentMapTest.cpp43 typeLoc(hasParent(typeLoc(hasParent(functionDecl())))))); in TEST()
49 nestedNameSpecifierLoc(hasParent(typeLoc())))); in TEST()
H A DASTTypeTraitsTest.cpp154 EXPECT_TRUE(Verifier.match("void f() {}", typeLoc(loc(functionType())))); in TEST()
207 varDecl(hasName("abc"), hasTypeLoc(typeLoc().bind("tl")))), in TEST()
222 hasTypeLoc(typeLoc().bind("ptl")))), in TEST()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVDialect.cpp158 SMLoc typeLoc = parser.getCurrentLocation(); in parseAndVerifyType() local
174 parser.emitError(typeLoc, in parseAndVerifyType()
181 parser.emitError(typeLoc, "only 1-D vector allowed but found ") << t; in parseAndVerifyType()
191 parser.emitError(typeLoc, "cannot use ") in parseAndVerifyType()
202 SMLoc typeLoc = parser.getCurrentLocation(); in parseAndVerifyMatrixType() local
208 parser.emitError(typeLoc, "only 1-D vector allowed but found ") << t; in parseAndVerifyMatrixType()
212 parser.emitError(typeLoc, in parseAndVerifyMatrixType()
220 parser.emitError(typeLoc, "matrix columns' elements must be of " in parseAndVerifyMatrixType()
226 parser.emitError(typeLoc, "matrix must be composed using vector " in parseAndVerifyMatrixType()
238 SMLoc typeLoc = parser.getCurrentLocation(); in parseAndVerifySampledImageType() local
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Quant/IR/
H A DTypeParser.cpp26 auto typeLoc = parser.getCurrentLocation(); in parseStorageType() local
41 parser.emitError(typeLoc, "illegal storage type prefix"); in parseStorageType()
45 parser.emitError(typeLoc, "expected storage type width"); in parseStorageType()
56 parser.emitError(typeLoc, "illegal storage type size: ") in parseStorageType()
97 auto typeLoc = parser.getCurrentLocation(); in parseExpressedTypeAndRange() local
101 parser.emitError(typeLoc, "expecting float expressed type"); in parseExpressedTypeAndRange()
108 parser.emitError(typeLoc, "calibrated values must be present"); in parseExpressedTypeAndRange()
/llvm-project-15.0.7/mlir/test/mlir-tblgen/
H A Ddefault-type-attr-print-parser.td28 // ATTR: ::llvm::SMLoc typeLoc = parser.getCurrentLocation();
36 // ATTR: parser.emitError(typeLoc) << "unknown attribute `"
56 // TYPE: ::llvm::SMLoc typeLoc = parser.getCurrentLocation();
62 // TYPE: parser.emitError(typeLoc) << "unknown type `"
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/
H A DFindAllSymbols.cpp217 typeLoc(isExpansionInMainFile(), in registerMatchers()
223 typeLoc(isExpansionInMainFile(), in registerMatchers()
230 typeLoc(isExpansionInMainFile(), in registerMatchers()
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DTypeParser.cpp215 auto typeLoc = getToken().getLoc(); in parseMemRefType() local
222 return emitError(typeLoc, "invalid memref element type"), nullptr; in parseMemRefType()
471 auto typeLoc = getToken().getLoc(); in parseVectorType() local
477 return emitError(typeLoc, "vector elements must be int/index/float type"), in parseVectorType()
H A DAttributeParser.cpp838 auto typeLoc = getToken().getLoc(); in parseDenseArrayAttr() local
874 emitError(typeLoc, "expected i8, i16, i32, or i64 but got: ") << type; in parseDenseArrayAttr()
892 emitError(typeLoc, "expected f32 or f64 but got: ") << type; in parseDenseArrayAttr()
896 emitError(typeLoc, "expected integer or float type, got: ") << type; in parseDenseArrayAttr()
H A DParser.cpp1291 Location typeLoc = result.location; in parseGenericOperationAfterOpName() local
1296 typeLoc = getEncodedSourceLocation(getToken().getLoc()); in parseGenericOperationAfterOpName()
1302 return mlir::emitError(typeLoc, "expected function type"); in parseGenericOperationAfterOpName()
1313 return mlir::emitError(typeLoc, "expected ") in parseGenericOperationAfterOpName()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DCleanupCtadCheck.cpp32 hasType(autoType()), hasTypeLoc(typeLoc().bind("auto_type_loc")), in CleanupCtadCheckImpl()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/portability/
H A DStdAllocatorConstCheck.cpp35 typeLoc( in registerMatchers()
/llvm-project-15.0.7/clang/lib/Tooling/DumpTool/
H A Dgenerate_cxx_src_locs.py136 for typeLoc in ClassData['typeLocs']:
145 """.format(typeLoc)
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DAvoidCArraysCheck.cpp47 typeLoc(hasValidBeginLoc(), hasType(arrayType()), in registerMatchers()
H A DDeprecatedIosBaseAliasesCheck.cpp37 Finder->addMatcher(typeLoc(loc(IoStateType)).bind("TypeLoc"), this); in registerMatchers()
H A DReplaceAutoPtrCheck.cpp63 Finder->addMatcher(typeLoc(loc(qualType(AutoPtrType, in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DAvoidConstParamsInDecls.cpp35 has(typeLoc(forEach(ConstParamDecl)))) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DUpgradeGoogletestCaseCheck.cpp191 typeLoc(loc(qualType(typedefType(hasDeclaration(TestCaseTypeAlias)))), in registerMatchers()
200 typeLoc(loc(usingType(hasUnderlyingType( in registerMatchers()
H A DIntegerTypesCheck.cpp61 Finder->addMatcher(typeLoc(loc(isInteger()), in registerMatchers()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DRangeSelectorTest.cpp477 Code, varDecl(hasName("a"), hasTypeLoc(typeLoc().bind(CtorTy)))); in TEST()
481 Code, cxxFunctionalCastExpr(hasTypeLoc(typeLoc().bind(CtorTy)))); in TEST()
485 Code, cxxTemporaryObjectExpr(hasTypeLoc(typeLoc().bind(CtorTy)))); in TEST()
H A DTransformerTest.cpp541 auto IntToChar = makeRule(typeLoc(loc(qualType(isInteger(), builtinType()))), in TEST_F()
582 makeRule(typeLoc(loc(qualType(isInteger(), builtinType()))).bind("loc"), in TEST_F()
587 typeLoc().bind("parmType"))))), in TEST_F()
684 makeRule(typeLoc(loc(qualType(isInteger(), builtinType()))).bind("loc"), in TEST_F()
690 hasParameter(0, varDecl(hasTypeLoc(typeLoc().bind("parmType"))))), in TEST_F()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DDialect.cpp574 SMLoc typeLoc = parser.getCurrentLocation(); in parseType() local
581 parser.emitError(typeLoc, "element type for a struct must either " in parseType()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DUnnecessaryValueParamCheck.cpp78 has(typeLoc(forEach(ExpensiveValueParamDecl))), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/
H A DChangeNamespace.cpp439 typeLoc(IsInMovedNs, in registerMatchers()
441 unless(anyOf(hasParent(typeLoc(loc(qualType( in registerMatchers()
472 hasAncestor(typeLoc(loc(qualType(hasDeclaration( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUseAfterMoveCheck.cpp100 return anyOf(hasAncestor(typeLoc()), in inDecltypeOrTemplateArg()

12