| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | SourceLocationTest.cpp | 215 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 D | ASTContextParentMapTest.cpp | 43 typeLoc(hasParent(typeLoc(hasParent(functionDecl())))))); in TEST() 49 nestedNameSpecifierLoc(hasParent(typeLoc())))); in TEST()
|
| H A D | ASTTypeTraitsTest.cpp | 154 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 D | SPIRVDialect.cpp | 158 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 D | TypeParser.cpp | 26 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 D | default-type-attr-print-parser.td | 28 // 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 D | FindAllSymbols.cpp | 217 typeLoc(isExpansionInMainFile(), in registerMatchers() 223 typeLoc(isExpansionInMainFile(), in registerMatchers() 230 typeLoc(isExpansionInMainFile(), in registerMatchers()
|
| /llvm-project-15.0.7/mlir/lib/AsmParser/ |
| H A D | TypeParser.cpp | 215 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 D | AttributeParser.cpp | 838 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 D | Parser.cpp | 1291 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 D | CleanupCtadCheck.cpp | 32 hasType(autoType()), hasTypeLoc(typeLoc().bind("auto_type_loc")), in CleanupCtadCheckImpl()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/portability/ |
| H A D | StdAllocatorConstCheck.cpp | 35 typeLoc( in registerMatchers()
|
| /llvm-project-15.0.7/clang/lib/Tooling/DumpTool/ |
| H A D | generate_cxx_src_locs.py | 136 for typeLoc in ClassData['typeLocs']: 145 """.format(typeLoc)
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | AvoidCArraysCheck.cpp | 47 typeLoc(hasValidBeginLoc(), hasType(arrayType()), in registerMatchers()
|
| H A D | DeprecatedIosBaseAliasesCheck.cpp | 37 Finder->addMatcher(typeLoc(loc(IoStateType)).bind("TypeLoc"), this); in registerMatchers()
|
| H A D | ReplaceAutoPtrCheck.cpp | 63 Finder->addMatcher(typeLoc(loc(qualType(AutoPtrType, in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | AvoidConstParamsInDecls.cpp | 35 has(typeLoc(forEach(ConstParamDecl)))) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | UpgradeGoogletestCaseCheck.cpp | 191 typeLoc(loc(qualType(typedefType(hasDeclaration(TestCaseTypeAlias)))), in registerMatchers() 200 typeLoc(loc(usingType(hasUnderlyingType( in registerMatchers()
|
| H A D | IntegerTypesCheck.cpp | 61 Finder->addMatcher(typeLoc(loc(isInteger()), in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | RangeSelectorTest.cpp | 477 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 D | TransformerTest.cpp | 541 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 D | Dialect.cpp | 574 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 D | UnnecessaryValueParamCheck.cpp | 78 has(typeLoc(forEach(ExpensiveValueParamDecl))), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/ |
| H A D | ChangeNamespace.cpp | 439 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 D | UseAfterMoveCheck.cpp | 100 return anyOf(hasAncestor(typeLoc()), in inDecltypeOrTemplateArg()
|