Home
last modified time | relevance | path

Searched refs:isUsed (Results 1 – 25 of 39) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnusedParametersCheck.cpp186 if (Param->isUsed() || Param->isReferenced() || !Param->getDeclName() || in check()
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DMCSymbol.h218 bool isUsed() const { return IsUsed; } in isUsed() function
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DIRSymtab.h202 bool isUsed() const { return (Flags >> S::FB_used) & 1; } in isUsed() function
/llvm-project-15.0.7/llvm/include/llvm/LTO/
H A DLTO.h154 using irsymtab::Symbol::isUsed;
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTWriterDecl.cpp310 Record.push_back(D->isUsed(false)); in VisitDecl()
458 !D->isUsed(false) && in VisitEnumDecl()
495 !D->isUsed(false) && in VisitRecordDecl()
805 !D->isUsed(false) && in VisitObjCIvarDecl()
939 !D->isUsed(false) && in VisitFieldDecl()
1069 !D->isUsed(false) && in VisitVarDecl()
1118 !D->isUsed(false) && in VisitParmVarDecl()
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DMacroInfo.h225 bool isUsed() const { return IsUsed; } in isUsed() function
/llvm-project-15.0.7/clang/test/AST/
H A Dast-dump-stmt-json.m74 // CHECK-NEXT: "isUsed": true,
307 // CHECK-NEXT: "isUsed": true,
H A Dast-dump-expr-json.m297 // CHECK-NEXT: "isUsed": true,
764 // CHECK-NEXT: "isUsed": true,
951 // CHECK-NEXT: "isUsed": true,
1973 // CHECK-NEXT: "isUsed": true,
1999 // CHECK-NEXT: "isUsed": true,
2864 // CHECK-NEXT: "isUsed": true,
4819 // CHECK-NEXT: "isUsed": true,
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclBase.cpp444 bool Decl::isUsed(bool CheckUsedAttr) const { in isUsed() function in Decl
460 if (isUsed(false)) in markUsed()
H A DJSONNodeDumper.cpp111 if (D->isUsed()) in Visit()
H A DTextNodeDumper.cpp274 if (D->isUsed()) in Visit()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterTest.cpp1947 EXPECT_FALSE(Imported2->isUsed(false)); in TEST_P()
1955 EXPECT_TRUE(Imported2->isUsed(false)); in TEST_P()
1965 EXPECT_FALSE(ExistingD->isUsed(false)); in TEST_P()
1973 EXPECT_TRUE(ExistingD->isUsed(false)); in TEST_P()
1989 EXPECT_FALSE(ExistingD->isUsed(false)); in TEST_P()
2003 ASSERT_TRUE(FromD->isUsed(false)); in TEST_P()
2006 EXPECT_TRUE(ExistingD->isUsed(false)); in TEST_P()
2017 ASSERT_FALSE(Imported1->isUsed(false)); in TEST_P()
2023 EXPECT_TRUE(Imported2->isUsed(false)); in TEST_P()
/llvm-project-15.0.7/clang/lib/Lex/
H A DPPDirectives.cpp3117 if (!OtherMI->isUsed() && OtherMI->isWarnIfUnused()) in HandleDefineDirective()
3140 assert(!MI->isUsed()); in HandleDefineDirective()
3199 if (!MI->isUsed() && MI->isWarnIfUnused()) in HandleUndefDirective()
H A DPPMacroExpansion.cpp1946 if (MI->isWarnIfUnused() && !MI->isUsed()) in markMacroAsUsed()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp480 if (DirectivesOnly && !MI->isUsed()) { in MacroDefined()
/llvm-project-15.0.7/llvm/lib/LTO/
H A DLTO.cpp572 if (Res.LinkerRedefined || Res.VisibleToRegularObj || Sym.isUsed() || in addModuleToGlobalRes()
583 (Res.VisibleToRegularObj || Sym.isUsed() || !InSummary); in addModuleToGlobalRes()
H A DThinLTOCodeGenerator.cpp297 if (Sym.isUsed()) in addUsedSymbolToPreservedGUID()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSema.cpp719 if (D->getMostRecentDecl()->isUsed()) in ShouldRemoveFromUnused()
1301 if (!D || D->isInvalidDecl() || D->getPreviousDecl() || !D->isUsed()) in ActOnEndOfTranslationUnit()
H A DSemaAttr.cpp849 if (VD->isUsed()) in ActOnPragmaUnused()
H A DSemaDecl.cpp1858 if (D->isInvalidDecl() || D->isUsed() || D->hasAttr<UnusedAttr>()) in ShouldWarnIfUnusedFileScopedDecl()
1951 } else if (D->isReferenced() || D->isUsed()) { in ShouldDiagnoseUnusedDecl()
3153 } else if (Old->isUsed()) { in mergeDeclAttributes()
3791 Old->isUsed(false) && in MergeFunctionDecl()
4240 if (Old->getMostRecentDecl()->isUsed(false)) in MergeCompatibleFunctionDecls()
4611 if (!Old->isInline() && New->isInline() && Old->isUsed(false) && in MergeVarDecl()
4656 if (Old->getMostRecentDecl()->isUsed(false)) in MergeVarDecl()
6977 if (OldDecl->isUsed()) in checkDLLAttributeRedeclaration()
10869 if (OldFD && CausesMV && OldFD->isUsed(false)) in CheckMultiVersionAdditionalRules()
11241 if (OldFD->isUsed(false)) { in CheckMultiVersionFunction()
/llvm-project-15.0.7/lld/COFF/
H A DInputFiles.cpp1076 if (objSym.isUsed()) in parse()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGDecl.cpp2627 if (!LangOpts.OpenMP || (!LangOpts.EmitAllDecls && !D->isUsed())) in EmitOMPDeclareReduction()
2635 (!LangOpts.EmitAllDecls && !D->isUsed())) in EmitOMPDeclareMapper()
H A DCGCUDANV.cpp1168 Info.D->isUsed() && !Info.D->hasAttr<UsedAttr>()) { in finalizeModule()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclBase.h574 bool isUsed(bool CheckUsedAttr = true) const;
/llvm-project-15.0.7/llvm/include/llvm/TableGen/
H A DRecord.h1530 bool isUsed() const { return IsUsed; } in isUsed() function

12