/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | OwningMemoryCheck.cpp | 208 diag(DeleteStmt->getBeginLoc(), in handleDeletion() 217 diag(Decl->getBeginLoc(), "variable declared here", DiagnosticIDs::Note) in handleDeletion() 233 diag(LegacyConsumer->getBeginLoc(), in handleLegacyConsumers() 247 diag(ExpectedOwner->getBeginLoc(), in handleExpectedOwner() 266 diag(OwnerAssignment->getBeginLoc(), in handleAssignmentAndInit() 275 diag(OwnerInitialization->getBeginLoc(), in handleAssignmentAndInit() 311 diag(BadOwnerAssignment->getBeginLoc(), in handleAssignmentFromNewOwner() 320 diag(BadOwnerInitialization->getBeginLoc(), in handleAssignmentFromNewOwner() 331 diag(BadOwnerInitialization->getBeginLoc(), in handleAssignmentFromNewOwner() 342 diag(BadOwnerArgument->getBeginLoc(), "initializing non-owner argument of " in handleAssignmentFromNewOwner() [all …]
|
D | PreferMemberInitializerCheck.cpp | 125 if (S->getBeginLoc().isMacroID()) { in check() 127 Lexer::getImmediateMacroName(S->getBeginLoc(), *Result.SourceManager, in check() 155 diag(S->getBeginLoc(), "%0 should be initialized in an in-class" in check() 174 CharSourceRange::getCharRange(S->getBeginLoc(), SemiColonEnd); in check() 179 diag(S->getBeginLoc(), "%0 should be initialized in a member" in check() 185 SourceLocation BodyPos = Ctor->getBody()->getBeginLoc(); in check() 186 SourceLocation NextPos = Ctor->getBeginLoc(); in check() 235 CharSourceRange::getCharRange(S->getBeginLoc(), SemiColonEnd); in check()
|
D | ProTypeCstyleCastCheck.cpp | 45 diag(MatchedCast->getBeginLoc(), in check() 70 MatchedCast->getBeginLoc(), in check() 89 MatchedCast->getBeginLoc(), in check() 97 diag(MatchedCast->getBeginLoc(), in check()
|
D | AvoidGotoCheck.cpp | 21 return Node.getBeginLoc() < Node.getLabel()->getBeginLoc(); in AST_MATCHER() 48 diag(Goto->getLabel()->getBeginLoc(), "label defined here", in check()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | SizeofExpressionCheck.cpp | 285 diag(E->getBeginLoc(), in check() 289 diag(E->getBeginLoc(), "suspicious usage of 'sizeof()' on an expression " in check() 292 diag(E->getBeginLoc(), in check() 295 diag(E->getBeginLoc(), in check() 299 diag(E->getBeginLoc(), in check() 303 diag(E->getBeginLoc(), in check() 307 diag(E->getBeginLoc(), "suspicious usage of 'sizeof(..., ...)'"); in check() 321 diag(E->getBeginLoc(), "suspicious usage of 'sizeof(...)/sizeof(...)';" in check() 326 diag(E->getBeginLoc(), "suspicious usage of 'sizeof(...)/sizeof(...)';" in check() 329 diag(E->getBeginLoc(), in check() [all …]
|
D | RedundantBranchConditionCheck.cpp | 35 SM.isBeforeInTranslationUnit(MutS->getEndLoc(), NextS->getBeginLoc()); in isChangedBefore() 81 auto Diag = diag(InnerIf->getBeginLoc(), "redundant condition %0") << CondVar; in check() 90 SourceLocation IfBegin = InnerIf->getBeginLoc(); in check() 102 SourceLocation IfEnd = Body->getBeginLoc().getLocWithOffset(-1); in check() 106 IfEnd = Body->getBeginLoc(); in check() 111 OtherSide->getBeginLoc().getLocWithOffset(-1); in check() 140 CondOp->getRHS()->getBeginLoc().getLocWithOffset(-1); in check() 142 CondOp->getLHS()->getBeginLoc(), BeforeRHS)); in check()
|
D | SuspiciousStringCompareCheck.cpp | 178 diag(Call->getBeginLoc(), in check() 187 SourceLocation NotLoc = E->getBeginLoc(); in check() 189 diag(Call->getBeginLoc(), in check() 198 diag(Call->getBeginLoc(), in check() 205 diag(Call->getBeginLoc(), "results of function %0 used by operator '%1'") in check() 210 diag(Call->getBeginLoc(), "function %0 has suspicious implicit cast") in check()
|
D | MultipleStatementMacroCheck.cpp | 21 AST_MATCHER(Expr, isInMacro) { return Node.getBeginLoc().isMacroID(); } in AST_MATCHER() 75 SourceLocation OuterLoc = Outer->getBeginLoc(); in check() 79 auto InnerRanges = getExpansionRanges(Inner->getBeginLoc(), Result); in check() 81 auto NextRanges = getExpansionRanges(Next->getBeginLoc(), Result); in check()
|
/external/llvm-project/clang/lib/Sema/ |
D | UsedDeclVisitor.h | 48 asImpl().visitUsedDecl(Node->getBeginLoc(), Node->getCapturedDecl()); in VisitCapturedStmt() 54 E->getBeginLoc(), in VisitCXXBindTemporaryExpr() 61 asImpl().visitUsedDecl(E->getBeginLoc(), E->getOperatorNew()); in VisitCXXNewExpr() 63 asImpl().visitUsedDecl(E->getBeginLoc(), E->getOperatorDelete()); in VisitCXXNewExpr() 69 asImpl().visitUsedDecl(E->getBeginLoc(), E->getOperatorDelete()); in VisitCXXDeleteExpr() 75 asImpl().visitUsedDecl(E->getBeginLoc(), S.LookupDestructor(Record)); in VisitCXXDeleteExpr() 83 asImpl().visitUsedDecl(E->getBeginLoc(), E->getConstructor()); in VisitCXXConstructExpr()
|
D | SemaStmtAsm.cpp | 73 S.Diag(LVal->getBeginLoc(), diag::err_invalid_asm_cast_lvalue) in emitAndFixInvalidAsmCastLValue() 76 S.Diag(LVal->getBeginLoc(), diag::warn_invalid_asm_cast_lvalue) in emitAndFixInvalidAsmCastLValue() 140 S.Diag(E->getBeginLoc(), diag::err_asm_naked_this_ref); in CheckNakedParmReference() 146 S.Diag(DRE->getBeginLoc(), diag::err_asm_naked_parm_ref); in CheckNakedParmReference() 181 S.Diag(E->getBeginLoc(), diag::err_asm_non_addr_value_in_memory_constraint) in checkExprMemoryConstraintCompat() 236 return Clobbers[i]->getBeginLoc(); in getClobberConflictLocation() 273 targetDiag(Literal->getBeginLoc(), in ActOnGCCAsmStmt() 303 Diag(OutputExpr->getBeginLoc(), diag::err_asm_invalid_type) in ActOnGCCAsmStmt() 330 if (RequireCompleteType(OutputExpr->getBeginLoc(), Exprs[i]->getType(), in ActOnGCCAsmStmt() 335 return StmtError(Diag(OutputExpr->getBeginLoc(), in ActOnGCCAsmStmt() [all …]
|
D | AnalysisBasedWarnings.cpp | 116 if (!S.getSourceManager().isInMainFile(AC.getDecl()->getBeginLoc())) in CheckUnreachable() 272 S.Diag(Body->getBeginLoc(), diag::warn_infinite_recursive_function); in checkRecursiveFunction() 672 SourceLocation LBrace = Body->getBeginLoc(), RBrace = Body->getEndLoc(); in CheckFallThroughForBody() 792 CharSourceRange::getCharRange(If->getBeginLoc(), Then->getBeginLoc())); in CreateIfFixit() 802 If->getBeginLoc(), Else->getBeginLoc())); in CreateIfFixit() 816 S.Diag(Use.getUser()->getBeginLoc(), diag::warn_uninit_var) in DiagUninitUse() 828 S.Diag(Use.getUser()->getBeginLoc(), diag::note_uninit_var_use) in DiagUninitUse() 900 SourceRange(BO->getBeginLoc(), BO->getOperatorLoc())); in DiagUninitUse() 962 S.Diag(User->getBeginLoc(), diag::note_uninit_var_use) in DiagUninitUse() 972 S.Diag(Use.getUser()->getBeginLoc(), diag::warn_maybe_uninit_var) in DiagUninitUse() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | ReplaceRandomShuffleCheck.cpp | 61 if (MatchedCallExpr->getBeginLoc().isMacroID()) in check() 67 diag(MatchedCallExpr->getBeginLoc(), in check() 75 auto DiagL = diag(MatchedCallExpr->getBeginLoc(), in check() 93 Diag << FixItHint::CreateInsertion(MatchedDecl->getBeginLoc(), NewName); in check() 96 MatchedCallExpr->getBeginLoc()), in check()
|
D | UseUncaughtExceptionsCheck.cpp | 58 BeginLoc = C->getBeginLoc(); in check() 61 BeginLoc = E->getBeginLoc(); in check() 65 BeginLoc = D->getBeginLoc(); in check() 71 BeginLoc = U->getNameInfo().getBeginLoc(); in check()
|
D | ConcatNestedNamespacesCheck.cpp | 71 diag(Namespaces.front()->getBeginLoc(), in reportDiagnostic() 82 if (!locationsInSameFile(Sources, ND.getBeginLoc(), ND.getRBraceLoc())) in check() 85 if (!Sources.isInMainFile(ND.getBeginLoc())) in check() 96 SourceRange FrontReplacement(Namespaces.front()->getBeginLoc(), in check()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | UniqueptrDeleteReleaseCheck.cpp | 44 if (PtrExpr->getBeginLoc().isMacroID()) in check() 56 diag(DeleteExpr->getBeginLoc(), in check() 60 DeleteExpr->getBeginLoc(), PtrExpr->getBeginLoc())) in check()
|
/external/llvm-project/clang-tools-extra/clang-tidy/google/ |
D | GlobalNamesInHeadersCheck.cpp | 51 if (D->getBeginLoc().isMacroID()) in check() 56 Result.SourceManager->getExpansionLoc(D->getBeginLoc()))) { in check() 59 D->getBeginLoc(), *Result.SourceManager, HeaderFileExtensions)) in check() 73 diag(D->getBeginLoc(), in check()
|
D | ExplicitMakePairCheck.cpp | 57 diag(Call->getBeginLoc(), "for C++11-compatibility, use pair directly") in check() 59 SourceRange(DeclRef->getBeginLoc(), DeclRef->getLAngleLoc()), in check() 62 diag(Call->getBeginLoc(), in check()
|
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/ |
D | StrCatAppendCheck.cpp | 82 diag(Op->getBeginLoc(), "call to 'absl::StrCat' has no effect"); in check() 90 diag(Op->getBeginLoc(), in check() 94 CharSourceRange::getTokenRange(Op->getBeginLoc(), in check() 97 << FixItHint::CreateInsertion(Call->getArg(0)->getBeginLoc(), "&"); in check()
|
/external/llvm-project/clang-tools-extra/clang-tidy/misc/ |
D | ThrowByValueCatchByReferenceCheck.cpp | 86 diag(subExpr->getBeginLoc(), "throw expression throws a pointer; it should " in diagnoseThrowLocations() 129 diag(subExpr->getBeginLoc(), in diagnoseThrowLocations() 149 diag(varDecl->getBeginLoc(), diagMsgCatchReference); in diagnoseCatchLocations() 157 diag(varDecl->getBeginLoc(), diagMsgCatchReference); in diagnoseCatchLocations() 167 diag(varDecl->getBeginLoc(), diagMsgCatchReference); in diagnoseCatchLocations()
|
/external/llvm-project/clang/unittests/Tooling/RecursiveASTVisitorTests/ |
D | LambdaTemplateParams.cpp | 24 Match(D->getName(), D->getBeginLoc()); in VisitTemplateTypeParmDecl() 30 Match(D->getName(), D->getBeginLoc()); in VisitNonTypeTemplateParmDecl() 36 Match(D->getName(), D->getBeginLoc()); in VisitTemplateTemplateParmDecl()
|
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | AddUsing.cpp | 202 if (!IsValidPoint(TLD->getBeginLoc())) in findInsertionPoint() 205 Out.Loc = SM.getExpansionLoc(TLD->getBeginLoc()); in findInsertionPoint() 272 MustInsertAfterLoc = D->getDecl()->getBeginLoc(); in prepare() 296 MustInsertAfterLoc = TDT->getDecl()->getBeginLoc(); in prepare() 298 MustInsertAfterLoc = TD->getBeginLoc(); in prepare() 321 if (SM.isMacroBodyExpansion(QualifierToRemove.getBeginLoc()) || in prepare() 322 !SM.isWrittenInSameFile(QualifierToRemove.getBeginLoc(), in prepare() 337 SM, SM.getSpellingLoc(QualifierToRemove.getBeginLoc()), in apply()
|
/external/llvm-project/clang/include/clang/AST/ |
D | ExprCXX.h | 156 ? getBeginLoc() in getExprLoc() 160 SourceLocation getBeginLoc() const { return Range.getBegin(); } in getBeginLoc() function 223 return getBeginLoc(); in getExprLoc() 335 SourceLocation getBeginLoc() const LLVM_READONLY { in getBeginLoc() function 336 return getDecomposedForm().LHS->getBeginLoc(); in getBeginLoc() 343 return SourceRange(DF.LHS->getBeginLoc(), DF.RHS->getEndLoc()); in getSourceRange() 399 SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } in getBeginLoc() function 688 SourceLocation getBeginLoc() const { in getBeginLoc() function 691 return getArg(0)->getBeginLoc(); in getBeginLoc() 726 SourceLocation getBeginLoc() const { return getLocation(); } in getBeginLoc() function [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/openmp/ |
D | UseDefaultNoneCheck.cpp | 41 diag(Directive->getBeginLoc(), in check() 47 diag(Clause->getBeginLoc(), "existing 'default' clause specified here", in check() 52 diag(Directive->getBeginLoc(), in check()
|
/external/llvm-project/clang-tools-extra/clang-tidy/fuchsia/ |
D | DefaultArgumentsDeclarationsCheck.cpp | 35 diag(D->getBeginLoc(), in check() 41 D->getName().empty() ? D->getBeginLoc() : D->getLocation(); in check() 48 diag(D->getBeginLoc(), in check()
|
/external/llvm-project/clang-tools-extra/clang-tidy/hicpp/ |
D | ExceptionBaseclassCheck.cpp | 45 diag(BadThrow->getSubExpr()->getBeginLoc(), "throwing an exception whose " in check() 52 diag(BadThrow->getSubExpr()->getBeginLoc(), in check() 58 diag(TypeDecl->getBeginLoc(), "type defined here", DiagnosticIDs::Note); in check()
|