Home
last modified time | relevance | path

Searched refs:IsMethod (Results 1 – 20 of 20) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DInsertionPointTests.cpp106 auto IsMethod = [](const Decl *D) { return llvm::isa<CXXMethodDecl>(D); }; in TEST() local
114 EXPECT_EQ(Point({IsMethod, Anchor::Above}, AS_public), Code.point("Method")); in TEST()
115 EXPECT_EQ(Point({IsMethod, Anchor::Below}, AS_public), Code.point("Field")); in TEST()
118 EXPECT_EQ(Point({IsMethod, Anchor::Above}, AS_private), Code.point("method")); in TEST()
119 EXPECT_EQ(Point({IsMethod, Anchor::Below}, AS_private), Code.point("end")); in TEST()
122 EXPECT_EQ(Point({IsMethod, Anchor::Above}, AS_protected), Position{}); in TEST()
123 EXPECT_EQ(Point({IsMethod, Anchor::Below}, AS_protected), Position{}); in TEST()
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-doc/
H A DSerializeTest.cpp158 EConstructor.IsMethod = true; in TEST()
174 Method.IsMethod = true; in TEST()
197 TemplateMethod.IsMethod = true; in TEST()
217 SpecializedTemplateMethod.IsMethod = true; in TEST()
396 FunctionSet.IsMethod = true; in TEST()
409 FunctionGet.IsMethod = true; in TEST()
442 FunctionSetNew.IsMethod = true; in TEST()
455 FunctionGetNew.IsMethod = true; in TEST()
H A DClangDocTest.cpp111 EXPECT_EQ(Expected->IsMethod, Actual->IsMethod); in CheckFunctionInfo()
H A DMergeTest.cpp161 One.IsMethod = true; in TEST()
208 Expected->IsMethod = true; in TEST()
H A DMDGeneratorTest.cpp159 I.IsMethod = true; in TEST()
H A DBitcodeTest.cpp132 I.IsMethod = true; in TEST()
H A DYAMLGeneratorTest.cpp188 I.IsMethod = true; in TEST()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DObjCAutoreleaseWriteChecker.cpp136 bool IsMethod = Match.getNodeAs<ObjCMethodDecl>(IsMethodBind) != nullptr; in emitDiagnostics() local
137 const char *FunctionDescription = IsMethod ? "method" : "function"; in emitDiagnostics()
/llvm-project-15.0.7/clang-tools-extra/clang-doc/
H A DRepresentation.cpp251 if (!IsMethod) in merge()
252 IsMethod = Other.IsMethod; in merge()
H A DSerialize.cpp467 FI.IsMethod = true; in parseBases()
595 Func.IsMethod = true; in emitInfo()
H A DYAMLGenerator.cpp236 IO.mapOptional("IsMethod", I.IsMethod, false); in mapping()
H A DRepresentation.h325 bool IsMethod = false; // Indicates whether this function is a class method. member
H A DBitcodeWriter.cpp544 emitRecord(I.IsMethod, FUNCTION_IS_METHOD); in emitBlock()
H A DBitcodeReader.cpp245 return decodeRecord(R, I->IsMethod, Blob); in parseRecord()
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFIndex.cpp60 looking_for_methods == die.IsMethod()) in ProcessFunctionDIE()
H A DDWARFDIE.h24 bool IsMethod() const;
H A DDWARFDIE.cpp433 bool DWARFDIE::IsMethod() const { in IsMethod() function in DWARFDIE
H A DManualDWARFIndex.cpp285 bool is_method = DWARFDIE(&unit, &die).IsMethod(); in IndexUnitImpl()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmt.cpp4130 bool IsMethod = FD == nullptr; in BuildReturnStmt() local
4132 IsMethod ? cast<NamedDecl>(getCurMethodDecl()) : cast<NamedDecl>(FD); in BuildReturnStmt()
4133 Diag(ReturnLoc, DiagID) << ND << IsMethod; in BuildReturnStmt()
H A DSemaDeclCXX.cpp8510 bool IsMethod = isa<CXXMethodDecl>(FD); in CheckExplicitlyDefaultedComparison() local
8511 if (IsMethod) { in CheckExplicitlyDefaultedComparison()
8539 if (FD->getNumParams() != (IsMethod ? 1 : 2)) { in CheckExplicitlyDefaultedComparison()
8543 << int(IsMethod) << int(DCK); in CheckExplicitlyDefaultedComparison()
8555 bool Ok = !IsMethod; in CheckExplicitlyDefaultedComparison()
8588 << int(DCK) << ParmTy << RefTy << int(!IsMethod) << PlainTy in CheckExplicitlyDefaultedComparison()
8591 assert(!IsMethod && "should know expected type for method"); in CheckExplicitlyDefaultedComparison()
8608 if (IsMethod) { in CheckExplicitlyDefaultedComparison()