Home
last modified time | relevance | path

Searched refs:isConst (Results 1 – 25 of 61) sorted by relevance

123

/llvm-project-15.0.7/llvm/include/llvm/XRay/
H A DGraph.h198 template <bool isConst, bool isOut> class InOutEdgeView {
200 using iterator = NeighborEdgeIteratorT<isConst, isOut>;
202 using GraphT = std::conditional_t<isConst, const Graph, Graph>;
204 std::conditional_t<isConst, const EdgeMapT, EdgeMapT>;
273 template <bool isConst> class VertexView {
276 std::conditional_t<isConst, ConstVertexIterator, VertexIterator>;
278 using GraphT = std::conditional_t<isConst, const Graph, Graph>;
310 template <bool isConst> class EdgeView {
313 std::conditional_t<isConst, ConstEdgeIterator, EdgeIterator>;
315 using GraphT = std::conditional_t<isConst, const Graph, Graph>;
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DGlobalMerge.cpp161 Module &M, bool isConst, unsigned AddrSpace) const;
166 const BitVector &GlobalSet, Module &M, bool isConst,
221 Module &M, bool isConst, unsigned AddrSpace) const { in doMerge() argument
235 return doMerge(Globals, AllGlobals, M, isConst, AddrSpace); in doMerge()
408 return doMerge(Globals, AllGlobals, M, isConst, AddrSpace); in doMerge()
431 Changed |= doMerge(Globals, UGS.Globals, M, isConst, AddrSpace); in doMerge()
438 const BitVector &GlobalSet, Module &M, bool isConst, in doMerge() argument
517 M, MergedTy, isConst, MergedLinkage, MergedInit, MergedName, nullptr, in doMerge()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnconventionalAssignOperatorCheck.cpp52 cxxMethodDecl(IsSelfAssign, anyOf(isConst(), isVirtual())).bind("cv"), in registerMatchers()
88 << !Method->isConst(); in check()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp272 const auto NonConstMethod = cxxMethodDecl(unless(isConst())); in findDirectMutation()
481 anyOf(allOf(hasMethod(allOf(hasName("begin"), unless(isConst()))), in findRangeLoopMutation()
482 unless(hasMethod(allOf(hasName("begin"), isConst())))), in findRangeLoopMutation()
483 allOf(hasMethod(allOf(hasName("end"), unless(isConst()))), in findRangeLoopMutation()
484 unless(hasMethod(allOf(hasName("end"), isConst()))))); in findRangeLoopMutation()
H A DIssueHash.cpp64 if (TargetT->isConst()) in GetSignature()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSizeofContainerCheck.cpp27 isConst()))))))))))) in registerMatchers()
H A DAssertSideEffectCheck.cpp66 Result &= !MethodDecl->isConst(); in AST_MATCHER_P2()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DSemanticHighlighting.cpp166 bool isConst(QualType T) { in isConst() function
173 return isConst(AT->getElementType()); in isConst()
174 if (isConst(T->getPointeeType())) in isConst()
182 bool isConst(const Decl *D) { in isConst() function
187 if (isConst(llvm::cast<ValueDecl>(D)->getType())) in isConst()
199 if (CMD->isConst()) in isConst()
840 if (isConst(Decl)) in getSemanticHighlightings()
/llvm-project-15.0.7/mlir/lib/TableGen/
H A DClass.cpp122 if (isConst()) in writeDeclTo()
139 if (isConst()) in writeDefTo()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DContainerSizeEmptyCheck.cpp102 has(cxxMethodDecl(isConst(), parameterCountIs(0), isPublic(), in registerMatchers()
107 has(cxxMethodDecl(isConst(), parameterCountIs(0), isPublic(), in registerMatchers()
H A DConvertMemberFunctionsToStatic.cpp144 if (Definition->isConst()) { in check()
H A DMakeMemberFunctionConstCheck.cpp226 isExpansionInSystemHeader(), isVirtual(), isConst(), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseNodiscardCheck.cpp94 allOf(isConst(), isDefinitionOrInline(), in registerMatchers()
H A DLoopConvertCheck.cpp258 hasMethod(cxxMethodDecl(hasName("begin"), isConst())), in makePseudoArrayLoopMatcher()
260 isConst())))) // hasDeclaration in makePseudoArrayLoopMatcher()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DBuiltins.h110 bool isConst(unsigned ID) const { in isConst() function
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DDeclRefExprUtils.cpp49 auto ConstMethodCallee = callee(cxxMethodDecl(isConst())); in constReferenceDeclRefExprs()
/llvm-project-15.0.7/flang/include/flang/Lower/
H A DConvertExpr.h53 mlir::StringAttr linkage, bool isConst,
H A DPFTBuilder.h45 template <bool isConst, typename... A>
49 using BaseType = std::conditional_t<isConst, const B, B>;
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DInefficientVectorOperationCheck.cpp176 cxxMethodDecl(matchesName("::add_"), unless(isConst())); in registerMatchers()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DPointer.h244 bool isConst() const { in isConst() function
/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/
H A DFIRBuilder.h179 mlir::Attribute value = {}, bool isConst = false);
182 llvm::StringRef name, bool isConst,
/llvm-project-15.0.7/clang/lib/Tooling/DumpTool/
H A DASTSrcLocProcessor.cpp147 return cxxMethodDecl(isPublic(), parameterCountIs(0), isConst(), in CaptureMethods()
/llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/
H A DRecordName.cpp186 if (Ptr.isConst()) in visitKnownRecord()
/llvm-project-15.0.7/flang/lib/Optimizer/Builder/
H A DFIRBuilder.cpp241 mlir::Attribute value, bool isConst) { in createGlobal() argument
247 auto glob = create<fir::GlobalOp>(loc, name, isConst, type, value, linkage); in createGlobal()
253 mlir::Location loc, mlir::Type type, llvm::StringRef name, bool isConst, in createGlobal() argument
260 auto glob = create<fir::GlobalOp>(loc, name, isConst, type, mlir::Attribute{}, in createGlobal()
/llvm-project-15.0.7/clang/lib/AST/
H A DODRHash.cpp551 AddBoolean(Method->isConst()); in AddFunctionDecl()
892 Hash.AddBoolean(T->isConst()); in VisitFunctionType()

123