|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/include/clang/AST/Decl.h 504 bool isGnuLocal() const { return LocStart != getLocation(); }
508 return SourceRange(LocStart, getLocation());
1953 return DeclarationNameInfo(getDeclName(), getLocation(), DNLoc);
2981 return SourceRange(LocStart, getLocation());
2983 return SourceRange(getLocation());
3940 SourceLocation getAsmLoc() const { return getLocation(); }
4031 SourceLocation getCaretLocation() const { return getLocation(); }
4335 SourceLocation getExportLoc() const { return getLocation(); }
4346 return decls_empty() ? getLocation() : decls_begin()->getEndLoc();
4350 return SourceRange(getLocation(), getEndLoc());
tools/clang/include/clang/AST/DeclBase.h 418 return SourceRange(getLocation(), getLocation());
418 return SourceRange(getLocation(), getLocation());
tools/clang/include/clang/AST/DeclCXX.h 103 SourceLocation getAccessSpecifierLoc() const { return getLocation(); }
2816 return decls_empty() ? getLocation() : decls_begin()->getEndLoc();
2923 SourceLocation getIdentLocation() const { return getLocation(); }
2935 return SourceRange(UsingLoc, getLocation());
3035 SourceLocation getAliasLoc() const { return getLocation(); }
3323 return DeclarationNameInfo(getDeclName(), getLocation(), DNLoc);
3438 InstantiatedFrom ? InstantiatedFrom->getLocation()
3544 return DeclarationNameInfo(getDeclName(), getLocation(), DNLoc);
3634 return DeclarationNameInfo(getDeclName(), getLocation());
3703 return SourceRange(getLocation(), getRParenLoc());
tools/clang/include/clang/AST/DeclFriend.h 170 return SourceRange(getFriendLoc(), getLocation());
tools/clang/include/clang/AST/DeclObjC.h 282 SourceLocation getBeginLoc() const LLVM_READONLY { return getLocation(); }
285 return SourceRange(getLocation(), getEndLoc());
949 return SourceRange(AtLoc, getLocation());
1318 return SourceRange(getAtStartLoc(), getLocation());
1879 return getLocation();
2235 return SourceRange(getAtStartLoc(), getLocation());
2845 return IvarLoc.isValid() && IvarLoc != getLocation();
tools/clang/include/clang/AST/DeclTemplate.h 1587 SourceLocation End = getLocation();
tools/clang/include/clang/AST/TypeLoc.h 713 (D->getIdentifier() == nullptr || D->getLocation() == getNameLoc());
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h 239 SourceLocation Loc = D->getLocation();
243 return SM.isInSystemHeader(D->getLocation());
tools/clang/include/clang/Tooling/Refactoring/RecursiveSymbolVisitor.h 44 return isa<CXXConversionDecl>(D) ? true : visit(D, D->getLocation());
tools/clang/lib/ARCMigrate/ObjCMT.cpp 186 FileID FID = PP.getSourceManager().getFileID(D->getLocation());
679 IDecl->getSuperClass() ? IDecl->getSuperClassLoc() : IDecl->getLocation();
927 PP.getSourceManager().getFileID(TypedefDcl->getLocation());
929 PP.getSourceManager().getFileID(EnumDcl->getLocation());
1448 FileId = PP.getSourceManager().getFileID(Decl->getLocation());
1454 FileId = PP.getSourceManager().getFileID(Decl->getLocation());
1501 commit.insertBefore(pd->getLocation(), "CF_CONSUMED ");
1507 commit.insertBefore(pd->getLocation(), "NS_CONSUMED ");
1627 commit.insertBefore(pd->getLocation(), "CF_CONSUMED ");
1857 FileID FID = PP.getSourceManager().getFileID((*D)->getLocation());
tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp 263 return checkRef(E->getLocation(), E->getDecl()->getLocation());
267 return checkRef(TL.getBeginLoc(), TL.getTypedefNameDecl()->getLocation());
271 return checkRef(TL.getBeginLoc(), TL.getDecl()->getLocation());
tools/clang/lib/ARCMigrate/TransGCAttrs.cpp 162 if (!isInMainFile(I->getLocation()))
292 ATLs[i].second->getLocation());
tools/clang/lib/ARCMigrate/TransProperties.cpp 210 I->IvarD->getLocation());
232 Pass.TA.insert(I->IvarD->getLocation(), toWhich);
239 I->IvarD->getLocation());
257 Pass.TA.insert(I->IvarD->getLocation(),
264 I->IvarD->getLocation());
267 I->ImplD->getLocation());
tools/clang/lib/ARCMigrate/TransProtectedScope.cpp 183 if (isInRange(DRE->getDecl()->getLocation(), info.Range) &&
tools/clang/lib/AST/ASTContext.cpp 169 const SourceLocation DeclLoc = D->getLocation();
470 SourceMgr.getDecomposedLoc((*Decls.begin())->getLocation()).first;
4449 Expr::getValueKindForType(NTTP->getType()), NTTP->getLocation());
4452 E = new (*this) PackExpansionExpr(DependentTy, E, NTTP->getLocation(),
tools/clang/lib/AST/ASTImporter.cpp 1561 Importer.FromDiag(D->getLocation(), diag::err_unsupported_ast_node)
1577 if (Error Err = importInto(Loc, D->getLocation()))
2083 Importer.FromDiag(D->getLocation(), diag::err_unsupported_ast_node)
2089 Importer.FromDiag(D->getLocation(), diag::err_unsupported_ast_node)
2101 ExpectedSLoc LocOrErr = import(D->getLocation());
2124 ExpectedSLoc LocOrErr = import(D->getLocation());
2161 D->getLocation(), D->getAssertExpr(), D->getMessage(), D->getRParenLoc()))
3066 Importer.ToDiag(FoundFunction->getLocation(), diag::note_odr_value_here)
3409 Importer.ToDiag(FoundField->getLocation(), diag::note_odr_value_here)
3480 Importer.ToDiag(FoundField->getLocation(), diag::note_odr_value_here)
3569 auto LocationOrErr = import(D->getLocation());
3611 Importer.ToDiag(FoundIvar->getLocation(), diag::note_odr_value_here)
3724 Importer.ToDiag(FoundVar->getLocation(), diag::note_odr_value_here)
3798 if (auto Imp = importSeq(D->getDeclName(), D->getLocation(), D->getType()))
3844 D->getDeclName(), D->getLocation(), D->getType(), D->getInnerLocStart(),
3900 Importer.ToDiag(FoundMethod->getLocation(),
3912 Importer.ToDiag(FoundMethod->getLocation(),
3925 Importer.FromDiag((*P)->getLocation(),
3929 Importer.ToDiag((*FoundP)->getLocation(), diag::note_odr_value_here)
3941 Importer.ToDiag(FoundMethod->getLocation(),
4016 D->getVarianceLoc(), D->getLocation(), D->getColonLoc(),
4237 ExpectedSLoc LangLocOrErr = import(D->getLocation());
4483 Importer.ToDiag(To->getLocation(),
4490 Importer.ToDiag(To->getLocation(),
4497 Importer.FromDiag(From->getLocation(),
4675 D->getLocation(), D->getAtStartLoc(), D->getCategoryNameLoc()))
4721 D->getLocation(), D->getAtStartLoc(), D->getSuperClassLoc(),
4752 Importer.ToDiag(Impl->getLocation(),
4758 Importer.ToDiag(Impl->getLocation(),
4762 Importer.ToDiag(Impl->getLocation(),
4765 Importer.FromDiag(D->getLocation(),
4769 Importer.FromDiag(D->getLocation(),
4803 Importer.ToDiag(FoundProp->getLocation(), diag::note_odr_value_here)
4889 D->getBeginLoc(), D->getLocation(), D->getPropertyIvarDeclLoc()))
4907 Importer.ToDiag(ToImpl->getLocation(),
4912 Importer.FromDiag(D->getLocation(),
4954 ExpectedSLoc LocationOrErr = import(D->getLocation());
4975 D->getDeclName(), D->getLocation(), D->getType(), D->getTypeSourceInfo(),
5003 ExpectedSLoc LocationOrErr = import(D->getLocation());
5216 ExpectedSLoc IdLocOrErr = import(D->getLocation());
5437 auto IdLocOrErr = import(D->getLocation());
tools/clang/lib/AST/ASTStructuralEquivalence.cpp 964 Owner2->getLocation(),
967 Context.Diag2(Field2->getLocation(), diag::note_odr_field_name)
969 Context.Diag1(Field1->getLocation(), diag::note_odr_field_name)
979 Owner2->getLocation(),
982 Context.Diag2(Field2->getLocation(), diag::note_odr_field)
984 Context.Diag1(Field1->getLocation(), diag::note_odr_field)
993 Owner2->getLocation(),
997 Context.Diag1(Field1->getLocation(), diag::note_odr_bit_field)
1000 Context.Diag2(Field2->getLocation(), diag::note_odr_not_bit_field)
1003 Context.Diag2(Field2->getLocation(), diag::note_odr_bit_field)
1006 Context.Diag1(Field1->getLocation(), diag::note_odr_not_bit_field)
1020 Context.Diag2(Owner2->getLocation(),
1024 Context.Diag2(Field2->getLocation(), diag::note_odr_bit_field)
1026 Context.Diag1(Field1->getLocation(), diag::note_odr_bit_field)
1106 Context.Diag2(D2->getLocation(), Context.getApplicableDiagnostic(
1109 Context.Diag1(D1->getLocation(), diag::note_odr_tag_kind_here)
1191 Context.Diag2(D2->getLocation(),
1195 Context.Diag2(D2->getLocation(), diag::note_odr_number_of_bases)
1197 Context.Diag1(D1->getLocation(), diag::note_odr_number_of_bases)
1211 Context.Diag2(D2->getLocation(),
1226 Context.Diag2(D2->getLocation(),
1247 Context.Diag2(D2->getLocation(),
1252 Context.Diag2(D2->getLocation(), diag::note_odr_missing_friend);
1259 Context.Diag2(D2->getLocation(),
1272 Context.Diag2(D2->getLocation(),
1277 Context.Diag1(D1->getLocation(), diag::note_odr_missing_friend);
1283 Context.Diag2(D2->getLocation(),
1290 Context.Diag2(D2->getLocation(), diag::note_odr_missing_base);
1304 Context.Diag2(D2->getLocation(),
1308 Context.Diag1(Field1->getLocation(), diag::note_odr_field)
1310 Context.Diag2(D2->getLocation(), diag::note_odr_missing_field);
1321 Context.Diag2(D2->getLocation(), Context.getApplicableDiagnostic(
1324 Context.Diag2(Field2->getLocation(), diag::note_odr_field)
1326 Context.Diag1(D1->getLocation(), diag::note_odr_missing_field);
1352 Context.Diag2(D2->getLocation(),
1356 Context.Diag1(EC1->getLocation(), diag::note_odr_enumerator)
1358 Context.Diag2(D2->getLocation(), diag::note_odr_missing_enumerator);
1368 Context.Diag2(D2->getLocation(),
1372 Context.Diag2(EC2->getLocation(), diag::note_odr_enumerator)
1374 Context.Diag1(EC1->getLocation(), diag::note_odr_enumerator)
1383 Context.Diag2(D2->getLocation(), Context.getApplicableDiagnostic(
1386 Context.Diag2(EC2->getLocation(), diag::note_odr_enumerator)
1388 Context.Diag1(D1->getLocation(), diag::note_odr_missing_enumerator);
1414 Context.Diag2(Params2->getParam(I)->getLocation(),
1417 Context.Diag1(Params1->getParam(I)->getLocation(),
1436 Context.Diag2(D2->getLocation(),
1440 Context.Diag1(D1->getLocation(), diag::note_odr_parameter_pack_non_pack)
1454 Context.Diag2(D2->getLocation(),
1458 Context.Diag1(D1->getLocation(), diag::note_odr_parameter_pack_non_pack)
1467 Context.Diag2(D2->getLocation(),
1471 Context.Diag1(D1->getLocation(), diag::note_odr_value_here)
1485 Context.Diag2(D2->getLocation(),
1489 Context.Diag1(D1->getLocation(), diag::note_odr_parameter_pack_non_pack)
tools/clang/lib/AST/CommentSema.cpp 699 StringRef MacroName = PP->getLastMacroWithSpelling(FD->getLocation(),
tools/clang/lib/AST/Decl.cpp 81 if (!Loc.isValid() && TheDecl) Loc = TheDecl->getLocation();
1905 SourceLocation RangeEnd = getLocation();
2010 if (InitEnd.isValid() && InitEnd != getLocation())
2690 return SourceRange(DeclaratorDecl::getBeginLoc(), getLocation());
4060 SourceLocation E = RBraceLoc.isValid() ? RBraceLoc : getLocation();
4415 else if (Blacklist.isBlacklistedLocation(EnabledAsanMask, getLocation(),
4426 getLocation(),
4431 getLocation(),
4501 return SourceRange(getLocation(), Body ? Body->getEndLoc() : getLocation());
4501 return SourceRange(getLocation(), Body ? Body->getEndLoc() : getLocation());
4714 SourceLocation End = getLocation();
4717 return SourceRange(getLocation(), End);
4751 SourceLocation TTLoc = getLocation();
4752 SourceLocation TDLoc = TD->getLocation();
4785 SourceLocation RangeEnd = getLocation();
4891 return SourceRange(getLocation(), *getTrailingObjects<SourceLocation>());
4893 return SourceRange(getLocation(), getIdentifierLocs().back());
tools/clang/lib/AST/DeclBase.cpp 271 TheLoc = TheDecl->getLocation();
tools/clang/lib/AST/DeclCXX.cpp 2409 return getAnyMember()->getLocation();
tools/clang/lib/AST/DeclObjC.cpp 1411 startLoc = getLocation();
2266 SourceLocation EndLoc = getLocation();
tools/clang/lib/AST/ExprConstant.cpp 646 Loc = VD->getLocation();
1968 Info.Note(VD->getLocation(), diag::note_declared_at);
2193 Value.getUnionValue(), Usage, Value.getUnionField()->getLocation(),
2214 Usage, I->getLocation(), CheckedTemps))
2894 Info.Note(VD->getLocation(), diag::note_declared_at);
2900 Info.Note(VD->getLocation(), diag::note_declared_at);
3047 Info.Note(Field->getLocation(), diag::note_declared_at);
3215 Loc = VolatileField->getLocation();
3219 Loc = VD->getLocation();
3313 Info.Note(Field->getLocation(), diag::note_declared_at);
3594 Info.Note(VD->getLocation(), diag::note_declared_at);
3608 Info.Note(VD->getLocation(), diag::note_declared_at);
3623 Info.Note(VD->getLocation(), diag::note_declared_at);
4874 Info.Note(CD->getLocation(), diag::note_declared_at);
4939 Info.Note(DiagDecl->getLocation(), diag::note_declared_at);
5110 Info.Note(Callee->getLocation(), diag::note_declared_at);
13616 SourceLocation DeclLoc = VD->getLocation();
13681 SourceLocation DeclLoc = getLocation();
14361 CallStackFrame Frame(Info, Callee->getLocation(), Callee, ThisPtr,
14413 SourceLocation Loc = FD->getLocation();
tools/clang/lib/AST/Interp/Descriptor.cpp 255 return D->getLocation();
tools/clang/lib/AST/Interp/Interp.cpp 189 S.Note(VD->getLocation(), diag::note_declared_at);
279 S.Note(Field->getLocation(), diag::note_declared_at);
365 S.Note(DiagDecl->getLocation(), diag::note_declared_at);
398 S.Note(MD->getLocation(), diag::note_declared_at);
tools/clang/lib/AST/JSONNodeDumper.cpp 100 [D, this] { writeSourceLocation(D->getLocation()); });
tools/clang/lib/AST/MicrosoftMangle.cpp 1025 mangleOperatorName(Name.getCXXOverloadedOperator(), ND->getLocation());
tools/clang/lib/AST/RecordLayoutBuilder.cpp 1823 Diag(D->getLocation(), diag::warn_npot_ms_struct);
1967 Diag(RD->getLocation(), diag::warn_padded_struct_size)
1978 Diag(D->getLocation(), diag::warn_unnecessary_packed)
2043 if (D->getLocation().isInvalid())
2057 Diag(D->getLocation(), diag::warn_padded_struct_field)
2064 Diag(D->getLocation(), diag::warn_padded_struct_anon_field)
tools/clang/lib/AST/TextNodeDumper.cpp 236 dumpLocation(D->getLocation());
tools/clang/lib/AST/TypePrinter.cpp 1188 D->getLocation());
tools/clang/lib/AST/VTableBuilder.cpp 3165 Diags.Report(MostDerivedClass->getLocation(), DiagID)
3507 Diags.Report(RD->getLocation(), diag::err_vftable_ambiguous_component)
3509 Diags.Report(CovariantMD->getLocation(), diag::note_covariant_thunk)
3511 Diags.Report(ConflictMD->getLocation(), diag::note_covariant_thunk)
tools/clang/lib/Analysis/CFG.cpp 70 return D->getLocation();
2797 DeclStmt *DSNew = new (Context) DeclStmt(DG, D->getLocation(), GetEndLoc(D));
tools/clang/lib/Analysis/CloneDetection.cpp 163 SM.getFilename(S.getContainingDecl()->getLocation()));
tools/clang/lib/Analysis/Consumed.cpp 1407 CurrStates->checkParamsForReturnTypestate(D->getLocation(),
tools/clang/lib/Analysis/LiveVariables.cpp 657 (*di)->getLocation().print(llvm::errs(), M);
tools/clang/lib/Analysis/PathDiagnostic.cpp 366 SourceLocation XDL = XD->getLocation();
367 SourceLocation YDL = YD->getLocation();
746 return FullSourceLoc(D->getLocation(), const_cast<SourceManager&>(*SM));
772 DS->getSingleDecl()->getLocation());
805 SourceLocation L = D->getLocation();
tools/clang/lib/Analysis/ThreadSafety.cpp 1175 Analyzer.Handler.handleBeforeAfterCycle(L1, Vd->getLocation());
1941 SourceLocation MLoc = VD->getLocation();
1943 VD->getLocation());
2315 SourceLocation Loc = D->getLocation();
2527 Lock, LK_Exclusive, D->getLocation()));
2530 Lock, LK_Shared, D->getLocation()));
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp 132 SelfDecl->getLocation());
tools/clang/lib/CodeGen/CGBlocks.cpp 1487 DI->setLocation(D->getLocation());
1588 blockDecl->getLocation(),
1656 DI->EmitLocation(Builder, variable->getLocation());
tools/clang/lib/CodeGen/CGCUDANV.cpp 287 CGM.Error(CGF.CurFuncDecl->getLocation(),
tools/clang/lib/CodeGen/CGCXXABI.cpp 26 Diags.Report(CGF.getContext().getFullLoc(CGF.CurCodeDecl->getLocation()),
127 CGM.getContext(), nullptr, MD->getLocation(),
tools/clang/lib/CodeGen/CGDebugInfo.cpp 978 llvm::DIFile *DefUnit = getOrCreateFile(RD->getLocation());
979 unsigned Line = getLineNumber(RD->getLocation());
1127 SourceLocation Loc = AliasDecl->getLocation();
1143 SourceLocation Loc = Ty->getDecl()->getLocation();
1249 SourceLocation Loc = BitFieldDecl->getLocation();
1331 llvm::DIFile *VUnit = getOrCreateFile(f->getLocation());
1334 "this", type, f->getLocation(), f->getAccess(),
1348 llvm::DIFile *VUnit = getOrCreateFile(Var->getLocation());
1351 unsigned LineNumber = getLineNumber(Var->getLocation());
1389 createFieldType(name, type, field->getLocation(), field->getAccess(),
1402 SourceLocation Loc = TD->getLocation();
1561 MethodDefUnit = getOrCreateFile(Method->getLocation());
1562 MethodLine = getLineNumber(Method->getLocation());
2235 llvm::DIFile *DefUnit = getOrCreateFile(RD->getLocation());
2298 SourceLocation Loc = Ty->getDecl()->getLocation();
2347 llvm::DIFile *DefUnit = getOrCreateFile(ID->getLocation());
2348 unsigned Line = getLineNumber(ID->getLocation());
2447 llvm::DIFile *DefUnit = getOrCreateFile(ID->getLocation());
2448 unsigned Line = getLineNumber(ID->getLocation());
2488 SourceLocation Loc = PD->getLocation();
2533 llvm::DIFile *FieldDefUnit = getOrCreateFile(Field->getLocation());
2534 unsigned FieldLine = getLineNumber(Field->getLocation());
2577 SourceLocation Loc = PD->getLocation();
2780 llvm::DIFile *DefUnit = getOrCreateFile(ED->getLocation());
2784 unsigned Line = getLineNumber(ED->getLocation());
2824 llvm::DIFile *DefUnit = getOrCreateFile(ED->getLocation());
2825 unsigned Line = getLineNumber(ED->getLocation());
3113 llvm::DIFile *DefUnit = getOrCreateFile(RD->getLocation());
3114 unsigned Line = getLineNumber(RD->getLocation());
3210 getOrCreateFile(RD->getLocation())));
3273 Unit = getOrCreateFile(VD->getLocation());
3274 LineNo = getLineNumber(VD->getLocation());
3276 setLocation(VD->getLocation());
3329 SourceLocation Loc = GD.getDecl()->getLocation();
3382 SourceLocation Loc = VD->getLocation();
3408 getOrCreateFile(TD->getLocation()));
3442 return CreateCXXMemberFunction(MD, getOrCreateFile(MD->getLocation()),
3728 EmitFunctionDecl(CalleeDecl, CalleeDecl->getLocation(), CalleeType, Func);
3743 EmitLocation(Builder, FD->getLocation());
3841 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation());
3919 Unit = getOrCreateFile(VD->getLocation());
3936 Line = getLineNumber(VD->getLocation());
3937 Column = getColumnNumber(VD->getLocation());
4060 llvm::DIFile *Unit = getOrCreateFile(D->getLocation());
4063 unsigned Line = getLineNumber(D->getLocation());
4064 unsigned Column = getColumnNumber(D->getLocation());
4100 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation());
4114 unsigned Line = getLineNumber(VD->getLocation());
4115 unsigned Column = getColumnNumber(VD->getLocation());
4449 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation());
4528 DContext, Name, StringRef(), Unit, getLineNumber(VD->getLocation()), Ty,
4546 auto Loc = UD.getLocation();
4573 auto Loc = USD.getLocation();
4585 auto Loc = ID.getLocation();
4601 auto Loc = NA.getLocation();
tools/clang/lib/CodeGen/CGDecl.cpp 448 DI->setLocation(D.getLocation());
1360 D.getLocation(), D.getLocation(), NameIdent, QT,
1360 D.getLocation(), D.getLocation(), NameIdent, QT,
1561 DI->setLocation(D.getLocation());
1749 auto DL = ApplyDebugLocation::CreateDefaultArtificial(*this, D.getLocation());
tools/clang/lib/CodeGen/CGDeclCXX.cpp 241 ty, FnName.str(), FI, VD.getLocation());
290 CGM.Error(D.getLocation(),
465 D->getLocation());
647 FunctionArgList(), D->getLocation(),
769 FTy, "__cxx_global_array_dtor", FI, VD->getLocation());
tools/clang/lib/CodeGen/CGExpr.cpp 3215 CGM.getContext().VoidPtrTy, ArgData.getLocation());
3218 CGM.getContext().VoidPtrTy, ArgAddr.getLocation());
3957 CGF.getContext().getRecordType(rec), rec->getLocation());
4002 getContext().getRecordType(rec), rec->getLocation());
4086 getContext().getRecordType(rec), rec->getLocation());
tools/clang/lib/CodeGen/CGNonTrivialStruct.cpp 443 SourceLocation Loc = QT->castAs<RecordType>()->getDecl()->getLocation();
tools/clang/lib/CodeGen/CGObjC.cpp 697 OMD->getLocation(), StartLoc);
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 150 CGF.EmitLoadOfScalar(PartIdLVal, PartIDVar->getLocation());
837 InitRVal = CGF.EmitLoadOfLValue(LV, DRD->getLocation());
841 RValue::getComplex(CGF.EmitLoadOfComplex(LV, DRD->getLocation()));
847 OpaqueValueExpr OVE(DRD->getLocation(), Ty, VK_RValue);
1355 ImplicitParamDecl OmpOutParm(C, /*DC=*/nullptr, Out->getLocation(),
1357 ImplicitParamDecl OmpInParm(C, /*DC=*/nullptr, In->getLocation(),
1377 CGF.StartFunction(GlobalDecl(), C.VoidTy, Fn, FnInfo, Args, In->getLocation(),
1378 Out->getLocation());
2787 CGM.getContext().VoidPtrTy, Dst.getLocation());
2795 CGM.getContext().VoidPtrTy, Dst.getLocation());
2823 /*Volatile=*/false, CGM.getContext().VoidPtrTy, Dst.getLocation());
8212 RValue VarRVal = CGF.EmitLoadOfLValue(VarLVal, RD->getLocation());
8841 SourceLocation Loc = D->getLocation();
9658 getTargetEntryUniqueInfo(CGM.getContext(), VD->getLocation(), DeviceID,
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp 266 SourceLocation Loc = VD->getLocation();
4467 CGM.getContext(), /*DC=*/nullptr, NativeParam->getLocation(),
4472 NativeParam->getBeginLoc(), NativeParam->getLocation(),
tools/clang/lib/CodeGen/CGStmt.cpp 559 DI->setLocation(D->getLocation());
2424 StartFunction(CD, Ctx.VoidTy, F, FuncInfo, Args, CD->getLocation(),
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp 446 CapVar ? CapVar->getLocation() : FD->getLocation(), II, ArgType,
446 CapVar ? CapVar->getLocation() : FD->getLocation(), II, ArgType,
449 Arg = ImplicitParamDecl::Create(Ctx, /*DC=*/nullptr, FD->getLocation(),
tools/clang/lib/CodeGen/CGVTables.cpp 271 MD->getLocation());
tools/clang/lib/CodeGen/CodeGenAction.cpp 552 Diags.Report(ND->getASTContext().getFullLoc(ND->getLocation()),
589 Loc = FD->getASTContext().getFullLoc(FD->getLocation());
tools/clang/lib/CodeGen/CodeGenFunction.cpp 1115 getContext(), Param->getDeclContext(), Param->getLocation(),
1159 BodyRange = FD->getLocation();
1167 SourceLocation Loc = FD->getLocation();
1173 Loc = SpecDecl->getLocation();
1227 EmitCheckSourceLocation(FD->getLocation()), None);
2093 I->getAnnotation(), D->getLocation());
2110 V = EmitAnnotationCall(F, V, I->getAnnotation(), D->getLocation());
tools/clang/lib/CodeGen/CodeGenModule.cpp 749 getDiags().Report(Context.getFullLoc(D->getLocation()), DiagID) << Msg;
2228 Annotations.push_back(EmitAnnotateAttr(GV, I, D->getLocation()));
2792 PrettyStackTraceDecl CrashInfo(const_cast<ValueDecl *>(D), D->getLocation(),
3142 getDiags().Report(D->getLocation(), diag::err_duplicate_mangled_name)
3144 getDiags().Report(OtherGD.getDecl()->getLocation(),
3442 getDiags().Report(D->getLocation(), diag::err_duplicate_mangled_name)
3444 getDiags().Report(OtherGD.getDecl()->getLocation(),
4533 Diags.Report(D->getLocation(), diag::err_duplicate_mangled_name)
4535 Diags.Report(OtherGD.getDecl()->getLocation(),
5156 ObjCMethodDecl::Create(getContext(), D->getLocation(), D->getLocation(),
5156 ObjCMethodDecl::Create(getContext(), D->getLocation(), D->getLocation(),
5176 D->getLocation(),
5177 D->getLocation(),
5341 OMD->getClassInterface()), OMD->getLocation());
tools/clang/lib/CodeGen/CodeGenPGO.cpp 790 loadRegionCounts(PGOReader, SM.isInMainFile(D->getLocation()));
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp 1565 Context, /*DC=*/nullptr, MD->getLocation(), &Context.Idents.get("vtt"),
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp 1456 Context, /*DC=*/nullptr, CGF.CurGD.getDecl()->getLocation(),
1469 Context, /*DC=*/nullptr, CGF.CurGD.getDecl()->getLocation(),
2019 FunctionArgs, MD->getLocation(), SourceLocation());
3945 FunctionArgs, CD->getLocation(), SourceLocation());
tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp 87 DI.getOrCreateStandaloneType(QualTy, D->getLocation());
94 DI.getOrCreateStandaloneType(QualTy, D->getLocation());
111 DI.EmitFunctionDecl(D, D->getLocation(), FnTy);
130 DI.EmitFunctionDecl(D, D->getLocation(), FnTy);
tools/clang/lib/CodeGen/SanitizerMetadata.cpp 74 reportGlobalToASan(GV, D.getLocation(), OS.str(), D.getType(), IsDynInit,
tools/clang/lib/Frontend/ASTUnit.cpp 2419 SourceLocation Loc = D->getLocation();
tools/clang/lib/Frontend/FrontendAction.cpp 122 Ctx.getDiagnostics().Report(Ctx.getFullLoc(D->getLocation()), DiagID)
tools/clang/lib/Frontend/FrontendActions.cpp 455 TheSema.getSourceManager().getPresumedLoc(Inst.Entity->getLocation());
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp 722 SourceLocation Loc = D->getLocation();
2194 Loc = VD->getLocation();
2198 Loc = FD->getLocation();
2209 Loc = FD->getLocation();
2213 Loc = TD->getLocation();
3049 SourceLocation Location = D->getLocation();
3610 TagLocation = RD->getLocation();
3612 IDecl->getLocation(), TagLocation);
3618 TagLocation = ED->getLocation();
3620 IDecl->getLocation(), TagLocation);
4767 SourceLocation DeclLoc = FD->getLocation();
4868 SourceLocation DeclLoc = ND->getLocation();
4907 DeclLoc = ND->getLocation();
5019 DeclLoc = ND->getLocation();
5115 DeclLoc = ND->getLocation();
5247 Diags.Report(block->getLocation(), GlobalBlockRewriteFailedDiag);
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp 651 SourceLocation Loc = D->getLocation();
2110 Loc = VD->getLocation();
2114 Loc = FD->getLocation();
2125 Loc = FD->getLocation();
3921 SourceLocation DeclLoc = FD->getLocation();
4022 SourceLocation DeclLoc = ND->getLocation();
4061 DeclLoc = ND->getLocation();
4176 DeclLoc = ND->getLocation();
tools/clang/lib/Index/CommentToXML.cpp 878 SourceLocation Loc = DI->CurrentDecl->getLocation();
tools/clang/lib/Index/FileIndexRecord.cpp 48 SourceLocation Loc = SM.getFileLoc(D->getLocation());
tools/clang/lib/Index/IndexDecl.cpp 143 MethodLoc = D->getLocation();
249 IndexCtx.handleReference(Ctor->getParent(), Ctor->getLocation(),
272 Guide->getLocation(), Guide,
360 return IndexCtx.handleDecl(D, D->getLocation(), SymbolRoleSet(),
409 return IndexCtx.handleReference(D, D->getLocation(), nullptr,
422 return IndexCtx.handleReference(D, D->getLocation(), nullptr,
442 if (I->getLocation().isInvalid())
447 cast<ObjCPropertyImplDecl>(I)->getLocation().isValid())
460 TRY_TO(IndexCtx.handleReference(C, D->getLocation(), D, D, SymbolRoleSet(),
466 CategoryLoc = D->getLocation();
480 TRY_TO(IndexCtx.handleReference(C, D->getLocation(), D, D,
484 CategoryLoc = D->getLocation();
518 SourceLocation Loc = D->getLocation();
525 Loc = Container->getLocation();
556 if (D->getLocation().isInvalid()) {
557 IvarLoc = Container->getLocation();
559 } else if (D->getLocation() == IvarLoc) {
593 IndexCtx.handleReference(I->getUnderlyingDecl(), D->getLocation(), Parent,
609 D->getLocation(), Parent,
756 if (D->getLocation().isInvalid())
tools/clang/lib/Index/IndexingContext.cpp 54 return handleDecl(D, D->getLocation(), Roles, Relations);
115 Loc = ImportD->getLocation();
tools/clang/lib/Index/USRGeneration.cpp 190 SourceLocation Loc = D->getLocation();
553 printLoc(Out, D->getLocation(), Context->getSourceManager(), true);
tools/clang/lib/Parse/ParseDecl.cpp 2407 ThisDecl->getLocation(), Exprs, T.getOpenLocation());
2427 ThisDecl->getLocation(), Exprs, T.getOpenLocation());
2661 Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type)
tools/clang/lib/Parse/ParseDeclCXX.cpp 3386 Diag(D->getLocation(),
tools/clang/lib/Parse/ParseExprCXX.cpp 2042 Diag(DeclOut->getLocation(),
2046 Diag(DeclOut->getLocation(), diag::err_expected_init_in_condition);
tools/clang/lib/Parse/ParseOpenMP.cpp 330 D->getLocation(), /*DiscardedValue*/ false);
371 ParseAssignmentExpression().get(), D->getLocation(),
379 ParseAssignmentExpression().get(), D->getLocation(),
441 OmpPrivParm->getLocation(), Exprs, LParLoc);
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp 347 S.Diag(FD->getLocation(), diag::note_throw_in_dtor)
351 S.Diag(FD->getLocation(), diag::note_throw_in_function)
532 D.FuncLoc = Func->getLocation();
565 D.FuncLoc = Func->getLocation();
758 S.Diag(VD->getLocation(), diag::note_block_var_fixit_add_initialization)
760 << FixItHint::CreateInsertion(VD->getLocation(), "__block ");
823 S.Diag(VD->getLocation(), diag::warn_sometimes_uninit_var)
1005 << VD->getDeclName() << VD->getLocation() << DRE->getSourceRange();
1801 PartialDiagnosticAt VNote(D->getLocation(),
1829 PartialDiagnosticAt Note(D->getLocation(),
2035 S.SourceMgr.isInSystemHeader(D->getLocation())))
2165 SourceLocation FL = AC.getDecl()->getLocation();
tools/clang/lib/Sema/JumpDiagnostics.cpp 227 D->getLocation()));
270 SourceLocation Loc = D->getLocation();
272 Loc = BDecl->getLocation();
937 S.Diag(GS->getLabel()->getLocation(), diag::note_goto_ms_asm_label)
tools/clang/lib/Sema/Sema.cpp 732 S.Diag(VD->getLocation(), isExternallyVisible(VD->getType()->getLinkage())
740 S.Diag(VD->getLocation(), diag::warn_undefined_internal)
747 S.Diag(VD->getLocation(), diag::warn_undefined_inline) << VD;
751 S.Diag(VD->getLocation(), diag::err_undefined_inline_var) << VD;
858 Diag(TD->getLocation(), diag::warn_unused_local_typedef)
1120 Diag(VD->getLocation(), diag::warn_tentative_incomplete_array);
1125 } else if (RequireCompleteType(VD->getLocation(), VD->getType(),
1157 Diag(DiagD->getLocation(), diag::warn_unneeded_member_function)
1163 SourceMgr.getExpansionLoc(FD->getLocation())))
1164 Diag(DiagD->getLocation(),
1168 Diag(DiagD->getLocation(), diag::warn_unneeded_internal_decl)
1173 Diag(DiagD->getLocation(), diag::warn_unused_template)
1176 Diag(DiagD->getLocation(),
1186 Diag(DiagD->getLocation(), diag::warn_unneeded_internal_decl)
1190 if (SM.getMainFileID() != SM.getFileID(DiagD->getLocation()) ||
1192 Diag(DiagD->getLocation(), diag::warn_unused_const_variable)
1196 Diag(DiagD->getLocation(), diag::warn_unused_template)
1199 Diag(DiagD->getLocation(), diag::warn_unused_variable)
1219 Diag(D->getLocation(), diag::warn_unused_private_field)
1670 SourceLocation Loc = VD->getLocation();
2057 S.Diag(Fn->getLocation(), diag::note_possible_target_of_call);
tools/clang/lib/Sema/SemaAccess.cpp 51 Diag(MemberDecl->getLocation(),
54 Diag(PrevMemberDecl->getLocation(), diag::note_previous_access_declaration)
1054 S.Diag(D->getLocation(), diag::note_access_protected_restricted_noobject)
1076 return S.Diag(D->getLocation(),
1082 return S.Diag(D->getLocation(),
1142 S.Diag(D->getLocation(), diag::note_access_natural)
1254 S.Diag(entity.getTargetDecl()->getLocation(),
1791 switch (CheckEffectiveAccess(*this, EC, target->getLocation(), entity)) {
tools/clang/lib/Sema/SemaAttr.cpp 478 Diag(Decl->getLocation(), diag::err_section_conflict)
480 Diag(OtherDecl->getLocation(), diag::note_declared_at)
tools/clang/lib/Sema/SemaCUDA.cpp 331 Diag(ClassDecl->getLocation(),
375 Diag(ClassDecl->getLocation(),
501 isEmptyCudaConstructor(VD->getLocation(), CE->getConstructor());
514 isEmptyCudaDestructor(VD->getLocation(), RD->getDestructor());
517 Diag(VD->getLocation(), VD->hasAttr<CUDASharedAttr>()
535 Diag(VD->getLocation(), diag::err_ref_bad_target_global_initializer)
537 Diag(InitFn->getLocation(), diag::note_previous_decl) << InitFn;
591 if (!getSourceManager().isInSystemHeader(Match->getLocation())) {
592 Diag(NewD->getLocation(),
595 Diag(Match->getLocation(),
725 DeviceDiagBuilder(DiagKind, Callee->getLocation(), diag::note_previous_decl,
768 Diag(NewFD->getLocation(), diag::err_cuda_ovl_target)
770 Diag(OldFD->getLocation(), diag::note_previous_declaration);
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp 602 Diag(ND->getLocation(), diag::note_declared_at);
611 Diag(ND->getLocation(), diag::note_entity_declared_at)
693 Diag(SD->getLocation(), diag::note_ambig_member_ref_object_type)
695 Diag(OuterDecl->getLocation(), diag::note_ambig_member_ref_scope);
703 MarkAnyDeclReferenced(TD->getLocation(), TD, /*OdrUse=*/false);
820 Diag(ND->getLocation(), diag::note_entity_declared_at)
tools/clang/lib/Sema/SemaCast.cpp 474 S.Diag(DeclFrom->getLocation(), diag::note_type_incomplete)
478 S.Diag(DeclTo->getLocation(), diag::note_type_incomplete)
tools/clang/lib/Sema/SemaChecking.cpp 4191 S.Diag(FDecl->getLocation(), diag::note_entity_declared_at)
5638 ParamLoc = PV->getLocation();
9422 visit(FD->getType(), FD->getLocation());
9464 visit(FD->getType(), FD->getLocation());
12194 SemaRef.Diag(FD->getLocation(), diag::note_reference_is_return_value) << FD;
13054 RequireCompleteType(Param->getLocation(), Param->getType(),
13066 Diag(Param->getLocation(), diag::err_parameter_name_omitted);
13076 diagnoseArrayStarInParamType(*this, PType, Param->getLocation());
13088 MarkFunctionReferenced(Param->getLocation(), Destructor);
13089 DiagnoseUseOfDecl(Destructor, Param->getLocation());
13100 Diag(Param->getLocation(), diag::err_attribute_pointers_only)
13110 CheckShadowInheritedFields(Param->getLocation(), Param->getDeclName(),
13811 Diag(Decl->getLocation(),
13824 Diag(Decl->getLocation(),
13880 Owner.Loc = Var->getLocation();
tools/clang/lib/Sema/SemaCodeComplete.cpp 716 if (isReservedName(Id) && ND->getLocation().isInvalid())
724 SemaRef.SourceMgr.getSpellingLoc(ND->getLocation())))
5253 MemberDecl->getLocation(), ArgExprs,
tools/clang/lib/Sema/SemaCoroutine.cpp 53 const SourceLocation FuncLoc = FD->getLocation();
164 S.Diag(Found->getLocation(), diag::err_malformed_std_coroutine_handle);
454 S.Diag(AwaitSuspend->getCalleeDecl()->getLocation(),
496 auto *VD = VarDecl::Create(Context, FD, FD->getLocation(), FD->getLocation(),
496 auto *VD = VarDecl::Create(Context, FD, FD->getLocation(), FD->getLocation(),
536 ExprValueKind::VK_LValue, FD->getLocation());
544 Expr *PLE = ParenListExpr::Create(Context, FD->getLocation(),
545 CtorArgExprs, FD->getLocation());
548 VD->getLocation(), /*DirectInit=*/true, PLE);
614 SourceLocation Loc = Fn->getLocation();
920 S.Diag(Found->getLocation(), diag::err_malformed_std_nothrow);
995 : S(S), FD(FD), Fn(Fn), Loc(FD.getLocation()),
1060 Loc = Decl->getLocation();
1106 S.Diag(Found.getFoundDecl()->getLocation(), diag::note_member_declared_here)
1172 auto PDLoc = PD->getLocation();
1232 S.Diag(OperatorNew->getLocation(),
1316 S.Diag(FD.getLocation(),
1319 S.Diag(LRVoid.getRepresentativeDecl()->getLocation(),
1322 S.Diag(LRValue.getRepresentativeDecl()->getLocation(),
1329 S.Diag(FD.getLocation(),
1332 S.Diag(PromiseRecordDecl->getLocation(), diag::note_defined_here)
1339 Fallthrough = S.BuildCoreturnStmt(FD.getLocation(), nullptr,
1364 S.Diag(PromiseRecordDecl->getLocation(), diag::note_defined_here)
1408 S.Diag(MethodDecl->getLocation(), diag::note_member_declared_here)
1448 S.Context, &FD, FD.getLocation(), FD.getLocation(),
1448 S.Context, &FD, FD.getLocation(), FD.getLocation(),
1585 Diag(Found->getLocation(), diag::err_malformed_std_coroutine_traits);
tools/clang/lib/Sema/SemaDecl.cpp 437 (*Res)->getLocation().getRawEncoding() <
438 IIDecl->getLocation().getRawEncoding())
483 MarkAnyDeclReferenced(TD->getLocation(), TD, /*OdrUse=*/false);
821 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type)
1124 MarkAnyDeclReferenced(Type->getLocation(), Type, /*OdrUse=*/false);
1554 Diag(New->getLocation(), diag::err_mismatched_owning_module)
1560 Diag(Old->getLocation(), diag::note_previous_declaration);
1661 if (FD->isInlined() && !isMainFileLoc(*this, FD->getLocation()))
1672 if (!isMainFileLoc(*this, VD->getLocation()))
1686 if (VD->isInline() && !isMainFileLoc(*this, VD->getLocation()))
1864 Diag(D->getLocation(), DiagID) << D << Hint;
1878 S.Diag(L->getLocation(), diag::err_undeclared_label_use) <<L->getDeclName();
1913 Diag(D->getLocation(), diag::warn_ctor_parm_shadows_field)
1915 Diag(FD->getLocation(), diag::note_previous_declaration);
2179 Diag(New->getLocation(), diag::err_redefinition_variably_modified_typedef)
2181 if (Old->getLocation().isValid())
2182 notePreviousDefinition(Old, New->getLocation());
2192 Diag(New->getLocation(), diag::err_redefinition_different_typedef)
2194 if (Old->getLocation().isValid())
2195 notePreviousDefinition(Old, New->getLocation());
2257 Diag(New->getLocation(), diag::err_redefinition_different_kind)
2261 if (OldD->getLocation().isValid())
2262 notePreviousDefinition(OldD, New->getLocation());
2352 Diag(New->getLocation(), diag::err_redefinition)
2354 notePreviousDefinition(Old, New->getLocation());
2369 Context.getSourceManager().isInSystemHeader(Old->getLocation()) ||
2370 Context.getSourceManager().isInSystemHeader(New->getLocation())))
2373 Diag(New->getLocation(), diag::ext_redefinition_of_typedef)
2375 notePreviousDefinition(Old, New->getLocation());
2490 S.Diag(New->getLocation(), diag::err_alignas_missing_on_definition)
2650 S.Diag(VD->getLocation(), Diag) << VD->getDeclName();
2652 S.notePreviousDefinition(Def, VD->getLocation());
2654 S.Diag(Def->getLocation(), diag::note_previous_definition);
2688 S.Diag(Def->getLocation(), diag::err_alignas_missing_on_definition)
2709 S.Diag(Def->getLocation(), diag::note_previous_definition);
2753 S.Diag(InitDecl->getLocation(), diag::ext_constinit_missing)
2763 S.Diag(InitDecl->getLocation(), diag::note_constinit_missing_here)
2823 Diag(New->getLocation(), diag::err_different_asm_label);
2829 Diag(New->getLocation(), diag::err_late_asm_label_name)
2848 Diag(Old->getLocation(), diag::note_previous_declaration);
2856 Diag(New->getLocation(), diag::warn_attribute_section_on_redeclaration);
2857 Diag(Old->getLocation(), diag::note_previous_declaration);
2866 Diag(New->getLocation(), diag::warn_mismatched_section)
2868 Diag(Old->getLocation(), diag::note_previous_declaration);
2931 S.Diag(FirstVD->getLocation(),
2963 S.Diag(NewParam->getLocation(), diag::warn_mismatched_nullability_attr)
2972 S.Diag(OldParam->getLocation(), diag::note_previous_declaration);
3002 SourceLocation OldLocation = Old->getLocation();
3008 OldLocation = New->getLocation();
3080 S.Diag(New->getLocation(), diag::err_using_decl_conflict_reverse);
3081 S.Diag(OldS->getTargetDecl()->getLocation(), diag::note_using_decl_target);
3082 S.Diag(OldS->getUsingDecl()->getLocation(), diag::note_using_decl) << 0;
3164 Diag(New->getLocation(), diag::err_using_decl_friend);
3165 Diag(Shadow->getTargetDecl()->getLocation(),
3167 Diag(Shadow->getUsingDecl()->getLocation(),
3177 Diag(New->getLocation(), diag::err_redefinition_different_kind)
3179 notePreviousDefinition(OldD, New->getLocation());
3190 Diag(New->getLocation(), diag::err_builtin_redeclare) << Old->getDeclName();
3191 Diag(Old->getLocation(), diag::note_previous_builtin_declaration)
3211 Diag(New->getLocation(), diag::ext_static_non_static) << New;
3214 Diag(New->getLocation(), diag::err_static_non_static) << New;
3222 Diag(New->getLocation(), diag::err_internal_linkage_redeclaration)
3224 notePreviousDefinition(Old, New->getLocation());
3234 Diag(New->getLocation(), diag::err_attribute_overloadable_mismatch)
3255 Diag(DiagOld->getLocation(),
3302 Diag(New->getLocation(), diag::warn_cconv_unsupported)
3310 Diag(New->getLocation(), diag::err_cconv_change)
3317 Diag(First->getLocation(), diag::note_previous_declaration);
3332 Diag(New->getLocation(), diag::err_regparm_mismatch)
3346 Diag(New->getLocation(), diag::err_function_attribute_mismatch)
3361 Diag(New->getLocation(), diag::err_function_attribute_mismatch) << Attr;
3398 Diag(New->getLocation(), diag::err_different_pass_object_size_params)
3437 Diag(New->getLocation(), diag::err_member_def_does_not_match_ret_type)
3440 Diag(New->getLocation(), diag::err_ovl_diff_return_type)
3488 Diag(New->getLocation(), diag::err_ovl_static_nonstatic_member);
3508 Diag(New->getLocation(), NewDiag);
3510 Diag(New->getLocation(), diag::err_member_redeclared_in_instantiation)
3525 Diag(NewMethod->getLocation(),
3531 Diag(NewMethod->getLocation(),
3545 Diag(Old->getFirstDecl()->getLocation(),
3557 Diag(Old->getFirstDecl()->getLocation(),
3586 Diag(New->getLocation(), diag::ext_retained_language_linkage) << New;
3589 Diag(New->getLocation(), diag::err_different_language_linkage) << New;
3695 Diag(Warnings[Warn].NewParm->getLocation(),
3699 if (Warnings[Warn].OldParm->getLocation().isValid())
3700 Diag(Warnings[Warn].OldParm->getLocation(),
3723 Diag(New->getLocation(), diag::warn_redecl_library_builtin) << New;
3744 Diag(New->getLocation(), diag::err_conflicting_types) << New->getDeclName();
3819 S.Diag(New->getLocation(), New->isThisDeclarationADefinition()
3995 Diag(New->getLocation(), diag::err_redefinition_different_kind)
3998 New->getLocation());
4014 Diag(New->getLocation(), diag::err_duplicate_member)
4016 Diag(Old->getLocation(), diag::note_previous_declaration);
4026 Diag(New->getLocation(), diag::warn_weak_import) << New->getDeclName();
4027 notePreviousDefinition(Old, New->getLocation());
4034 Diag(New->getLocation(), diag::err_internal_linkage_redeclaration)
4036 notePreviousDefinition(Old, New->getLocation());
4063 Diag(New->getLocation(), diag::ext_static_non_static)
4067 Diag(New->getLocation(), diag::err_static_non_static)
4087 Diag(New->getLocation(), diag::err_non_static_static) << New->getDeclName();
4095 Diag(New->getLocation(), diag::err_extern_non_extern) << New->getDeclName();
4101 Diag(New->getLocation(), diag::err_non_extern_extern) << New->getDeclName();
4117 Diag(New->getLocation(), diag::err_redefinition) << New->getDeclName();
4127 Diag(New->getLocation(), diag::err_inline_decl_follows_def) << New;
4128 Diag(Def->getLocation(), diag::note_previous_definition);
4141 Diag(New->getLocation(), diag::err_thread_non_thread) << New->getDeclName();
4144 Diag(New->getLocation(), diag::err_non_thread_thread) << New->getDeclName();
4151 Diag(New->getLocation(), diag::err_thread_thread_different_kind)
4163 Diag(New->getLocation(),
4172 Diag(New->getLocation(), diag::err_different_language_linkage) << New;
4200 auto FOldDecLoc = SrcMgr.getDecomposedLoc(Old->getLocation());
4205 SrcMgr.getFilename(SrcMgr.getSpellingLoc(Old->getLocation()));
4241 Diag(Old->getLocation(), diag::note_use_ifdef_guards);
4248 if (Old->getLocation().isValid())
4249 Diag(Old->getLocation(), diag::note_previous_definition);
4271 Diag(New->getLocation(), diag::err_redefinition) << New;
4272 notePreviousDefinition(Old, New->getLocation());
4355 Diag(NewTD->getLocation(), diag::err_typedef_changes_linkage);
4671 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
4704 VD->getLocation(),
4730 SemaRef.Context, Owner, VD->getLocation(), VD->getIdentifier(),
4784 return FD->getLocation();
4819 Diag(Record->getLocation(), diag::ext_anonymous_union);
4821 Diag(Record->getLocation(), diag::ext_gnu_anonymous_struct);
4823 Diag(Record->getLocation(), diag::ext_c11_anonymous_struct);
4841 Diag(Record->getLocation(), diag::err_anonymous_union_not_static)
4842 << FixItHint::CreateInsertion(Record->getLocation(), "static ");
4905 Diag(FD->getLocation(), diag::err_anonymous_record_nonpublic_member)
4929 Diag(MemRecord->getLocation(), diag::ext_anonymous_record_with_type)
4933 Diag(MemRecord->getLocation(), diag::err_anonymous_record_with_type)
4941 Diag(MemRecord->getLocation(),
4963 Diag(Mem->getLocation(), diag::ext_anonymous_record_with_type)
4966 Diag(Mem->getLocation(), DK) << Record->isUnion();
4982 Diag(Record->getLocation(), diag::err_anonymous_struct_not_member)
5008 Context, OwningClass, DS.getBeginLoc(), Record->getLocation(),
5021 Diag(Record->getLocation(), diag::err_mutable_nonmember);
5027 Record->getLocation(), /*IdentifierInfo=*/nullptr,
5119 if (RequireCompleteType(Anon->getLocation(), RecTy,
5167 Diag(Template->getLocation(), diag::note_template_decl_here);
5952 Diag(NewTD->getLocation(), diag::warn_illegal_constant_array_size);
5956 Diag(NewTD->getLocation(), diag::err_typecheck_negative_array_size);
5958 Diag(NewTD->getLocation(), diag::err_vla_decl_in_file_scope);
5960 Diag(NewTD->getLocation(), diag::err_array_too_large)
5963 Diag(NewTD->getLocation(), diag::err_vm_decl_in_file_scope);
6094 Diag(decl->getLocation(), diag::err_arc_autoreleasing_var)
6111 Diag(var->getLocation(), diag::err_arc_thread_ownership)
6180 S.Diag(ND.getLocation(), diag::err_attribute_dll_not_extern)
6190 S.Diag(ND.getLocation(),
6281 S.Diag(NewDecl->getLocation(), DiagID)
6284 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration);
6314 S.Diag(NewDecl->getLocation(),
6317 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration);
6322 S.Diag(NewDecl->getLocation(),
6325 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration);
6335 S.Diag(NewDecl->getLocation(),
6655 checkNonTrivialCUnion(NewVD->getType(), NewVD->getLocation(),
6923 Diag(NewVD->getLocation(), diag::err_module_private_specialization)
6928 Diag(NewVD->getLocation(), diag::err_module_private_specialization)
6932 Diag(NewVD->getLocation(), diag::err_module_private_local)
7030 Diag(NewVD->getLocation(), diag::warn_redefine_extname_not_applied)
7071 Diag(NewVD->getLocation(), diag::err_nonstatic_member_out_of_line)
7358 Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration);
7369 Diag(Shadow.VD->getLocation(), CaptureLoc.isInvalid()
7377 Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration);
7383 if (Diags.isIgnored(diag::warn_decl_shadow, D->getLocation()))
7386 LookupResult R(*this, D->getDeclName(), D->getLocation(),
7410 Diag(D->getLocation(), diag::note_var_declared_here) << D;
7411 Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration);
7487 S.Diag(ND->getLocation(), diag::err_extern_c_global_conflict)
7489 S.Diag(Prev->getLocation(), diag::note_extern_c_global_conflict)
7549 Diag(NewVD->getLocation(), diag::err_statically_allocated_object)
7550 << FixItHint::CreateInsertion(NewVD->getLocation(), "*");
7561 Diag(NewVD->getLocation(), diag::err_as_qualified_auto_decl) << 0;
7571 Diag(NewVD->getLocation(), diag::err_static_function_scope);
7579 Diag(NewVD->getLocation(), diag::err_opencl_block_storage_type);
7587 Diag(NewVD->getLocation(), diag::err_opencl_invalid_block_declaration)
7593 Diag(NewVD->getLocation(), diag::err_opencl_extern_block_declaration);
7614 Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space)
7617 Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space)
7624 Diag(NewVD->getLocation(), diag::err_opencl_function_variable)
7636 Diag(NewVD->getLocation(), diag::err_opencl_function_variable)
7639 Diag(NewVD->getLocation(), diag::err_opencl_function_variable)
7649 Diag(NewVD->getLocation(), diag::err_opencl_addrspace_scope)
7652 Diag(NewVD->getLocation(), diag::err_opencl_addrspace_scope)
7663 Diag(NewVD->getLocation(), diag::err_as_qualified_auto_decl) << 1;
7673 Diag(NewVD->getLocation(), diag::warn_gc_attribute_weak_on_local);
7676 Diag(NewVD->getLocation(), diag::warn_attribute_weak_on_local);
7707 Diag(NewVD->getLocation(), diag::err_vla_decl_in_file_scope)
7710 Diag(NewVD->getLocation(), diag::err_vla_decl_has_static_storage)
7713 Diag(NewVD->getLocation(), diag::err_vla_decl_has_extern_linkage)
7721 Diag(NewVD->getLocation(), diag::err_vm_decl_in_file_scope);
7723 Diag(NewVD->getLocation(), diag::err_vm_decl_has_extern_linkage);
7728 Diag(NewVD->getLocation(), diag::warn_illegal_constant_array_size);
7737 Diag(NewVD->getLocation(), diag::err_typecheck_decl_incomplete_type)
7745 Diag(NewVD->getLocation(), diag::err_block_on_nonlocal);
7751 Diag(NewVD->getLocation(), diag::err_block_on_vm);
7757 RequireLiteralType(NewVD->getLocation(), T,
7843 S.Diag(MD->getLocation(), DiagID) << MD->getDeclName();
7851 S.Diag(O->getLocation(), diag::note_overridden_virtual_function);
7977 LookupResult Prev(SemaRef, Name, NewFD->getLocation(),
8073 SemaRef.Diag(NewFD->getLocation(), DiagMsg)
8074 << Name << NewDC << IsDefinition << NewFD->getLocation();
8092 if (Loc.isInvalid()) Loc = FD->getLocation();
8098 SemaRef.Diag(FD->getLocation(), diag::note_member_def_close_const_match)
8101 SemaRef.Diag(FD->getLocation(),
8388 S.Diag(Param->getLocation(), diag::err_opencl_ptrptr_kernel_param);
8397 S.Diag(Param->getLocation(), diag::err_kernel_arg_address_space);
8414 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT;
8419 SourceLocation Loc = Typedef->getDecl()->getLocation();
8510 S.Diag(Param->getLocation(),
8515 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT;
8518 S.Diag(OrigRecDecl->getLocation(), diag::note_within_field_of_type)
8528 S.Diag(OuterField->getLocation(), diag::note_within_field_of_type)
8532 S.Diag(FD->getLocation(), diag::note_illegal_field_declared_here)
8668 Diag(NewFD->getLocation(), diag::err_destructor_template);
8682 NewFD->getLocation(),
8935 Diag(NewFD->getLocation(), diag::warn_redefine_extname_not_applied)
9032 Diag(NewFD->getLocation(), diag::err_vm_func_decl);
9074 Diag(NewFD->getLocation(),
9109 Diag(NewFD->getLocation(), DiagID)
9215 Diag(NewFD->getLocation(),
9222 Diag(NewFD->getLocation(),
9359 Diag(NewFD->getLocation(), diag::ext_out_of_line_declaration)
9371 Diag(NewFD->getLocation(),
9423 Diag(NewFD->getLocation(), diag::err_config_scalar_return)
9436 Diag(NewFD->getLocation(), diag::err_variadic_device_fn);
9510 Context, CurContext, NewFD->getLocation(),
9674 S.Diag(FD->getLocation(), diag::err_bad_multiversion_option)
9682 S.Diag(FD->getLocation(), diag::err_bad_multiversion_option)
9689 S.Diag(FD->getLocation(), diag::err_bad_multiversion_option)
9746 Diag(OldFD->getLocation(), NoProtoDiagID);
9752 return Diag(NewFD->getLocation(), NoProtoDiagID);
9821 OldFD->getType()->getAs<FunctionProtoType>(), OldFD->getLocation(),
9822 NewFD->getType()->getAs<FunctionProtoType>(), NewFD->getLocation()))
9833 S.Diag(NewFD->getLocation(), diag::err_multiversion_not_supported);
9835 S.Diag(OldFD->getLocation(), diag::note_previous_declaration);
9846 S.Diag(OldFD->getLocation(), diag::err_multiversion_no_other_attrs)
9848 S.Diag(NewFD->getLocation(), diag::note_multiversioning_caused_here);
9853 return S.Diag(NewFD->getLocation(), diag::err_multiversion_no_other_attrs)
9858 return S.Diag(NewFD->getLocation(), diag::err_multiversion_after_used);
9862 PartialDiagnosticAt(NewFD->getLocation(),
9864 PartialDiagnosticAt(NewFD->getLocation(),
9867 PartialDiagnosticAt(NewFD->getLocation(),
9931 S.Diag(NewFD->getLocation(), diag::err_multiversion_not_supported);
9932 S.Diag(OldFD->getLocation(), diag::note_previous_declaration);
9958 S.Diag(NewFD->getLocation(), diag::note_multiversioning_caused_here);
9967 S.Diag(NewFD->getLocation(), diag::err_multiversion_duplicate);
9968 S.Diag(OldFD->getLocation(), diag::note_previous_declaration);
9979 S.Diag(FD->getLocation(), diag::err_multiversion_required_in_redecl)
9981 S.Diag(NewFD->getLocation(), diag::note_multiversioning_caused_here);
10011 S.Diag(NewFD->getLocation(), diag::err_multiversion_types_mixed);
10012 S.Diag(OldFD->getLocation(), diag::note_previous_declaration);
10047 S.Diag(NewFD->getLocation(), diag::err_multiversion_duplicate);
10048 S.Diag(CurFD->getLocation(), diag::note_previous_declaration);
10074 S.Diag(NewFD->getLocation(), diag::err_cpu_dispatch_mismatch);
10075 S.Diag(CurFD->getLocation(), diag::note_previous_declaration);
10098 S.Diag(NewFD->getLocation(), diag::err_cpu_specific_multiple_defs)
10100 S.Diag(CurFD->getLocation(), diag::note_previous_declaration);
10162 S.Diag(NewFD->getLocation(), diag::err_multiversion_types_mixed);
10175 S.Diag(NewFD->getLocation(), diag::err_multiversion_not_allowed_on_main);
10198 S.Diag(NewFD->getLocation(), diag::err_multiversion_required_in_redecl)
10341 Diag(MD->getLocation(), diag::warn_cxx14_compat_constexpr_not_const)
10418 Diag(NewFD->getLocation(),
10420 Diag((*OtherUnmarkedIter)->getLocation(),
10446 Diag(NewFD->getLocation(), diag::err_destructor_name);
10527 Diag(NewFD->getLocation(), diag::warn_return_value_udt_incomplete)
10531 Diag(NewFD->getLocation(), diag::warn_return_value_udt) << NewFD << R;
10565 Diag(NewFD->getLocation(),
10606 Diag(FD->getLocation(), diag::err_opencl_no_main)
10666 Diag(FD->getLocation(), diag::ext_variadic_main);
10678 Diag(FD->getLocation(), diag::err_main_surplus_args) << nparams;
10715 Diag(FD->getLocation(), diag::err_main_arg_wrong) << i << Expected[i];
10722 Diag(FD->getLocation(), diag::warn_main_one_arg);
10726 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD;
10746 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD;
11067 << DRE->getDecl() << OrigDecl->getLocation()
11132 Diag(VDecl->getLocation(), diag::err_auto_var_requires_init)
11151 VDecl->getLocation(), DirectInit, Init);
11343 S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11349 S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11369 S.Diag(RD->getLocation(), diag::note_non_trivial_c_union)
11408 S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11414 S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11434 S.Diag(RD->getLocation(), diag::note_non_trivial_c_union)
11474 S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11480 S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11500 S.Diag(RD->getLocation(), diag::note_non_trivial_c_union)
11558 Diag(Method->getLocation(), diag::err_member_function_initialization)
11567 Diag(RealDecl->getLocation(), diag::err_illegal_initializer);
11590 Diag(VDecl->getLocation(), diag::err_attribute_dllimport_data_definition);
11597 Diag(VDecl->getLocation(), diag::err_block_extern_cant_init);
11609 if (RequireCompleteType(VDecl->getLocation(), BaseDeclType,
11616 if (RequireNonAbstractType(VDecl->getLocation(), VDecl->getType(),
11666 Diag(VDecl->getLocation(), diag::err_local_cant_init);
11692 VDecl->getLocation(), DirectInit, Init);
11746 checkUnsafeAssigns(VDecl->getLocation(), VDecl->getType(), Init);
11778 ActOnFinishFullExpr(Init, VDecl->getLocation(),
11859 Diag(VDecl->getLocation(), diag::err_in_class_initializer_non_const)
11870 Diag(VDecl->getLocation(), diag::err_in_class_initializer_volatile);
11896 Diag(VDecl->getLocation(),
11903 Diag(VDecl->getLocation(), diag::ext_in_class_initializer_float_type)
11915 Diag(VDecl->getLocation(), diag::err_in_class_initializer_literal_type)
11921 Diag(VDecl->getLocation(), diag::err_in_class_initializer_bad_type)
11938 Diag(VDecl->getLocation(), diag::warn_extern_init);
12010 if (RequireCompleteType(VD->getLocation(),
12018 if (RequireNonAbstractType(VD->getLocation(), Ty,
12039 Diag(Var->getLocation(), diag::err_decomp_decl_requires_init) << Var;
12061 Diag(Var->getLocation(),
12068 Diag(Var->getLocation(), diag::err_invalid_constexpr_var_decl);
12079 Diag(Var->getLocation(), diag::err_opencl_constant_no_init);
12087 checkNonTrivialCUnion(Var->getType(), Var->getLocation(),
12110 RequireCompleteType(Var->getLocation(), Type,
12116 RequireNonAbstractType(Var->getLocation(), Type,
12122 Diag(Var->getLocation(), diag::warn_private_extern);
12123 Diag(Var->getLocation(), diag::note_private_extern);
12137 if (RequireCompleteType(Var->getLocation(),
12152 RequireCompleteType(Var->getLocation(), Type,
12166 Diag(Var->getLocation(),
12175 Diag(Var->getLocation(), diag::err_reference_var_requires_init)
12177 << SourceRange(Var->getLocation(), Var->getLocation());
12177 << SourceRange(Var->getLocation(), Var->getLocation());
12191 if (RequireCompleteType(Var->getLocation(),
12202 if (RequireNonAbstractType(Var->getLocation(), Type,
12251 = InitializationKind::CreateDefault(Var->getLocation());
12274 Diag(D->getLocation(), diag::err_for_range_decl_must_be_var);
12347 Diag(var->getLocation(), diag::err_opencl_invalid_block_declaration)
12386 var->getLocation())) {
12393 Diag(var->getLocation(), diag::warn_missing_variable_declarations) << var;
12414 Diag(var->getLocation(), diag::err_thread_nontrivial_dtor);
12416 Diag(var->getLocation(), diag::note_use_thread_local);
12426 Diag(var->getLocation(), diag::note_use_thread_local);
12490 SourceLocation DiagLoc = var->getLocation();
12518 Diag(var->getLocation(), diag::err_require_constant_init_failed)
12538 var->getLocation())) {
12545 Diag(var->getLocation(), diag::warn_global_constructor)
12663 Diag(VD->getLocation(), diag::err_tls_var_aligned_over_maximum)
12688 if (CUDADiagIfDeviceCode(VD->getLocation(),
12719 Diag(VD->getLocation(),
12739 Diag(VD->getLocation(), diag::err_attribute_dll_thread_local) << VD
12830 Diag(FirstDecompDeclaratorInGroup->getLocation(),
12841 Diag(FirstNonDeducedAutoInGroup->getLocation(),
12919 Group[0]->getLocation()) &&
12921 Group[0]->getLocation()))
13043 Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
13076 Diag(New->getLocation(), diag::err_module_private_local)
13082 Diag(New->getLocation(), diag::err_block_on_nonlocal);
13111 Diag(Parameter->getLocation(), diag::warn_unused_parameter)
13127 Diag(D->getLocation(), diag::warn_return_value_size)
13139 Diag(Parameter->getLocation(), diag::warn_parameter_size)
13188 checkNonTrivialCUnion(New->getType(), New->getLocation(),
13426 Diag(FD->getLocation(), diag::err_redefinition_extern_inline)
13429 Diag(FD->getLocation(), diag::err_redefinition) << FD->getDeclName();
13431 Diag(Definition->getLocation(), diag::note_previous_definition);
13555 Diag(FD->getLocation(), diag::err_builtin_definition) << FD;
13565 RequireCompleteType(FD->getLocation(), ResultType,
13613 ResolveExceptionSpec(D->getLocation(), FPT);
13619 Diag(FD->getLocation(), diag::err_attribute_dllimport_function_definition);
13629 Diag(FD->getLocation(), diag::warn_function_def_in_objc_container);
13783 Diag(dcl->getLocation(), diag::err_auto_fn_no_return_but_not_auto)
13822 Diag(FD->getLocation(), diag::ext_pure_function_definition);
13833 MarkVTableUsed(FD->getLocation(), Constructor->getParent());
13835 MarkVTableUsed(FD->getLocation(), Destructor->getParent());
13852 Diag(FD->getLocation(), diag::warn_missing_prototype) << FD;
13860 Diag(PossiblePrototype->getLocation(),
13915 MarkVTableUsed(Definition->getLocation(), MD->getParent(), true);
13918 MarkVTableUsed(FD->getLocation(), MD->getParent(), true);
13960 Diag(MD->getLocation(),
13962 Diag(InitMethod->getLocation(),
13970 Diag(MD->getLocation(),
14007 MarkBaseAndMemberDestructorsReferenced(Destructor->getLocation(),
14128 Diag(ExternCPrev->getLocation(), diag::note_previous_declaration);
14235 FD->getLocation()));
14245 FD->getLocation()));
14253 Context, Encoding.data(), Encoding.size(), FD->getLocation()));
14260 FD->addAttr(ConstAttr::CreateImplicit(Context, FD->getLocation()));
14275 FD->addAttr(ConstAttr::CreateImplicit(Context, FD->getLocation()));
14285 FD->getLocation()));
14287 FD->addAttr(NoThrowAttr::CreateImplicit(Context, FD->getLocation()));
14289 FD->addAttr(PureAttr::CreateImplicit(Context, FD->getLocation()));
14291 FD->addAttr(ConstAttr::CreateImplicit(Context, FD->getLocation()));
14299 FD->addAttr(CUDADeviceAttr::CreateImplicit(Context, FD->getLocation()));
14301 FD->addAttr(CUDAHostAttr::CreateImplicit(Context, FD->getLocation()));
14312 FD->addAttr(NoThrowAttr::CreateImplicit(Context, FD->getLocation()));
14335 FD->getLocation()));
14343 FD->getLocation()));
14370 Diag(NewTD->getLocation(), diag::err_module_private_local)
14426 Diag(Prev->getLocation(), diag::note_previous_declaration);
14438 Diag(Prev->getLocation(), diag::note_previous_declaration)
14445 Diag(Prev->getLocation(), diag::note_previous_declaration);
14544 return IsIgnoredLoc(Tag->getLocation());
14610 Diag(Redecl->getLocation(), diag::note_previous_use);
15128 Diag(Shadow->getTargetDecl()->getLocation(),
15130 Diag(Shadow->getUsingDecl()->getLocation(), diag::note_using_decl)
15160 Diag(PrevTagDecl->getLocation(), diag::note_previous_use);
15207 Diag(PrevTagDecl->getLocation(), diag::note_previous_declaration);
15306 Diag(PrevTagDecl->getLocation(),
15352 Diag(PrevDecl->getLocation(), diag::note_declared_at);
15364 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl;
15374 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl;
15429 Diag(Def->getLocation(), diag::note_previous_definition);
15470 Diag(New->getLocation(), diag::err_type_defined_in_type_specifier)
15477 Diag(New->getLocation(), diag::err_type_defined_in_enum)
15519 Diag(New->getLocation(), diag::err_module_private_specialization)
15691 Record->getLocation(), Record->getIdentifier(),
16122 Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
16145 Diag(NewFD->getLocation(), getLangOpts().MicrosoftExt ?
16215 SourceLocation Loc = FD->getLocation();
16224 Diag(FD->getLocation(), getLangOpts().CPlusPlus11 ?
16330 Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
16472 Diag(FD->getLocation(), diag::err_field_declared_as_function)
16486 Diag(FD->getLocation(), diag::err_flexible_array_not_at_end)
16488 Diag((*(i + 1))->getLocation(), diag::note_next_field_declaration);
16506 Diag(FD->getLocation(), DiagID) << FD->getDeclName()
16514 Diag(FD->getLocation(), diag::err_flexible_array_virtual_base)
16517 Diag(FD->getLocation(), diag::ext_c99_flexible_array_member)
16527 Diag(FD->getLocation(), diag::err_flexible_array_has_nontrivial_dtor)
16541 RequireCompleteType(FD->getLocation(), FD->getType(),
16557 Diag(FD->getLocation(), diag::ext_variable_sized_type_in_struct)
16562 Diag(FD->getLocation(), diag::ext_flexible_array_in_struct)
16568 RequireNonAbstractType(FD->getLocation(), FD->getType(),
16580 Diag(FD->getLocation(), diag::err_statically_allocated_object)
16581 << FixItHint::CreateInsertion(FD->getLocation(), "*");
16586 getSourceManager().isInSystemHeader(FD->getLocation()) &&
16598 FD->getLocation()));
16692 Diag(Record->getLocation(), diag::err_multiple_final_overriders)
16694 Diag(M->first->getLocation(),
16700 Diag(OM->Method->getLocation(), diag::note_final_overrider)
16725 SetDeclDeleted(Dtor, CXXRecord->getLocation());
16827 Diag(ClsFields[i]->getLocation(),
16829 Diag(ClsIvar->getLocation(), diag::note_previous_definition);
16835 Diag(ClsFields[i]->getLocation(),
16837 Diag(ClsExtIvar->getLocation(), diag::note_previous_definition);
17220 if (S.Diags.isIgnored(diag::warn_duplicate_enum_values, Enum->getLocation()))
17305 S.Diag(FirstECD->getLocation(), diag::warn_duplicate_enum_values)
17312 S.Diag(ECD->getLocation(), diag::note_duplicate_element)
17458 Diag(Enum->getLocation(), diag::ext_enum_too_large);
17573 Diag(ECD->getLocation(), diag::warn_flag_enum_constant_out_of_range)
17615 Diag(PrevDecl->getLocation(), diag::warn_redefine_extname_not_applied)
tools/clang/lib/Sema/SemaDeclAttr.cpp 2570 S.Diag(M->getLocation(), diag::err_init_method_bad_return_type)
2583 S.Diag(TD->getLocation(), diag::err_nsobject_attribute);
2590 S.Diag(PD->getLocation(), diag::err_nsobject_attribute);
2601 S.Diag(D->getLocation(), diag::warn_nsobject_attribute);
2610 S.Diag(TD->getLocation(), diag::warn_ptr_independentclass_attribute);
2614 S.Diag(D->getLocation(), diag::warn_independentclass_attribute);
3070 if (S.CheckAssignmentConstraints(FD->getParamDecl(0)->getLocation(),
3319 S.Diag(D->getLocation(), diag::err_format_attribute_requires_variadic);
3515 S.Diag(FirstField->getLocation(),
3540 S.Diag(Field->getLocation(),
3544 S.Diag(FirstField->getLocation(),
3743 Diag(VD->getLocation(), diag::err_tls_var_aligned_over_maximum)
3824 Diag(RD->getDefinition()->getLocation(), diag::note_defined_here)
4091 Diag(VD->getLocation(), diag::warn_internal_linkage_local_storage);
4114 Diag(VD->getLocation(), diag::warn_internal_linkage_local_storage);
5129 S.Diag(PDecl->getLocation(), diag::note_protocol_decl);
5205 S.Diag(D->getLocation(), diag::err_designated_init_attr_non_init);
5460 S.Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)
5466 S.Diag(D->getLocation(), diag::warn_interrupt_attribute_invalid)
5472 S.Diag(D->getLocation(), diag::warn_interrupt_attribute_invalid)
5533 S.Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)
5539 S.Diag(D->getLocation(), diag::warn_interrupt_attribute_invalid)
5545 S.Diag(D->getLocation(), diag::warn_interrupt_attribute_invalid)
5629 S.Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)
5642 S.Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)
5655 S.Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)
5662 S.Diag(D->getLocation(), diag::err_alias_is_definition) << FD << 0;
5677 S.Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)
5684 S.Diag(D->getLocation(), diag::err_alias_is_definition) << FD << 0;
5727 S.Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type)
5733 S.Diag(D->getLocation(), diag::warn_interrupt_attribute_invalid)
5739 S.Diag(D->getLocation(), diag::warn_interrupt_attribute_invalid)
6174 S.Diag(D->getLocation(), diag::err_attribute_wrong_decl_type)
6193 S.Diag(D->getLocation(), diag::err_attribute_wrong_decl_type)
6313 S.Diag(D->getLocation(), diag::err_destroy_attr_on_non_static_var)
6481 << AL << D->getLocation();
7231 Diag(D->getLocation(), diag::err_opencl_kernel_attr) << A;
7234 Diag(D->getLocation(), diag::err_opencl_kernel_attr) << A;
7237 Diag(D->getLocation(), diag::err_opencl_kernel_attr) << A;
7240 Diag(D->getLocation(), diag::err_opencl_kernel_attr) << A;
7244 Diag(D->getLocation(), diag::err_attribute_wrong_decl_type)
7248 Diag(D->getLocation(), diag::err_attribute_wrong_decl_type)
7252 Diag(D->getLocation(), diag::err_attribute_wrong_decl_type)
7256 Diag(D->getLocation(), diag::err_attribute_wrong_decl_type)
7270 Diag(D->getLocation(), diag::err_designated_init_attr_non_init);
7365 VD->getInnerLocStart(), VD->getLocation(), II,
7476 if (S.Context.getSourceManager().isInSystemHeader(D->getLocation())) {
7807 SourceLocation NoteLocation = OffendingDecl->getLocation();
7836 NoteLocation = Redecl->getLocation();
7864 S.Diag(OffendingDecl->getLocation(),
7872 S.Diag(TD->getLocation(),
7878 S.Diag(Enclosing->getLocation(),
7930 OffendingDecl->getLocation()))
8012 S.Diag(ObjCProperty->getLocation(), diag::note_property_attribute)
8017 S.Diag(ObjCProperty->getLocation(), diag::note_property_attribute)
8021 S.Diag(UnknownObjCClass->getLocation(), diag::note_forward_class);
8327 SemaRef.Diag(OffendingDecl->getLocation(),
tools/clang/lib/Sema/SemaDeclCXX.cpp 252 if (RequireCompleteType(Param->getLocation(), Param->getType(),
266 InitializationKind Kind = InitializationKind::CreateCopy(Param->getLocation(),
407 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc)
410 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc)
537 Diag(NewParam->getLocation(), DiagDefaultParamID)
548 Diag(OldParam->getLocation(), diag::note_previous_definition)
571 Diag(NewParam->getLocation(),
574 Diag(PrevForDefaultArgs->getLocation(),
589 Diag(NewParam->getLocation(), diag::err_template_spec_default_arg)
614 Diag(NewParam->getLocation(),
632 Diag(NewParam->getLocation(), diag::err_default_arg_makes_ctor_special)
634 Diag(Old->getLocation(), diag::note_previous_declaration);
643 Diag(New->getLocation(), diag::err_constexpr_redecl_mismatch)
645 Diag(Old->getLocation(), diag::note_previous_declaration);
657 Diag(New->getLocation(), diag::err_inline_decl_follows_def) << New;
658 Diag(Def->getLocation(), diag::note_previous_definition);
668 Diag(New->getLocation(), diag::err_deduction_guide_redeclared);
669 Diag(Old->getLocation(), diag::note_previous_declaration);
678 Diag(New->getLocation(), diag::err_friend_decl_with_def_arg_redeclared);
679 Diag(Old->getLocation(), diag::note_previous_declaration);
841 Diag(Old->getLocation(), diag::note_previous_definition);
878 S.Diag(Src->getLocation(), diag::err_decomp_decl_wrong_number_bindings)
886 SourceLocation Loc = B->getLocation();
991 S.Diag(Found->getLocation(), diag::note_declared_at);
1095 S.Diag(R.getRepresentativeDecl()->getLocation(), diag::note_declared_at);
1112 S.Diag(BD->getLocation(), diag::note_in_binding_decl_init) << BD;
1122 S.Diag(Src->getLocation(), diag::err_decomp_decl_wrong_number_bindings)
1136 LookupResult MemberGet(S, GetDN, Src->getLocation(), Sema::LookupMemberName);
1138 if (S.isCompleteType(Src->getLocation(), DecompType)) {
1162 SourceLocation Loc = B->getLocation();
1329 if (S.RequireCompleteType(Src->getLocation(), DecompType,
1335 findDecomposableBaseClass(S, Src->getLocation(), OrigRD, BasePath);
1347 S.Diag(Src->getLocation(), diag::err_decomp_decl_wrong_number_bindings)
1362 S.Diag(Src->getLocation(), diag::err_decomp_decl_anon_union_member)
1364 S.Diag(FD->getLocation(), diag::note_declared_at);
1372 SourceLocation Loc = B->getLocation();
1453 switch (isTupleLike(*this, DD->getLocation(), DecompType, TupleSize)) {
1471 Diag(DD->getLocation(), diag::err_decomp_decl_unbindable_type)
1520 OldType->getAs<FunctionProtoType>(), Old->getLocation(),
1521 NewType->getAs<FunctionProtoType>(), New->getLocation())) {
1553 Diag(Param->getLocation(),
1557 Diag(Param->getLocation(),
1611 SemaRef.Diag(DD->getLocation(), diag::err_constexpr_dtor_subobject)
1625 if (!Check(FD->getLocation(), FD->getType(), FD))
1642 SourceLocation ParamLoc = PD->getLocation();
1692 Diag(NewFD->getLocation(), diag::err_constexpr_virtual_base)
1711 Diag(Method->getLocation(), diag::warn_cxx17_compat_constexpr_virtual);
1717 Diag(Method->getLocation(), diag::err_constexpr_virtual);
1725 Diag(WrittenVirtual->getLocation(),
1733 if (CheckLiteralType(*this, Kind, NewFD->getLocation(), RT,
1836 SemaRef.Diag(VD->getLocation(),
1843 if (CheckLiteralType(SemaRef, Kind, VD->getLocation(), VD->getType(),
1851 VD->getLocation(),
1863 SemaRef.Diag(VD->getLocation(),
1936 SemaRef.Diag(Dcl->getLocation(),
1942 SemaRef.Diag(Field->getLocation(),
2189 Dcl->getLocation(),
2247 SemaRef.Diag(Dcl->getLocation(),
2300 SemaRef.Diag(Dcl->getLocation(),
2417 Diag(Class->getLocation(), diag::err_base_clause_on_union)
2443 Diag(BaseDecl->getLocation(), diag::note_previous_decl)
2503 Diag(Class->getLocation(), diag::err_mismatched_code_seg_base);
2504 Diag(CXXBaseDecl->getLocation(), diag::note_base_class_specified_here)
2528 Diag(CXXBaseDecl->getLocation(), diag::note_entity_declared_at)
3025 Diag(MD->getLocation(), diag::err_function_marked_override_not_overriding)
3036 SourceLocation Loc = MD->getLocation();
3048 Diag(MD->getLocation(), DiagID) << MD->getDeclName();
3050 Diag(OMD->getLocation(), diag::note_overridden_virtual_function);
3063 Diag(New->getLocation(), diag::err_final_function_overridden)
3066 Diag(Old->getLocation(), diag::note_overridden_virtual_function);
3135 Diag(BaseField->getLocation(), diag::note_shadow_field);
3437 if (!Diags.isIgnored(diag::warn_unused_private_field, FD->getLocation())) {
3595 S.Diag(Constructor->getLocation(),
3794 Constructor->getLocation())) {
3950 if (SemaRef.IsDerivedFrom(ClassDecl->getLocation(),
4198 MarkAnyDeclReferenced(TyD->getLocation(), TyD, /*OdrUse=*/false);
4521 = InitializationKind::CreateDefault(Constructor->getLocation());
4536 Constructor->getLocation(), ParamType,
4558 = InitializationKind::CreateDirect(Constructor->getLocation(),
4596 SourceLocation Loc = Constructor->getLocation();
4711 SemaRef.Diag(Constructor->getLocation(),
4716 SemaRef.Diag(Field->getLocation(), diag::note_declared_at);
4721 SemaRef.Diag(Constructor->getLocation(),
4726 SemaRef.Diag(Field->getLocation(), diag::note_declared_at);
4881 SemaRef.BuildCXXDefaultInitExpr(Info.Ctor->getLocation(), Field);
5112 MarkBaseAndMemberDestructorsReferenced(Constructor->getLocation(),
5406 CheckDestructorAccess(Field->getLocation(), Dtor,
5475 ClassDecl->getLocation(), Dtor,
5482 diag::err_access_dtor_vbase, 0, ClassDecl->getLocation(),
5575 Diag(SO->second.front().Method->getLocation(),
5685 Info.S.Diag(Ctx->getLocation(), diag::err_array_of_abstract_type)
5688 Info.S.Diag(Ctx->getLocation(), diag::err_abstract_type_in_decl)
5765 S.MarkVTableUsed(Class->getLocation(), Class, true);
5774 S.MarkVariableReferenced(VD->getLocation(), VD);
5788 S.MarkFunctionReferenced(Class->getLocation(), MD);
5800 S.MarkFunctionReferenced(Class->getLocation(), MD);
5842 S.Diag(LastExportedDefaultCtor->getLocation(),
5845 S.Diag(CD->getLocation(), diag::note_entity_declared_at)
5883 Diag(Class->getLocation(), diag::err_attribute_dll_not_extern)
6077 Diag(BaseTemplateSpec->getLocation(),
6315 Diag(Record->getLocation(), diag::warn_no_constructor_for_refconst)
6320 Diag(F->getLocation(), diag::note_refconst_member_not_initialized)
6343 Diag((*I)->getLocation(), diag::err_member_name_of_class)
6355 Diag(dtor ? dtor->getLocation() : Record->getLocation(),
6355 Diag(dtor ? dtor->getLocation() : Record->getLocation(),
6361 Diag(Record->getLocation(), diag::warn_abstract_final_class)
6374 getLocForEndOfToken(Record->getLocation()),
6376 Diag(Record->getLocation(),
6440 DefineImplicitSpecialMember(*this, M, M->getLocation());
6497 Diag(Record->getLocation(), diag::warn_cxx_ms_struct);
6608 S.Diag(ConstructedBaseUsing->getLocation(),
6613 S.Diag(D->getUsingDecl()->getLocation(),
6884 Diag(MD->getLocation(), diag::err_defaulted_special_member_params)
6891 Diag(MD->getLocation(), diag::err_defaulted_special_member_variadic)
6915 Diag(MD->getLocation(), diag::err_defaulted_special_member_return_type)
6925 Diag(MD->getLocation(), diag::err_defaulted_special_member_quals)
6944 Diag(MD->getLocation(),
6954 Diag(MD->getLocation(),
6960 Diag(MD->getLocation(),
6970 Diag(MD->getLocation(), diag::err_defaulted_copy_assign_not_ref);
7022 SetDeclDeleted(MD, MD->getLocation());
7024 Diag(MD->getLocation(), diag::warn_defaulted_method_deleted) << CSM;
7026 Diag(MD->getLocation(), diag::note_deleted_type_mismatch) << CSM;
7032 Diag(MD->getLocation(),
7039 Diag(MD->getLocation(), diag::err_out_of_line_default_deletes) << CSM;
7066 Diag(FD->getLocation(), diag::err_defaulted_comparison_param)
7080 Diag(MD->getLocation(), diag::err_defaulted_comparison_non_const)
7117 Diag(FD->getLocation(),
7121 Diag(ReferenceMember->getLocation(), diag::note_reference_member)
7126 Diag(FD->getLocation(),
7139 Diag(FD->getLocation(), diag::err_defaulted_comparison_return_type_not_bool)
7256 return Subobj.get<FieldDecl*>()->getLocation();
7311 Loc(MD->getLocation()), AllFieldsAreConst(true) {}
7389 S.Diag(Field->getLocation(),
7466 S.Diag(FD->getLocation(),
7518 S.Diag(FD->getLocation(), diag::note_deleted_default_ctor_uninit_field)
7530 S.Diag(FD->getLocation(), diag::note_deleted_default_ctor_uninit_field)
7542 S.Diag(FD->getLocation(), diag::note_deleted_copy_ctor_rvalue_reference)
7550 S.Diag(FD->getLocation(), diag::note_deleted_assign_field)
7558 S.Diag(FD->getLocation(), diag::note_deleted_assign_field)
7591 S.Diag(FieldRecord->getLocation(),
7624 S.Diag(MD->getParent()->getLocation(),
7653 Diag(RD->getLocation(), diag::note_lambda_decl);
7706 Diag(UserDeclaredMove->getLocation(),
7724 if (FindDeallocationFunction(MD->getLocation(), MD->getParent(), Name,
7727 Diag(RD->getLocation(), diag::note_deleted_dtor_no_operator_delete);
7954 S.Diag(CD->getLocation(), diag::note_user_declared_ctor);
7960 S.Diag(Selected->getLocation(), diag::note_nontrivial_user_provided)
7965 S.Diag(Selected->getLocation(), diag::note_declared_at);
8008 S.Diag(FI->getLocation(), diag::note_nontrivial_in_class_init) << FI;
8018 S.Diag(FI->getLocation(), diag::note_nontrivial_objc_ownership)
8024 if (!checkTrivialSubobjectCall(S, FI->getLocation(), FieldType, ConstRHS,
8038 checkTrivialSubobjectCall(*this, RD->getLocation(), Ty, ConstArg, CSM,
8071 Diag(Param0->getLocation(), diag::note_nontrivial_param_type)
8088 Diag(Param0->getLocation(), diag::note_nontrivial_param_type)
8102 Diag(MD->getParamDecl(MD->getMinRequiredArguments())->getLocation(),
8109 Diag(MD->getLocation(), diag::note_nontrivial_variadic);
8147 Diag(MD->getLocation(), diag::note_nontrivial_virtual_dtor) << RD;
8298 Diag(overloadedMD->getLocation(), PD);
8308 if (Diags.isIgnored(diag::warn_overloaded_virtual, MD->getLocation()))
8314 Diag(MD->getLocation(), diag::warn_overloaded_virtual)
8710 SourceLocation ParamLoc = Constructor->getParamDecl(0)->getLocation();
8734 Loc = Destructor->getLocation();
8736 Loc = RD->getLocation();
8754 ActOnCXXThis(OperatorDelete->getParamDecl(0)->getLocation());
9096 Diag(Conversion->getLocation(), diag::warn_conv_to_self_not_used)
9098 else if (IsDerivedFrom(Conversion->getLocation(), ClassType, ConvType))
9099 Diag(Conversion->getLocation(), diag::warn_conv_to_base_not_used)
9102 Diag(Conversion->getLocation(), diag::warn_conv_to_void_not_used)
9160 Diag(GuidedTemplateDecl->getLocation(), diag::note_template_decl_here);
9299 S.Diag(PrevNS->getLocation(), diag::note_previous_definition);
9347 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
9523 S.Diag(VD->getLocation(), diag::note_var_declared_here)
9723 S.Diag(Found->getLocation(), diag::err_malformed_std_initializer_list);
9732 S.Diag(Template->getLocation(), diag::err_malformed_std_initializer_list);
10061 Diag(Using->getLocation(),
10064 Diag(Orig->getLocation(), diag::note_using_decl_target);
10074 Diag(Orig->getLocation(), diag::note_using_decl_target);
10111 DeclarationNameInfo(Using->getDeclName(), Using->getLocation())))
10140 Diag(Using->getLocation(), diag::err_using_decl_conflict);
10152 Diag(Using->getLocation(), diag::err_using_decl_conflict);
10156 Diag(Target->getLocation(), diag::note_using_decl_target);
10157 Diag(OldDecl->getLocation(), diag::note_using_decl_conflict);
10168 Diag(Using->getLocation(), diag::err_using_decl_conflict);
10169 Diag(Target->getLocation(), diag::note_using_decl_target);
10170 Diag(Tag->getLocation(), diag::note_using_decl_conflict);
10178 Diag(Using->getLocation(), diag::err_using_decl_conflict);
10179 Diag(Target->getLocation(), diag::note_using_decl_target);
10180 Diag(NonTag->getLocation(), diag::note_using_decl_conflict);
10217 Context, CurContext, UD->getLocation(), UD, Orig, IsVirtualBase);
10219 Shadow = UsingShadowDecl::Create(Context, CurContext, UD->getLocation(), UD,
10596 Diag((*I)->getUnderlyingDecl()->getLocation(),
10606 Diag(R.getFoundDecl()->getLocation(), diag::note_using_decl_target);
10723 Diag(D->getLocation(), diag::note_previous_definition);
10761 Diag(D->getLocation(), diag::note_using_decl) << 1;
11049 if (OldD->getLocation().isValid())
11050 Diag(OldD->getLocation(), diag::note_previous_definition);
11071 Diag(NewTD->getLocation(), diag::err_redefinition_different_typedef)
11073 if (OldTD->getLocation().isValid())
11074 Diag(OldTD->getLocation(), diag::note_previous_definition);
11165 Diag(AD->getLocation(), diag::note_previous_namespace_alias)
11174 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
11320 SpecialMemberExceptionSpecInfo Info(S, MD, CSM, ICI, MD->getLocation());
11327 if (S.RequireCompleteType(MD->getLocation(),
11379 Ctx.PointOfInstantiation = RD->getLocation();
11452 SourceLocation ClassLoc = ClassDecl->getLocation();
11523 : Constructor->getLocation();
11546 SourceLocation UsingLoc = Shadow->getLocation();
11624 InheritedConstructorInfo ICI(*this, Ctor->getLocation(),
11664 SourceLocation InitLoc = Shadow->getLocation();
11729 SourceLocation ClassLoc = ClassDecl->getLocation();
11800 MarkBaseAndMemberDestructorsReferenced(Destructor->getLocation(),
11810 : Destructor->getLocation();
11840 DefineImplicitSpecialMember(*this, M, M->getLocation());
12349 SourceLocation ClassLoc = ClassDecl->getLocation();
12436 S.Diag(UserDeclaredOperation->getLocation(),
12501 : CopyAssignOperator->getLocation();
12563 Diag(ClassDecl->getLocation(), diag::err_uninitialized_member_for_assign)
12565 Diag(Field->getLocation(), diag::note_declared_at);
12573 Diag(ClassDecl->getLocation(), diag::err_uninitialized_member_for_assign)
12575 Diag(Field->getLocation(), diag::note_declared_at);
12670 SourceLocation ClassLoc = ClassDecl->getLocation();
12858 : MoveAssignOperator->getLocation();
12931 Diag(ClassDecl->getLocation(), diag::err_uninitialized_member_for_assign)
12933 Diag(Field->getLocation(), diag::note_declared_at);
12941 Diag(ClassDecl->getLocation(), diag::err_uninitialized_member_for_assign)
12943 Diag(Field->getLocation(), diag::note_declared_at);
13048 SourceLocation ClassLoc = ClassDecl->getLocation();
13145 : CopyConstructor->getLocation();
13179 SourceLocation ClassLoc = ClassDecl->getLocation();
13270 : MoveConstructor->getLocation();
13324 Invoker->setBody(new (Context) CompoundStmt(Conv->getLocation()));
13328 VK_LValue, Conv->getLocation());
13330 Stmt *Return = BuildReturnStmt(Conv->getLocation(), FunctionRef).get();
13331 Conv->setBody(CompoundStmt::Create(Context, Return, Conv->getLocation(),
13332 Conv->getLocation()));
13357 Conv->getLocation(),
13377 StmtResult Return = BuildReturnStmt(Conv->getLocation(), BuildBlock.get());
13386 Conv->setBody(CompoundStmt::Create(Context, ReturnS, Conv->getLocation(),
13387 Conv->getLocation()));
13596 MarkFunctionReferenced(VD->getLocation(), Destructor);
13597 CheckDestructorAccess(VD->getLocation(), Destructor,
13600 DiagnoseUseOfDecl(Destructor, VD->getLocation());
13611 Diag(VD->getLocation(),
13622 Diag(VD->getLocation(), diag::warn_exit_time_destructor);
13626 Diag(VD->getLocation(), diag::warn_global_destructor);
13681 return SemaRef.Diag(FnDecl->getLocation(),
13688 return SemaRef.Diag(FnDecl->getLocation(),
13714 return SemaRef.Diag(FnDecl->getLocation(),
13727 return SemaRef.Diag(FnDecl->getLocation(),
13733 return SemaRef.Diag(FnDecl->getLocation(),
13739 return SemaRef.Diag(FnDecl->getLocation(),
13746 return SemaRef.Diag(FnDecl->getLocation(), DependentParamTypeDiag)
13759 return SemaRef.Diag(FnDecl->getLocation(), InvalidParamTypeDiag)
13789 return SemaRef.Diag(FnDecl->getLocation(),
13830 SemaRef.Diag(MD->getLocation(),
13866 return Diag(FnDecl->getLocation(),
13880 return Diag(FnDecl->getLocation(),
13894 return Diag(Param->getLocation(),
13933 return Diag(FnDecl->getLocation(), diag::err_operator_overload_must_be)
13940 return Diag(FnDecl->getLocation(), diag::err_operator_overload_variadic)
13946 return Diag(FnDecl->getLocation(),
13967 return Diag(LastParam->getLocation(),
14005 SemaRef.Diag(TpDecl->getLocation(),
14023 Diag(FnDecl->getLocation(), diag::err_literal_operator_outside_namespace)
14029 Diag(FnDecl->getLocation(), diag::err_literal_operator_extern_c);
14048 Diag(FnDecl->getLocation(),
14155 Diag(FnDecl->getLocation(), diag::err_literal_operator_bad_param_count);
14175 !getSourceManager().isInSystemHeader(FnDecl->getLocation())) {
14179 Diag(FnDecl->getLocation(), diag::warn_user_literal_reserved)
14408 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
15116 Diag(FD->getLocation(), diag::err_friend_decl_with_def_arg_redeclared);
15117 Diag(Previous.getRepresentativeDecl()->getLocation(),
15120 Diag(FD->getLocation(), diag::err_friend_decl_with_def_arg_must_be_def);
15125 Diag(FD->getLocation(), diag::warn_template_qualified_friend_unsupported)
15154 Diag(Prev->getLocation().isInvalid() ? DelLoc : Prev->getLocation(),
15154 Diag(Prev->getLocation().isInvalid() ? DelLoc : Prev->getLocation(),
15165 Diag(Fn->getLocation(), diag::err_attribute_dll_deleted) << DLLAttr;
15182 Diag(O->getLocation(), diag::note_overridden_virtual_function);
15237 Diag(FD->getLocation(), diag::err_defaulted_comparison_out_of_class)
15318 Diag(New->getParamDecl(I)->getLocation(),
15320 Diag(Old->getParamDecl(I)->getLocation(),
15330 Diag(New->getLocation(), diag::err_mismatched_code_seg_override);
15331 Diag(Old->getLocation(), diag::note_previous_declaration);
15348 Diag(New->getLocation(),
15351 Diag(Old->getLocation(), diag::note_overridden_virtual_function);
15384 Diag(New->getLocation(),
15388 Diag(Old->getLocation(), diag::note_overridden_virtual_function)
15402 RequireCompleteType(New->getLocation(), NewClassTy,
15409 if (!IsDerivedFrom(New->getLocation(), NewClassTy, OldClassTy)) {
15410 Diag(New->getLocation(), diag::err_covariant_return_not_derived)
15413 Diag(Old->getLocation(), diag::note_overridden_virtual_function)
15423 New->getLocation(), New->getReturnTypeSourceRange(),
15429 Diag(Old->getLocation(), diag::note_overridden_virtual_function)
15437 Diag(New->getLocation(),
15441 Diag(Old->getLocation(), diag::note_overridden_virtual_function)
15449 Diag(New->getLocation(),
15453 Diag(Old->getLocation(), diag::note_overridden_virtual_function)
15477 Diag(Method->getLocation(), diag::err_non_virtual_pure)
15484 Diag(D->getLocation(), diag::err_pure_friend);
15488 Diag(D->getLocation(), diag::err_illegal_initializer);
15556 Diag(Dcl->getLocation(), diag::err_invalid_use_of_function_type)
15731 Diag(Class->getLocation(),
15805 InitializationKind::CreateDefault(ObjCImplementation->getLocation());
15829 MarkFunctionReferenced(Field->getLocation(), Destructor);
15830 CheckDestructorAccess(Field->getLocation(), Destructor,
15884 S.Diag(Target->getLocation(), diag::note_it_delegates_to);
15894 S.Diag(C->getLocation(), diag::note_which_delegates_to);
tools/clang/lib/Sema/SemaDeclObjC.cpp 95 SourceLocation loc = method->getLocation();
116 S.Diag(NewD->getLocation(), diag::warn_overriding_method_missing_noescape);
117 S.Diag(OldD->getLocation(), diag::note_overridden_marked_noescape);
130 S.Diag(CD->getLocation(), diag::note_cat_conform_to_noescape_prot)
161 Diag(NewMethod->getLocation(),
167 Diag(NewMethod->getLocation(),
174 Diag(Overridden->getLocation(),
179 Diag(Overridden->getLocation(),
185 Diag(NewMethod->getLocation(),
190 Diag(Overridden->getLocation(), diag::note_previous_decl) << "method";
194 Diag(NewMethod->getLocation(),
199 Diag(Overridden->getLocation(), diag::note_previous_decl) << "method";
211 Diag(newDecl->getLocation(),
215 Diag(oldDecl->getLocation(), diag::note_previous_decl) << "parameter";
242 Diag(method->getLocation(), diag::err_dealloc_bad_result_type)
246 Diag(method->getLocation(), diag::err_dealloc_bad_result_type)
301 S.Diag(ND->getLocation(), diag::note_method_declared_at)
319 S.Diag(ND->getLocation(), diag::note_method_declared_at)
322 S.Diag(ND->getLocation(), diag::note_previous_decl)
375 RequireCompleteType(MDecl->getLocation(), ResultType,
401 Diag(Param->getLocation(), diag::warn_arc_strong_pointer_objc_pointer) <<
415 Diag(MDecl->getLocation(), diag::err_arc_illegal_method_def)
458 DiagnoseObjCImplementedDeprecations(*this, IMD, MDecl->getLocation());
609 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
787 Diag(typeParam->getLocation(), diag::err_objc_type_param_redecl)
789 << SourceRange(known->second->getLocation());
835 diagLoc = newTypeParams->begin()[prevTypeParams->size()]->getLocation();
905 S.Diag(prevTypeParam->getLocation(), diag::note_objc_type_param_here)
935 S.Diag(prevTypeParam->getLocation(), diag::note_objc_type_param_here)
952 = S.getLocForEndOfToken(newTypeParam->getLocation());
956 S.Diag(newTypeParam->getLocation(),
963 S.Diag(prevTypeParam->getLocation(), diag::note_objc_type_param_here)
992 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
1063 Diag(Def->getLocation(), diag::note_previous_definition);
1143 Diag(ADecl->getLocation(), diag::note_previous_declaration);
1166 Diag(CDeclU->getLocation(), diag::note_previous_declaration);
1200 PDecl->getLocation(), PDecl->getReferencedProtocols()))
1221 Diag(Def->getLocation(), diag::note_previous_definition);
1243 ProtocolName, ProtocolLoc, PrevDecl->getLocation(), PList);
1330 Diag(UndefinedProtocol->getLocation(), diag::note_protocol_decl_undefined)
1467 Diag(forwardDecl->getLocation(), diag::note_protocol_decl_undefined)
1760 Diag(Method->getLocation(), diag::err_duplicate_method_decl)
1762 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
1829 Diag(IDecl->getImplementation()->getLocation(),
1840 Diag(Previous->getLocation(), diag::note_previous_definition);
1943 Diag(CatIDecl->getImplementation()->getLocation(),
1951 CDecl->getLocation());
1972 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
2006 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
2019 Diag(SDecl->getLocation(), diag::note_previous_definition);
2068 Diag(IDecl->getImplementation()->getLocation(),
2076 DiagnoseObjCImplementedDeprecations(*this, IDecl, IMPDecl->getLocation());
2138 Diag(ImpDecl->getLocation(), diag::warn_on_superclass_use);
2143 Diag(ImplIvar->getLocation(), diag::err_duplicate_ivar_declaration);
2144 Diag(ClsIvar->getLocation(), diag::note_previous_definition);
2151 Diag(ImplIvar->getLocation(), diag::err_duplicate_ivar_declaration);
2152 Diag(ClsExtIvar->getLocation(), diag::note_previous_definition);
2177 Diag(ImplIvar->getLocation(), diag::err_conflicting_ivar_type)
2180 Diag(ClsIvar->getLocation(), diag::note_previous_definition);
2192 Diag(ImplIvar->getLocation(), diag::err_conflicting_ivar_name)
2194 Diag(ClsIvar->getLocation(), diag::note_previous_definition);
2200 Diag(ivars[j]->getLocation(), diag::err_inconsistent_ivar_count);
2202 Diag(IVI->getLocation(), diag::err_inconsistent_ivar_count);
2318 S.Diag(MethodImpl->getLocation(),
2324 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration)
2339 S.Diag(MethodImpl->getLocation(),
2349 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration);
2381 S.Diag(MethodImpl->getLocation(), DiagID)
2385 S.Diag(MethodDecl->getLocation(), IsOverridingMode
2405 S.Diag(ImplVar->getLocation(),
2409 else S.Diag(ImplVar->getLocation(),
2413 S.Diag(IfaceVar->getLocation(), diag::note_previous_declaration)
2425 S.Diag(ImplVar->getLocation(),
2435 S.Diag(IfaceVar->getLocation(), diag::note_previous_declaration);
2465 S.Diag(ImplVar->getLocation(), DiagID)
2468 S.Diag(IfaceVar->getLocation(),
2541 S.Diag(impl->getLocation(), errorID) << int(familySelector) << int(reasonSelector);
2542 S.Diag(decl->getLocation(), noteID) << int(familySelector) << int(reasonSelector);
2567 Diag(ImpMethodDecl->getLocation(),
2569 Diag(MethodDecl->getLocation(), diag::note_previous_declaration);
2590 Diag(Method->getLocation(),
2592 Diag(Overridden->getLocation(), diag::note_previous_declaration);
2632 Diag(ImpMethodDecl->getLocation(),
2634 Diag(MethodDecl->getLocation(), diag::note_method_declared_at)
2821 WarnUndefinedMethod(*this, IMPDecl->getLocation(), I, IncompleteImpl,
2848 WarnUndefinedMethod(*this, IMPDecl->getLocation(), I, IncompleteImpl,
3012 CheckProtocolMethodDefs(*this, IMPDecl->getLocation(), PI, IncompleteImpl,
3019 CheckProtocolMethodDefs(*this, IMPDecl->getLocation(), P,
3052 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
3061 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
3104 Diag(Def->getLocation(), diag::note_defined_here)
3735 Diag(Ivar->getLocation(), diag::err_duplicate_member) << II;
3736 Diag(prevIvar->getLocation(), diag::note_previous_declaration);
3752 S.Diag(ivar->getLocation(), diag::err_arc_weak_disabled);
3754 S.Diag(ivar->getLocation(), diag::err_arc_weak_no_runtime);
3774 S.Diag(ivar->getLocation(), diag::err_flexible_array_arc_retainable);
3827 S.Diag(ivar->getLocation(), diag::warn_variable_sized_ivar_visibility)
3845 S.Diag(ivar->getLocation(), diag::err_flexible_array_not_at_end)
3851 S.Diag(ivar->getLocation(),
3858 S.Diag(ivar->getNextIvar()->getLocation(),
3879 S.Diag(FirstIvar->getLocation(),
3883 S.Diag(LastIvar->getLocation(), diag::note_entity_declared_at)
3922 Diag(Method->getLocation(), diag::err_duplicate_method_decl)
3924 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
3930 Method->getLocation()))
3931 Diag(Method->getLocation(), diag::warn_duplicate_method_decl)
3933 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
3946 Diag(Method->getLocation(), diag::err_duplicate_method_decl)
3948 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
3954 Method->getLocation()))
3955 Diag(Method->getLocation(), diag::warn_duplicate_method_decl)
3957 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
4028 SourceLocation DeclLoc(IDecl->getLocation());
4047 Diag(IDecl->getLocation(), diag::err_objc_root_class_subclass);
4057 Diag(IC->getLocation(), diag::err_restricted_superclass_mismatch);
4058 Diag(Super->getLocation(), diag::note_class_declared);
4063 Diag(IC->getLocation(), diag::err_implementation_of_class_stub);
4089 Diag(IntfDecl->getLocation(), diag::err_restricted_superclass_mismatch);
4090 Diag(Super->getLocation(), diag::note_class_declared);
4096 Diag(IntfDecl->getLocation(), diag::err_class_stub_subclassing_mismatch);
4106 Diag(VDecl->getLocation(), diag::err_objc_var_decl_inclass);
4401 Diag((*ParamI)->getLocation(), diag::ext_typecheck_base_super)
4403 Diag(overridden->getLocation(), diag::note_previous_declaration);
4464 method->getLocation()));
4488 S, param->getLocation(), param->getType(),
4490 prevParam->getLocation(), prevParam->getType(),
4606 Diag(PrevDecl->getLocation(),
4629 Diag(Param->getLocation(), diag::err_block_on_nonlocal);
4679 Diag(ObjCMethod->getLocation(), diag::warn_dealloc_in_category)
4706 Diag(ObjCMethod->getLocation(), diag::err_duplicate_method_decl)
4708 Diag(PrevMethod->getLocation(), diag::note_previous_declaration);
4802 Diag(D->getLocation(), diag::err_objc_decls_may_only_appear_in_global_scope);
4832 /*FIXME: StartL=*/ID->getLocation(),
4833 ID->getLocation(),
4949 Diag(New->getLocation(), diag::err_block_on_nonlocal);
5057 SourceLocation Loc = CurMethod->getLocation();
5077 Diag(PDecl->getLocation(), diag::note_property_declare);
tools/clang/lib/Sema/SemaExceptionSpec.cpp 301 Old->getType()->getAs<FunctionProtoType>(), Old->getLocation(),
302 New->getType()->getAs<FunctionProtoType>(), New->getLocation(),
311 Diag(New->getLocation(), diag::ext_implicit_exception_spec_mismatch)
313 if (Old->getLocation().isValid())
314 Diag(Old->getLocation(), diag::note_previous_declaration);
336 (Old->getLocation().isInvalid() ||
337 Context.getSourceManager().isInSystemHeader(Old->getLocation()) ||
450 Diag(New->getLocation(), DiagID)
453 Diag(New->getLocation(), DiagID)
458 if (Old->getLocation().isValid())
459 Diag(Old->getLocation(), diag::note_previous_declaration);
968 Old->getLocation(),
970 New->getLocation());
tools/clang/lib/Sema/SemaExpr.cpp 107 Diag(Decl->getLocation(), diag::note_implicitly_deleted);
122 Diag(Decl->getLocation(), diag::note_availability_specified_here)
184 S.Diag(D->getCanonicalDecl()->getLocation(), diag::note_entity_declared_at)
309 Diag(D->getLocation(), diag::note_entity_declared_at) << D;
322 Diag(D->getLocation(), diag::note_entity_declared_at) << D;
397 Diag(D->getLocation(), diag::note_sentinel_here) << int(calleeType);
428 Diag(D->getLocation(), diag::note_sentinel_here) << int(calleeType);
549 S.Diag(IV->getLocation(), diag::note_ivar_decl);
1975 Diag(D->getLocation(), diag::note_dependent_var_use);
2610 IV->getLocation(), SelfExpr.get(), true, true);
2969 Diag(D->getLocation(), diag::note_declared_at);
3890 Diag(PVD->getLocation(), diag::note_declared_at);
4871 Param->getLocation(),
5250 S.Diag(PVD->getLocation(), diag::note_callee_static_array)
5454 FDecl->getLocation(),
5455 FDecl->getLocation(),
5495 S.Diag(Callee->getLocation(),
8725 Diag(OrigLHS.Conversion->getLocation(),
8730 Diag(OrigRHS.Conversion->getLocation(),
9233 S.Diag(LHSArgDecl->getLocation(), diag::note_pointer_declared_here)
9247 S.Diag(LHSArgDecl->getLocation(), diag::note_array_declared_here)
11548 S.Diag(VD->getLocation(), diag::note_typecheck_assign_const)
11562 S.Diag(VD->getLocation(), diag::note_typecheck_assign_const)
11605 S.Diag(VD->getLocation(), diag::note_typecheck_assign_const)
11618 S.Diag(MD->getLocation(), diag::note_typecheck_assign_const)
11661 S.Diag(Field->getLocation(), diag::note_typecheck_assign_const)
13977 Diag(MemberDecl->getLocation(), diag::note_bitfield_decl);
14188 Diag(Param->getLocation(), diag::err_parameter_name_omitted);
14375 InitializedEntity::InitializeBlock(Var->getLocation(),
14826 Diag(IFace->getLocation(), diag::note_incomplete_class_and_qualified_id)
14916 return S.Diag(Conv->getLocation(), diag::note_ice_conversion_here)
14927 return S.Diag(Conv->getLocation(), diag::note_ice_conversion_here)
15124 Diag(Decl->getLocation(), diag::note_previous_decl) << Decl->getName();
15690 S.Diag(var->getLocation(), diag::note_entity_declared_at)
15758 S.Diag(Var->getLocation(), diag::note_declared_at);
15767 S.Diag(Var->getLocation(), diag::note_previous_decl)
15782 S.Diag(Var->getLocation(), diag::note_previous_decl)
15795 S.Diag(Var->getLocation(), diag::note_previous_decl)
15827 S.Diag(Var->getLocation(), diag::note_previous_decl)
15841 S.Diag(Var->getLocation(), diag::note_previous_decl)
15857 SourceLocation VarLoc = Var->getLocation();
15978 S.Diag(Var->getLocation(), diag::note_previous_decl)
16108 Diag(Var->getLocation(), diag::note_previous_decl)
16174 Diag(Var->getLocation(), diag::note_previous_decl)
17170 S.Diag(FD->getLocation(), diag::note_entity_declared_at)
17705 SourceLocation Loc = FD->getLocation();
tools/clang/lib/Sema/SemaExprCXX.cpp 258 MarkAnyDeclReferenced(Type->getLocation(), Type, /*OdrUse=*/false);
360 Diag(NonMatchingTypeDecl->getLocation(), diag::note_destructor_type_here)
1954 return S.Diag(Conv->getLocation(), diag::note_array_size_conversion)
1965 return S.Diag(Conv->getLocation(), diag::note_array_size_conversion)
2619 Diag(OperatorDelete->getLocation(), diag::note_previous_decl)
2634 Diag(Match.second->getLocation(),
2937 Diag(Match.FD->getLocation(), diag::note_member_declared_here) << Name;
2950 Diag(D->getUnderlyingDecl()->getLocation(),
3274 return S.Diag(Conv->getLocation(), diag::note_delete_conversion)
3285 return S.Diag(Conv->getLocation(), diag::note_delete_conversion)
3494 S.Diag(FnDecl->getLocation(), diag::note_non_usual_function_declared_here)
3594 if (getSourceManager().isInSystemHeader(PointeeRD->getLocation()))
3641 return ExprError(Diag(ConditionVar->getLocation(),
3645 return ExprError(Diag(ConditionVar->getLocation(),
3651 ConditionVar->getLocation());
6691 S.Diag(OperatorArrows[I]->getLocation(),
6696 S.Diag(OperatorArrows[I]->getLocation(), diag::note_operator_arrow_here)
tools/clang/lib/Sema/SemaExprMember.cpp 1179 Diag(MemberDecl->getLocation(), diag::note_member_declared_here)
tools/clang/lib/Sema/SemaExprObjC.cpp 160 S.Diag(Method->getLocation(), diag::note_objc_literal_method_return)
207 S.Diag(Decl->getLocation(), diag::note_forward_class);
851 Diag(Method->parameters()[0]->getLocation(),
862 Diag(Method->parameters()[1]->getLocation(),
968 Diag(Method->parameters()[0]->getLocation(),
1005 Diag(Method->parameters()[1]->getLocation(),
1018 Diag(Method->parameters()[2]->getLocation(),
1142 S.Diag(Method->getLocation(), diag::note_method_declared_at)
1145 S.Diag(MatchingMethodDecl->getLocation(), diag::note_method_declared_at)
1205 !getSourceManager().isInSystemHeader(Method->getLocation()))
1251 Diag(PDecl->getLocation(), diag::note_entity_declared_at) << PDecl;
1513 loc = overridden->getLocation();
1522 Diag(MD->getLocation(), diag::note_related_result_type_family)
1548 Diag(Method->getLocation(), diag::note_related_result_type_inferred)
1614 Diag(ThisClass->getLocation(), diag::note_receiver_class_declared);
1993 Diag(Setter->getLocation(), diag::note_getter_unavailable)
2413 S.Diag(Method->getLocation(), diag::note_method_declared_at)
2509 Diag(Method->getLocation(), diag::note_method_sent_forward_class)
2548 Diag(Method->getLocation(), diag::note_method_declared_at)
2556 Diag(Method->getLocation(), diag::note_method_declared_at)
2558 Diag(CurMeth->getLocation(), diag::note_method_declared_at)
2824 Diag(Method->getLocation(), diag::note_method_declared_at)
3005 Diag(InitMethod->getLocation(),
3093 Diag(SelMethod->getLocation(), diag::note_method_declared_at)
3103 Diag(SelMethod->getLocation(), diag::note_method_declared_at)
3436 if (Context.getSourceManager().isInSystemHeader(var->getLocation()))
4140 ClassMethod->getLocation(),
4181 InstanceMethod->getLocation(),
tools/clang/lib/Sema/SemaInit.cpp 537 SemaRef.SourceMgr.isInSystemHeader(CtorDecl->getLocation())) {
559 SemaRef.Diag(CtorDecl->getLocation(),
562 SemaRef.Diag(Entity.getDecl()->getLocation(),
574 SemaRef.Diag(Entity.getDecl()->getLocation(),
693 SemaRef.Diag(Field->getLocation(),
1985 SemaRef.Diag(Field->getLocation(), diag::note_flexible_array_member)
2523 SemaRef.Diag(Lookup.front()->getLocation(),
2677 SemaRef.Diag(Field->getLocation(), diag::note_flexible_array_member)
2690 SemaRef.Diag(Field->getLocation(), diag::note_flexible_array_member)
6058 return Entity.getDecl()->getLocation();
6311 if (Entity.getDecl()->getLocation().isInvalid())
6315 S.Diag(Entity.getDecl()->getLocation(), diag::note_parameter_named_here)
6318 S.Diag(Entity.getDecl()->getLocation(), diag::note_parameter_here);
6322 S.Diag(Entity.getMethodDecl()->getLocation(),
7422 Diag(ExtendingDecl->getLocation(),
7437 Diag(ExtendingDecl->getLocation(),
7476 Diag(Member->getLocation(),
7541 Diag(FD->getLocation(), diag::note_init_with_default_member_initalizer)
7548 Diag(VD->getLocation(), diag::note_local_var_initializer)
8612 if (DiagnoseUninitializedReference(S, FI->getLocation(), FI->getType())) {
8676 Loc = D->getLocation();
8877 S.Diag(BitField->getLocation(), diag::note_bitfield_decl);
9031 S.Diag(BaseDecl->getLocation(), diag::note_previous_decl)
9040 S.Diag(Entity.getDecl()->getLocation(),
9045 S.Diag(Record->getDecl()->getLocation(),
9105 S.Diag(Entity.getDecl()->getLocation(), diag::note_previous_decl)
9139 S.Diag(CtorDecl->getLocation(),
9687 Diag(TD->getLocation(), diag::note_template_decl_here);
9900 Diag(Best->Function->getLocation(),
9928 Diag(Template->getLocation(), diag::note_suppress_ctad_maybe_unsupported);
tools/clang/lib/Sema/SemaLambda.cpp 409 Method->getLocation(), MethodName,
553 Diag(Param->getLocation(), diag::err_parameter_shadow_capture);
880 /*isNested*/false, Var->getLocation(), SourceLocation(),
1189 Diag(Var->getLocation(), diag::note_previous_decl) << C->Id;
1249 ActOnFields(nullptr, Class->getLocation(), Class, Fields, SourceLocation(),
1364 From->getLocation(), From->getIdentifier(), From->getType(),
1795 ActOnFields(nullptr, Class->getLocation(), Class, Fields, SourceLocation(),
1895 Context, Block, From->getBeginLoc(), From->getLocation(),
tools/clang/lib/Sema/SemaLookup.cpp 2556 Diag((*Found)->getLocation(), diag::note_ambiguous_member_found);
2571 Diag(D->getLocation(), diag::note_ambiguous_member_found);
2584 Diag(TD->getLocation(), diag::note_hidden_tag);
2589 Diag(D->getLocation(), diag::note_hiding_object);
2605 Diag(D->getLocation(), diag::note_ambiguous_candidate) << D;
3074 SourceLocation LookupLoc = RD->getLocation();
3099 runWithSufficientStackSpace(RD->getLocation(), [&] {
3126 runWithSufficientStackSpace(RD->getLocation(), [&] {
3134 runWithSufficientStackSpace(RD->getLocation(), [&] {
3139 runWithSufficientStackSpace(RD->getLocation(), [&] {
3146 runWithSufficientStackSpace(RD->getLocation(), [&] {
3151 runWithSufficientStackSpace(RD->getLocation(), [&] {
3311 runWithSufficientStackSpace(Class->getLocation(), [&] {
5314 diagnoseMissingImport(Loc, Def, Def->getLocation(), OwningModules, MIK,
5468 Diag(ChosenDecl->getLocation(), PrevNote)
tools/clang/lib/Sema/SemaModule.cpp 555 Diag(ND->getLocation(), diag::note_anonymous_namespace);
576 Diag(ED->getLocation(), diag::note_export);
636 S.Diag(D->getLocation(), getUnnamedDeclDiag(UDK, BlockStart.isValid()))
654 S.Diag(ND->getLocation(), diag::err_export_internal) << ND;
666 S.Diag(USD->getLocation(), diag::err_export_using_internal) << Target;
667 S.Diag(Target->getLocation(), diag::note_using_decl_target);
tools/clang/lib/Sema/SemaObjCProperty.cpp 99 S.Diag(property->getLocation(),
405 S.Diag(NewProperty->getLocation(), diag::warn_property_attribute)
408 S.Diag(OldProperty->getLocation(), diag::note_property_declare);
435 Diag(CDecl->getLocation(), diag::err_continuation_class);
450 Diag(PIDecl->getLocation(), diag::note_property_declare);
472 Diag(PIDecl->getLocation(), diag::note_property_declare);
482 Diag(PIDecl->getLocation(), diag::note_property_declare);
498 Diag(PIDecl->getLocation(), diag::note_property_declare);
512 Diag(PIDecl->getLocation(), diag::note_property_declare);
550 Diag(PIDecl->getLocation(), diag::note_property_declare);
631 Diag(PDecl->getLocation(), diag::err_duplicate_property);
632 Diag(prevDecl->getLocation(), diag::note_property_declare);
756 S.Diag(ivar->getLocation(), diag::err_arc_strong_property_ownership)
763 S.Diag(ivar->getLocation(), diag::err_weak_property)
769 S.Diag(ivar->getLocation(), diag::err_arc_assign_property_ownership)
784 S.Diag(property->getLocation(), diag::note_property_declare);
960 auto Diag = S.Diag(Property->getLocation(),
983 S.Diag(Note.Prop->getLocation(), diag::note_protocol_property_declare)
1093 Diag(IC->getLocation(), diag::warn_auto_implicit_atomic_property);
1094 Diag(property->getLocation(), diag::note_property_declare);
1101 Diag(property->getLocation(), diag::note_property_declare);
1125 Diag(property->getLocation(), diag::warn_auto_readonly_iboutlet_property)
1133 Diag(property->getLocation(),
1188 Diag(property->getLocation(), diag::note_property_declare);
1209 Diag(property->getLocation(), diag::note_property_declare);
1225 Diag(property->getLocation(), diag::note_property_declare);
1234 Diag(property->getLocation(),
1237 Diag(ClassImpDecl->getLocation(), diag::note_implemented_by_class)
1259 Diag(property->getLocation(), diag::note_property_declare);
1260 Diag(originalIvar->getLocation(), diag::note_ivar_decl);
1277 Diag(property->getLocation(), diag::note_property_declare);
1298 Diag(property->getLocation(), diag::note_property_declare);
1325 Diag(Ivar->getLocation(), diag::note_previous_access_declaration)
1350 Diag(Ivar->getLocation(), diag::note_ivar_decl);
1365 Diag(Ivar->getLocation(), diag::note_ivar_decl);
1374 Diag(Ivar->getLocation(), diag::note_ivar_decl);
1426 Ivar->getLocation(),
1442 Diag(getterMethod->getLocation(),
1444 Diag(property->getLocation(), diag::note_property_declare);
1452 Diag(getterMethod->getLocation(), diag::err_arc_illegal_method_def)
1478 Ivar->getLocation(),
1514 Diag(PPIDecl->getLocation(), diag::note_previous_use);
1520 Diag(PPIDecl->getLocation(), diag::note_previous_declaration);
1541 Diag(Ivar->getLocation(), diag::err_undeclared_var_use)
1553 Diag(PPIDecl->getLocation(), diag::note_previous_use);
1559 Diag(PPIDecl->getLocation(), diag::note_previous_declaration);
1594 Diag(Property->getLocation(), diag::warn_readonly_property)
1598 Diag(Property->getLocation(), diag::warn_property_attribute)
1610 Diag(Property->getLocation(), diag::warn_property_attribute)
1624 Diag(Property->getLocation(), diag::warn_property_attribute)
1626 Diag(SuperProperty->getLocation(), diag::note_property_declare);
1629 Diag(Property->getLocation(), diag::warn_property_attribute)
1631 Diag(SuperProperty->getLocation(), diag::note_property_declare);
1647 Diag(Property->getLocation(), diag::warn_property_types_are_incompatible)
1649 Diag(SuperProperty->getLocation(), diag::note_property_declare);
1675 Diag(GetterMethod->getLocation(), diag::note_declared_at);
1690 Diag(GetterMethod->getLocation(), diag::note_declared_at);
1863 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_shared_ivar_property)
1865 if (PID->getLocation().isValid())
1866 Diag(PID->getLocation(), diag::note_property_synthesize);
1879 Diag(IMPDecl->getLocation(),
1882 Diag(Prop->getLocation(), diag::note_property_declare);
1897 Diag(Prop->getLocation(), diag::warn_no_autosynthesis_property)
1899 Diag(PropInSuperClass->getLocation(), diag::note_property_declare);
1902 Diag(Prop->getLocation(), diag::warn_autosynthesis_property_in_superclass)
1904 Diag(PropInSuperClass->getLocation(), diag::note_property_declare);
1905 Diag(IMPDecl->getLocation(), diag::note_while_in_implementation);
1918 Prop->getLocation(), Prop->getQueryKind()));
1920 Diag(Prop->getLocation(), diag::warn_missing_explicit_synthesis);
1921 Diag(IMPDecl->getLocation(), diag::note_while_in_implementation);
1965 S.Diag(IMPDecl->getLocation(), diag) << Prop->getDeclName() << Method;
1966 S.Diag(Prop->getLocation(), diag::note_property_declare);
1971 S.Diag(RID->getLocation(), diag::note_suppressed_class_declare);
2099 SourceLocation loc = propertyImpl->getLocation();
2143 Diag(GetterMethod->getLocation(),
2146 Diag(Property->getLocation(), diag::note_property_declare);
2149 Diag(SetterMethod->getLocation(),
2152 Diag(Property->getLocation(), diag::note_property_declare);
2174 (GetterMethod ? GetterMethod->getLocation()
2175 : SetterMethod->getLocation());
2187 Diag(Property->getLocation(),
2194 Diag(Property->getLocation(),
2200 Diag(Property->getLocation(), diag::note_property_declare);
2222 Diag(PD->getLocation(), diag::err_cocoa_naming_owned_rule);
2224 Diag(PD->getLocation(), diag::warn_cocoa_naming_owned_rule);
2228 SourceLocation noteLoc = PD->getLocation();
2235 noteLoc = getterRedecl->getLocation();
2296 Diag(ImplD->getLocation(),
2299 Diag(MD->getLocation(), diag::note_objc_designated_init_marked_here);
2354 property->getLocation());
2359 Diag(SetterMethod->getLocation(), diag::err_setter_type_void);
2364 Diag(property->getLocation(),
2368 Diag(SetterMethod->getLocation(), diag::note_declared_at);
2382 SourceLocation Loc = property->getLocation();
2442 SourceLocation Loc = property->getLocation();
tools/clang/lib/Sema/SemaOpenMP.cpp 1278 SemaRef.Diag(D->getLocation(),
1317 SemaRef, VD, D->getType().getNonReferenceType(), D->getLocation());
1336 D->getLocation());
2285 Diag(Lookup.getFoundDecl()->getLocation(), diag::note_declared_at);
2297 Diag(VD->getLocation(),
2314 Diag(VD->getLocation(),
2329 Diag(VD->getLocation(),
2345 Diag(VD->getLocation(),
2359 Diag(VD->getLocation(),
2404 SemaRef.Diag(VD->getLocation(), diag::note_defined_here)
2455 Diag(VD->getLocation(),
2473 Diag(VD->getLocation(),
2643 Diag(VD->getLocation(),
2731 auto ReportLoc = D->getLocation();
3740 MarkVariableReferenced(D->getLocation(), cast<VarDecl>(D));
4732 Diag(ADecl->getLocation(), diag::err_omp_function_expected) << SimdId;
4804 Diag(PVD->getLocation(), diag::note_previous_decl) << PVD;
4977 Diag(ADecl->getLocation(), diag::err_omp_function_expected)
4989 Diag(FD->getLocation(), diag::err_omp_declare_variant_incompat_attributes)
4997 << FD->getLocation();
5004 << FD->getLocation();
5117 Diag(FD->getLocation(), diag::err_omp_declare_variant_doesnt_support)
5123 Diag(FD->getLocation(), diag::err_omp_declare_variant_doesnt_support)
5129 Diag(FD->getLocation(), diag::err_omp_declare_variant_doesnt_support)
5136 Diag(FD->getLocation(), diag::err_omp_declare_variant_doesnt_support)
5142 Diag(FD->getLocation(), diag::err_omp_declare_variant_doesnt_support)
5148 Diag(FD->getLocation(), diag::err_omp_declare_variant_doesnt_support)
5164 << FD->getLocation()),
5566 SemaRef.Diag(VD->getLocation(), diag::note_previous_decl) << VD;
11060 return S.Diag(Conv->getLocation(), diag::note_omp_conversion_here)
11069 return S.Diag(Conv->getLocation(), diag::note_omp_conversion_here)
12078 Diag(D->getLocation(),
12364 Diag(D->getLocation(),
13229 S.Diag(VDDef->getLocation(), diag::note_defined_here) << VDDef;
13319 S.Diag(D->getLocation(),
13332 S.Diag(D->getLocation(),
13522 S.Diag(D->getLocation(),
13785 Diag(D->getLocation(),
14064 Diag(D->getLocation(),
14266 Diag(D->getLocation(),
15615 PrevDecl->getLocation();
15631 PrevDRDInScope->getLocation();
15684 buildVarDecl(*this, D->getLocation(), ReductionType, "omp_in");
15692 buildVarDecl(*this, D->getLocation(), ReductionType, "omp_out");
15701 ::buildDeclRefExpr(*this, OmpInParm, ReductionType, D->getLocation());
15703 ::buildDeclRefExpr(*this, OmpOutParm, ReductionType, D->getLocation());
15744 buildVarDecl(*this, D->getLocation(), ReductionType, "omp_priv");
15752 buildVarDecl(*this, D->getLocation(), ReductionType, "omp_orig");
15761 ::buildDeclRefExpr(*this, OmpOrigParm, ReductionType, D->getLocation());
15763 ::buildDeclRefExpr(*this, OmpPrivParm, ReductionType, D->getLocation());
15867 PrevDecl->getLocation();
15883 PrevDMDInScope->getLocation();
16265 SemaRef.Diag(VD->getLocation(),
16274 SemaRef.Diag(VD->getLocation(), diag::warn_omp_not_in_target_context);
16291 SourceLocation SL = E ? E->getBeginLoc() : D->getLocation();
16312 Diag(FD->getLocation(), diag::note_defined_here) << FD;
tools/clang/lib/Sema/SemaOverload.cpp 1193 Diag(NewMethod->getLocation(), diag::err_ref_qualifier_overload)
1195 Diag(OldMethod->getLocation(), diag::note_previous_declaration);
5334 Diag(Method->getLocation(), diag::note_previous_decl)
5348 Diag(Method->getLocation(), diag::note_previous_decl)
9572 Diag(D->getLocation(), diag::note_equivalent_internal_linkage_decl)
9577 Diag(E->getLocation(), diag::note_equivalent_internal_linkage_decl)
9768 S.Diag(FoundDecl->getLocation(),
9820 S.Diag(FD->getLocation(),
9863 Diag(Fn->getLocation(), PD);
9949 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_overload)
9978 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_addrspace)
9987 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_ownership)
9997 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_gc)
10007 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_unaligned)
10019 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_cvr_this)
10024 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_cvr)
10036 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_list_argument)
10052 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_conv_incomplete)
10093 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_lvalue)
10103 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_base_to_derived_conv)
10116 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_arc_conv)
10140 S.Diag(Fn->getLocation(), FDiag);
10211 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_arity_one)
10215 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_arity)
10252 S.Diag(Templated->getLocation(),
10261 S.Diag(Templated->getLocation(),
10289 S.Diag(Templated->getLocation(), diag::note_ovl_candidate_underqualified)
10309 S.Diag(Templated->getLocation(),
10322 S.Diag(Templated->getLocation(),
10333 S.Diag(Templated->getLocation(),
10345 S.Diag(Templated->getLocation(),
10358 S.Diag(Templated->getLocation(),
10387 S.Diag(Templated->getLocation(),
10404 S.Diag(Templated->getLocation(),
10422 S.Diag(Templated->getLocation(), diag::note_ovl_candidate_deduced_mismatch)
10448 S.Diag(Templated->getLocation(),
10464 S.Diag(Templated->getLocation(),
10472 S.Diag(Templated->getLocation(), diag::note_ovl_candidate_bad_deduction);
10476 S.Diag(Templated->getLocation(),
10508 S.Diag(Callee->getLocation(), diag::note_ovl_candidate_bad_target)
10558 S.Diag(Callee->getLocation(),
10583 S.Diag(Cand->Function->getLocation(),
10593 S.Diag(Callee->getLocation(),
10627 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_deleted)
10649 S.Diag(Fn->getLocation(), diag::note_ovl_candidate_illegal_constructor)
10658 S.Diag(Fn->getLocation(),
10698 S.Diag(Fn->getLocation(),
10745 S.Diag(Cand->Surrogate->getLocation(), diag::note_ovl_surrogate_cand)
10781 return Cand->Function->getLocation();
10783 return Cand->Surrogate->getLocation();
11147 return Cand->Specialization ? Cand->Specialization->getLocation()
12163 SemaRef.Diag(Best->Function->getLocation(),
12167 SemaRef.Diag(Best->Function->getLocation(),
12174 SemaRef.Diag(Best->Function->getLocation(),
12876 Diag(FnDecl->getLocation(), diag::note_declared_at);
12898 Diag(FnDecl->getLocation(),
13543 Diag(Method->getLocation(),
tools/clang/lib/Sema/SemaPseudoObject.cpp 679 S.Diag(prop->getLocation(), diag::note_property_declare);
680 S.Diag(prop1->getLocation(), diag::note_property_declare);
702 S.Diag(prop->getLocation(), diag::note_property_declare);
1118 Diag(ConversionDecls[i]->getLocation(),
1234 S.Diag(AtIndexGetter->parameters()[0]->getLocation(),
1242 S.Diag(AtIndexGetter->getLocation(), diag::note_method_declared_at) <<
1349 S.Diag(AtIndexSetter->parameters()[1]->getLocation(),
1357 S.Diag(AtIndexSetter->parameters()[0]->getLocation(),
1372 S.Diag(AtIndexSetter->parameters()[i]->getLocation(),
tools/clang/lib/Sema/SemaStmt.cpp 97 Diag(decl->getLocation(), diag::err_non_variable_decl_in_for);
407 Diag(D->getLocation(), diag::ext_mixed_decls_code);
522 Diag(TheDecl->getLocation(), diag::note_previous_definition);
689 return S.Diag(Conv->getLocation(), diag::note_switch_conversion)
700 return S.Diag(Conv->getLocation(), diag::note_switch_conversion)
1780 Diag(DI->getLocation(), diag::err_non_local_variable_decl_in_for);
1914 return StmtError(Diag((*DS->decl_begin())->getLocation(),
1926 return StmtError(Diag(D->getLocation(),
1931 OpaqueValueExpr OpaqueId(D->getLocation(), Context.getObjCIdType(),
2042 SourceLocation Loc = D->getLocation();
2276 SemaRef.Diag(D->getLocation(),
2403 SourceLocation RangeLoc = RangeVar->getLocation();
2486 EndVar->getLocation(), UETT_SizeOf,
2496 EndVar->getLocation(), UETT_SizeOf,
2507 ActOnBinOp(S, EndVar->getLocation(), tok::slash,
2548 Diag(PVD->getLocation(), diag::note_declared_at);
2758 SemaRef.Diag(VD->getLocation(), diag::warn_for_range_const_reference_copy)
2769 SemaRef.Diag(VD->getLocation(), diag::warn_for_range_variable_always_copy)
2807 SemaRef.Diag(VD->getLocation(), diag::warn_for_range_copy)
3429 S.MarkAnyDeclReferenced(T->getLocation(), T, /*OdrUse=*/false);
3511 Diag(FD->getLocation(), diag::err_kern_type_not_void_return)
4417 ActOnFields(/*Scope=*/nullptr, Record->getLocation(), Record, Fields,
tools/clang/lib/Sema/SemaStmtAsm.cpp 793 MarkAnyDeclReferenced(TD->getLocation(), TD, /*OdrUse=*/false);
tools/clang/lib/Sema/SemaTemplate.cpp 503 Diag(ExampleLookupResult->getUnderlyingDecl()->getLocation(),
550 Diag(Found.getRepresentativeDecl()->getLocation(),
553 Diag(FoundOuter.getFoundDecl()->getLocation(),
655 Diag(Found->getLocation(),
664 Diag(Found->getLocation(), diag::note_non_template_in_template_id_found);
815 Diag(Pattern->getLocation(), Note.getValue());
841 Diag(PrevDecl->getLocation(), diag::note_template_param_here);
1284 Diag(Param->getLocation(), diag::err_template_template_parm_no_parms)
1509 Diag(Shadow->getTargetDecl()->getLocation(),
1511 Diag(Shadow->getUsingDecl()->getLocation(), diag::note_using_decl) << 0;
1539 Diag(PrevRecordDecl->getLocation(), diag::note_previous_use);
1559 Diag(Def->getLocation(), diag::note_previous_definition);
1573 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
1699 Context, CurContext, NewClass->getLocation(), NewTemplate, FriendLoc);
1825 NewTInfo, CD->getBeginLoc(), CD->getLocation(),
1831 SourceLocation Loc = Template->getLocation();
1868 SemaRef.Context, DC, TTP->getBeginLoc(), TTP->getLocation(),
1929 TLB.pushTypeSpec(ReturnType).setNameLoc(Primary->getLocation());
1964 OldParam->getLocation(), OldParam->getDeclName());
1970 NewDI = SemaRef.SubstType(OldDI, Args, OldParam->getLocation(),
1992 OldParam->getLocation(),
2182 S.DiagnoseUnexpandedParameterPack(NTTP->getLocation(),
2267 NewTypeParm->getLocation(),
2301 DiagnoseUnexpandedParameterPack(NewNonTypeParm->getLocation(),
2311 NewNonTypeParm->getLocation(),
2355 NewTemplateParm->getLocation(),
2396 Diag((*NewParam)->getLocation(),
2414 Diag((*NewParam)->getLocation(),
2645 ExplicitSpecLoc = Spec->getLocation();
2650 ExplicitSpecLoc = Record->getLocation();
2966 Diag(Template->getLocation(), diag::note_template_declared_here)
2982 Diag((*I)->getLocation(), diag::note_template_declared_here)
3259 TemplateArgLists, AliasTemplate->getLocation(),
3360 ClassTemplate->getLocation(), ClassTemplate, Converted, nullptr);
3597 Diag(TAT->getLocation(), diag::note_declared_at);
3616 Diag(D->getLocation(), diag::note_previous_use);
3728 TemplateDeductionInfo Info(Partial->getLocation());
3733 S.Diag(Partial->getLocation(),
3748 S.Diag(Template->getLocation(), diag::note_template_decl_here);
3758 S.Diag(Param->getLocation(), diag::note_non_deducible_parameter)
3761 S.Diag(Param->getLocation(), diag::note_non_deducible_parameter)
3790 S.Diag(Partial->getLocation(), diag::ext_partial_specs_not_deducible)
3793 << SourceRange(Partial->getLocation(),
3826 Diag(TD->getLocation(), diag::err_deduction_guide_template_not_deducible)
4174 Diag(P.Partial->getLocation(), diag::note_partial_spec_match)
4216 Diag(TD->getLocation(), diag::note_template_decl_here)
4361 Diag(Temp->getLocation(), diag::note_referenced_class_template);
4541 Diag(Param->getLocation(), diag::note_template_param_here);
4570 Diag(Param->getLocation(), diag::note_template_param_here);
4933 NTTP->getLocation(),
4938 NTTP->getLocation(),
4946 NTTP->getLocation());
5034 Diag(Param->getLocation(), diag::note_template_param_here);
5054 Diag(Param->getLocation(), diag::note_template_param_here);
5198 S.Diag(TD->getLocation(), diag::note_template_decl_here)
5255 Diag(Template->getLocation(), diag::note_template_decl_here)
5278 Diag((*Param)->getLocation(), diag::note_template_param_here);
5453 Diag(Template->getLocation(), diag::note_template_decl_here)
5696 S.Diag(Tag->getLocation(), diag::note_template_unnamed_type_here);
5809 S.Diag(Param->getLocation(), diag::note_template_param_here);
5835 S.Diag(Param->getLocation(), diag::note_template_param_here);
5847 S.Diag(Param->getLocation(), diag::note_template_param_here);
5888 S.Diag(Param->getLocation(), diag::note_template_param_here);
5906 S.Diag(Param->getLocation(), diag::note_template_param_here);
6053 S.Diag(Param->getLocation(), diag::note_template_param_here);
6061 S.Diag(Param->getLocation(), diag::note_template_param_here);
6070 S.Diag(Param->getLocation(), diag::note_template_param_here);
6083 S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here);
6094 S.Diag(Entity->getLocation(), diag::note_template_arg_internal_object)
6099 S.Diag(Entity->getLocation(), diag::note_template_arg_internal_object)
6116 S.Diag(Param->getLocation(), diag::note_template_param_here);
6123 S.Diag(Param->getLocation(), diag::note_template_param_here);
6132 S.Diag(Param->getLocation(), diag::note_template_param_here);
6140 S.Diag(Var->getLocation(), diag::note_template_arg_refers_here);
6155 S.Diag(Param->getLocation(), diag::note_template_param_here);
6162 S.Diag(Param->getLocation(), diag::note_template_param_here);
6178 S.Diag(Param->getLocation(), diag::note_template_param_here);
6185 S.Diag(Param->getLocation(), diag::note_template_param_here);
6294 S.Diag(Param->getLocation(), diag::note_template_param_here);
6325 S.Diag(DRE->getDecl()->getLocation(), diag::note_template_arg_refers_here);
6365 Context.getTrivialTypeSourceInfo(ParamType, Param->getLocation()),
6371 Diag(Param->getLocation(), diag::note_template_param_here);
6380 Diag(Param->getLocation(), diag::note_template_param_here);
6411 Diag(Param->getLocation(), diag::note_template_param_here);
6623 Diag(Param->getLocation(), diag::note_template_param_here);
6662 Diag(Param->getLocation(), diag::note_template_param_here);
6703 Diag(Param->getLocation(), diag::note_template_param_here);
6718 Diag(Param->getLocation(), diag::note_template_param_here);
6840 Diag(Param->getLocation(), diag::note_template_param_here);
6905 Diag(Template->getLocation(), diag::note_template_arg_refers_here_func)
7131 S.Diag(New->getLocation(), NextDiag)
7133 S.Diag(Old->getLocation(), diag::note_template_prev_declaration)
7158 S.Diag(New->getLocation(), NextDiag)
7160 S.Diag(Old->getLocation(), diag::note_template_parameter_pack_here)
7189 S.Diag(NewNTTP->getLocation(), NextDiag)
7192 S.Diag(OldNTTP->getLocation(),
7482 S.Diag(Specialized->getLocation(), diag::note_specialized_entity);
7518 S.Diag(Specialized->getLocation(), diag::note_specialized_entity);
7627 S.Diag(Param->getLocation(), diag::note_template_param_here)
7778 Diag(ClassTemplate->getTemplatedDecl()->getLocation(),
7971 Diag(Def->getLocation(), diag::note_previous_definition);
7987 Diag(Specialization->getLocation(), diag::err_module_private_specialization)
8093 Diag(Old->getLocation(), diag::note_previous_definition);
8121 PrevDiagLoc = Prev->getLocation();
8269 Diag(PrevDecl->getLocation(),
8357 Diag(FD->getLocation(),
8360 Diag(P.second->getLocation(),
8399 TemplateSpecCandidateSet FailedCandidates(FD->getLocation(),
8486 Diag(FD->getLocation(), diag::err_qualified_friend_no_match)
8494 FailedCandidates.NoteCandidates(*this, FD->getLocation());
8500 Candidates.begin(), Candidates.end(), FailedCandidates, FD->getLocation(),
8520 Specialization->setLocation(FD->getLocation());
8542 Specialization, FD->getLocation(),
8554 CheckSpecializationInstantiationRedecl(FD->getLocation(),
8719 Diag(Member->getLocation(), diag::err_spec_member_not_instantiated)
8721 Diag(Instantiation->getLocation(), diag::note_specialized_decl);
8734 if (CheckSpecializationInstantiationRedecl(Member->getLocation(),
8745 Instantiation, Member->getLocation(),
8814 completeMemberSpecializationImpl(*this, Function, Member->getLocation());
8816 completeMemberSpecializationImpl(*this, Var, Member->getLocation());
8818 completeMemberSpecializationImpl(*this, Record, Member->getLocation());
8820 completeMemberSpecializationImpl(*this, Enum, Member->getLocation());
8875 S.Diag(D->getLocation(), diag::note_explicit_instantiation_here);
8968 Diag(TD->getLocation(), diag::note_previous_use);
8979 Diag(ClassTemplate->getTemplatedDecl()->getLocation(),
9278 Diag(Record->getLocation(), diag::note_nontemplate_decl_here);
9332 Diag(Pattern->getLocation(), diag::note_forward_declaration)
9463 Diag((*P)->getLocation(), diag::note_explicit_instantiation_here);
9472 Diag(Prev->getLocation(), diag::note_explicit_instantiation_here);
9497 Diag(PrevTemplate->getLocation(),
9555 Diag(PrevTemplate->getLocation(), diag::note_template_declared_here)
9670 Specialization->getLocation(), FPT, D.getBeginLoc());
9683 Diag(Specialization->getLocation(), diag::note_explicit_instantiation_here);
10080 MarkAnyDeclReferenced(Type->getLocation(), Type, /*OdrUse=*/false);
10118 Diag(Referenced->getLocation(), diag::note_typename_refers_here)
10252 NTTP->getLocation(),
10402 S.diagnoseMissingImport(Loc, D, D->getLocation(), Modules, Kind, Recover);
10495 diagnoseMissingImport(Loc, Spec, Spec->getLocation(), Modules,
tools/clang/lib/Sema/SemaTemplateDeduction.cpp 442 S.Context.NullPtrTy, NTTP->getLocation()),
2523 Param, ArgLoc, Template, Template->getLocation(),
2548 S.Diag(Param->getLocation(),
2568 Sema::InstantiatingTemplate Inst(S, Template->getLocation(), Template,
2572 S.SubstType(NTTP->getType(), Args, NTTP->getLocation(),
2576 Sema::InstantiatingTemplate Inst(S, Template->getLocation(), Template,
2663 TD, TD->getLocation(), TD->getSourceRange().getEnd(), Param, Builder,
2678 if (S.CheckTemplateArgument(Param, DefArg, TD, TD->getLocation(),
2771 if (S.CheckTemplateArgumentList(Template, Partial->getLocation(), InstArgs,
3064 if (SubstParmTypes(Function->getLocation(), Function->parameters(),
3099 Diag(Function->getLocation(), diag::err_kern_type_not_void_return)
3108 SubstParmTypes(Function->getLocation(), Function->parameters(),
3124 Function->getLocation(), EPI.ExceptionSpec, ExceptionStorage,
3129 Function->getLocation(),
4618 Diag(VDecl->getLocation(),
4624 Diag(VDecl->getLocation(),
4684 Diag(FD->getLocation(), diag::note_callee_decl) << FD;
5034 Diag((*I)->getLocation(), PD);
5233 Arg, QualType(), P->getParam(I)->getLocation()));
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp 687 Diags.Report(Active->Entity->getLocation(),
1172 SemaRef.Diag(TD->getLocation(), diag::note_previous_use);
1820 OldParm->getLocation(), OldParm->getDeclName());
1835 Diag(OldParm->getLocation(),
1841 NewDI = SubstType(OldDI, TemplateArgs, OldParm->getLocation(),
1849 Diag(OldParm->getLocation(), diag::err_param_with_void_type);
1855 OldParm->getLocation(),
2220 ActOnFields(nullptr, Instantiation->getLocation(), Instantiation, Fields,
2256 Instantiation->setLocation(Pattern->getLocation());
2586 S.Diag(P->Partial->getLocation(), diag::note_partial_spec_match)
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp 682 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(),
714 D->getLocation(), D->getDeclName());
720 SemaRef.MarkDeclarationsReferencedInType(D->getLocation(), DI->getType());
743 D->getLocation(), D->getIdentifier(), DI);
746 D->getLocation(), D->getIdentifier(), DI);
762 NamedDecl *InstPrev = SemaRef.FindInstantiatedDecl(D->getLocation(), Prev,
826 = TypeAliasTemplateDecl::Create(SemaRef.Context, Owner, D->getLocation(),
843 auto *NewBD = BindingDecl::Create(SemaRef.Context, Owner, D->getLocation(),
883 SemaRef.Diag(D->getLocation(), diag::err_variable_instantiates_to_function)
896 D->getLocation(), DI->getType(), DI,
900 D->getLocation(), D->getIdentifier(), DI->getType(),
943 D->getLocation(), D->getDeclName());
954 SemaRef.Diag(D->getLocation(), diag::err_field_instantiates_to_function)
959 SemaRef.MarkDeclarationsReferencedInType(D->getLocation(), DI->getType());
982 D->getLocation(),
1024 SemaRef.Diag(D->getLocation(), diag::err_property_is_variably_modified)
1029 D->getLocation(), D->getDeclName());
1040 SemaRef.Diag(D->getLocation(), diag::err_field_instantiates_to_function)
1045 SemaRef.MarkDeclarationsReferencedInType(D->getLocation(), DI->getType());
1049 SemaRef.Context, Owner, D->getLocation(), D->getDeclName(), DI->getType(),
1070 NamedDecl *Next = SemaRef.FindInstantiatedDecl(D->getLocation(), PI,
1080 SemaRef.Context, Owner, D->getLocation(), D->getIdentifier(), T,
1105 D->getLocation(), DeclarationName());
1132 FriendDecl::Create(SemaRef.Context, Owner, D->getLocation(),
1152 return SemaRef.BuildStaticAssertDeclaration(D->getLocation(),
1162 NamedDecl *Prev = SemaRef.FindInstantiatedDecl(D->getLocation(),
1171 D->getLocation(), D->getIdentifier(), PrevDecl,
1219 SemaRef.CheckEnumRedeclaration(Def->getLocation(), Def->isScoped(),
1244 Enum->setLocation(Pattern->getLocation());
1269 EC->getLocation(), EC->getIdentifier(),
1295 SemaRef.ActOnEnumBody(Enum->getLocation(), Enum->getBraceRange(), Enum,
1356 DC = SemaRef.FindInstantiatedContext(Pattern->getLocation(),
1363 LookupResult R(SemaRef, Pattern->getDeclName(), Pattern->getLocation(),
1375 SemaRef.Diag(Pattern->getLocation(), diag::err_not_tag_in_scope)
1430 Pattern->getLocation(), Pattern->getIdentifier(), PrevDecl,
1440 = ClassTemplateDecl::Create(SemaRef.Context, DC, D->getLocation(),
1548 SemaRef.Context, DC, D->getLocation(), D->getIdentifier(), InstParams,
1657 NamedDecl *Prev = SemaRef.FindInstantiatedDecl(D->getLocation(),
1666 D->getLocation(), D->getIdentifier(), PrevDecl);
1717 SemaRef.InstantiateClass(D->getLocation(), Record, D, TemplateArgs,
1724 SemaRef.InstantiateClassMembers(D->getLocation(), Record, TemplateArgs,
1828 DC = SemaRef.FindInstantiatedContext(D->getLocation(), D->getDeclContext(),
1891 Function->getLocation(),
1944 Decl *Temp = SemaRef.FindInstantiatedDecl(D->getLocation(),
2026 SourceLocation Loc = R->getLocation(); // FIXME
2053 SemaRef.SetDeclDefaulted(Function, D->getLocation());
2055 SemaRef.SetDeclDeleted(Function, D->getLocation());
2142 DC = SemaRef.FindInstantiatedContext(D->getLocation(),
2200 Method->getLocation(),
2263 Decl *Temp = SemaRef.FindInstantiatedDecl(D->getLocation(),
2333 SemaRef.SetDeclDefaulted(Method, Method->getLocation());
2335 SemaRef.SetDeclDeleted(Method, Method->getLocation());
2407 SemaRef.Context, Owner, D->getBeginLoc(), D->getLocation(),
2447 D->getLocation(), D->getDeclName());
2452 SemaRef.CheckNonTypeTemplateParameterType(NewDI, D->getLocation());
2491 D->getLocation(),
2497 SemaRef.CheckNonTypeTemplateParameterType(NewDI, D->getLocation());
2516 D->getLocation(),
2521 SemaRef.CheckNonTypeTemplateParameterType(NewPattern, D->getLocation());
2532 D->getLocation(), D->getDeclName());
2537 T = SemaRef.CheckNonTypeTemplateParameterType(DI, D->getLocation());
2547 SemaRef.Context, Owner, D->getInnerLocStart(), D->getLocation(),
2553 SemaRef.Context, Owner, D->getInnerLocStart(), D->getLocation(),
2632 if (SemaRef.CheckParameterPacksForExpansion(D->getLocation(),
2678 SemaRef.Context, Owner, D->getLocation(),
2683 SemaRef.Context, Owner, D->getLocation(),
2716 = UsingDirectiveDecl::Create(SemaRef.Context, Owner, D->getLocation(),
2779 D->getLocation(), Prev))
2786 SS, NameInfo, D->getLocation()))
2813 Shadow->getLocation(), OldTarget, TemplateArgs));
2824 Shadow->getLocation(), OldPrev, TemplateArgs));
2961 SemaRef.FindInstantiatedDecl(D->getLocation(), UD, TemplateArgs))
2990 SemaRef.CheckOMPThreadPrivateDecl(D->getLocation(), Vars);
3018 D->getLocation(), Vars, Clauses, Owner);
3039 D->getLocation(),
3041 D->getType(), TemplateArgs, D->getLocation(), DeclarationName())));
3050 std::make_pair(SubstReductionType, D->getLocation())};
3140 D->getLocation(),
3142 D->getLocation(), VN)));
3156 /*S=*/nullptr, Owner, D->getDeclName(), SubstMapperTy, D->getLocation(),
3173 NewDMD, /*S=*/nullptr, SubstMapperTy, D->getLocation(), VN);
3258 D->getLocation(), ClassTemplate, TemplateArgs));
3279 D->getLocation(),
3295 SemaRef.CheckSpecializationInstantiationRedecl(D->getLocation(),
3317 SemaRef.Diag(D->getLocation(), diag::err_redefinition) << PrevDecl;
3318 SemaRef.Diag(PrevDecl->getDefinition()->getLocation(),
3327 D->getLocation(), InstClassTemplate, Converted, PrevDecl);
3352 TemplateName(InstClassTemplate), D->getLocation(), InstTemplateArgs,
3369 SemaRef.InstantiateClass(D->getLocation(), InstD, D, TemplateArgs,
3387 D->getLocation(), VarTemplate, TemplateArgs));
3402 if (SemaRef.CheckTemplateArgumentList(InstVarTemplate, D->getLocation(),
3415 D->getLocation(), D->getSpecializationKind(), PrevDecl,
3438 SemaRef.Diag(D->getLocation(), diag::err_variable_instantiates_to_function)
3445 SemaRef.Context, Owner, D->getInnerLocStart(), D->getLocation(),
3470 SemaRef.Diag(D->getLocation(), DiagID)
3491 runWithSufficientStackSpace(D->getLocation(), [&] {
3589 PartialSpec->getLocation(),
3597 PartialSpec->getLocation(), ClassTemplate, InstTemplateArgs.size(),
3623 PartialSpec->getLocation(),
3643 SemaRef.Diag(PartialSpec->getLocation(), diag::err_partial_spec_redeclared)
3645 SemaRef.Diag(PrevDecl->getLocation(), diag::note_prev_partial_spec_here)
3655 PartialSpec->getBeginLoc(), PartialSpec->getLocation(), InstParams,
3715 if (SemaRef.CheckTemplateArgumentList(VarTemplate, PartialSpec->getLocation(),
3721 PartialSpec->getLocation(), VarTemplate, InstTemplateArgs.size(),
3744 TemplateName(VarTemplate), PartialSpec->getLocation(), InstTemplateArgs,
3763 SemaRef.Diag(PartialSpec->getLocation(),
3766 SemaRef.Diag(PrevDecl->getLocation(),
3779 SemaRef.Diag(PartialSpec->getLocation(),
3789 PartialSpec->getLocation(), InstParams, VarTemplate, DI->getType(),
3878 D, D->getLocation(), OldProto->getParamType(i)));
3902 if (SemaRef.SubstParmTypes(D->getLocation(), D->parameters(), nullptr,
3934 FunctionParam->getLocation(),
3959 FunctionParam->getLocation(),
4234 Diag(PatternDecl->getLocation(), diag::note_forward_template_decl);
4338 SetDeclDefaulted(Function, PatternDecl->getLocation());
4530 *this, NewVar->getDeclName(), NewVar->getLocation(),
4542 NewVar->getLocation(), OldVar->getPreviousDecl(), TemplateArgs))
4790 Diag(PatternDecl->getLocation(), diag::note_forward_template_decl);
4889 LookupResult R(*this, Var->getDeclName(), Var->getLocation(),
5518 DeclarationNameInfo NameInfo(Name, D->getLocation());
5566 Diag(D->getLocation(), diag::note_non_instantiated_member_here);
5579 Diag(Spec->getLocation(), diag::note_enum_specialized_here)
tools/clang/lib/Sema/SemaType.cpp 926 S.Diag(objcClass->getLocation(), diag::note_previous_decl)
965 S.Diag(typeParam->getLocation(), diag::note_objc_type_param_here)
993 S.Diag(typeParam->getLocation(), diag::note_objc_type_param_here)
1025 S.Diag(objcClass->getLocation(), diag::note_previous_decl)
3138 SemaRef.Diag(TD->getLocation(), diag::note_template_decl_here);
3214 SemaRef.Diag(OwnedTagDecl->getLocation(), DiagID)
4745 S.Diag(Tag->getLocation(), diag::err_type_defined_in_result_type)
4842 S.Diag(Param->getLocation(),
4848 S.Diag(Param->getLocation(),
4891 [&](unsigned i) { return FTI.Params[i].Param->getLocation(); });
6241 S.Diag(ObjT->getInterfaceDecl()->getLocation(),
6600 S.Diag(typedefDecl->getLocation(), diag::note_nullability_here)
8128 Diag(Tag->getLocation(),
8135 Diag(IFace->getLocation(), diag::note_forward_class);
8212 Diag(RD->getLocation(), diag::note_non_literal_lambda);
8221 Diag(RD->getLocation(), diag::note_non_literal_virtual_base)
8228 Diag(RD->getLocation(), diag::note_non_literal_no_constexpr_ctors) << RD;
8240 Diag(I->getLocation(), diag::note_non_literal_field)
8257 Diag(Dtor->getLocation(), diag::note_non_literal_non_constexpr_dtor)
8260 Diag(Dtor->getLocation(), Dtor->isUserProvided()
8411 Diag(FwdDecl->getLocation(), diag::note_forward_declaration) << FwdDecl;
tools/clang/lib/Sema/TreeTransform.h 1068 SemaRef.Diag(TD->getLocation(), diag::note_template_decl_here);
1121 SemaRef.Diag(SomeDecl->getLocation(), diag::note_declared_at);
1135 SemaRef.Diag(Tag->getLocation(), diag::note_previous_use);
1472 ExceptionDecl->getLocation(),
3646 getDerived().TransformDefinition(Var->getLocation(), Var));
5139 OldParm->getLocation(),
6188 SemaRef.Diag(TAT->getLocation(), diag::note_declared_at);
6464 getDerived().TransformDecl(T->getDecl()->getLocation(), T->getDecl()));
6756 Decl *LD = getDerived().TransformDecl(S->getDecl()->getLocation(),
6995 Decl *LD = getDerived().TransformDecl(S->getLabel()->getLocation(),
7052 Decl *Transformed = getDerived().TransformDefinition(D->getLocation(), D);
7195 if (!SemaRef.buildCoroutineParameterMoves(FD->getLocation()))
7197 auto *Promise = SemaRef.buildCoroutinePromise(FD->getLocation());
7571 ExceptionDecl->getLocation(), ExceptionDecl->getIdentifier());
10164 Decl *LD = getDerived().TransformDecl(E->getLabel()->getLocation(),
11585 OldVD->getLocation(), InitQualType, NewC.EllipsisLoc,
tools/clang/lib/Serialization/ASTReader.cpp 7774 return D->getLocation();
10175 Diag(D->getLocation(), diag::err_module_odr_violation_missing_decl)
10180 Diag(cast<Decl>(CanonDef)->getLocation(),
10184 Diag(Candidates[I]->getLocation(),
10298 ODRDiagError(FirstRecord->getLocation(), GetSourceRange(FirstDD),
10301 ODRDiagNote(SecondRecord->getLocation(), GetSourceRange(SecondDD),
10309 ODRDiagError(FirstRecord->getLocation(), GetSourceRange(FirstDD),
10312 ODRDiagNote(SecondRecord->getLocation(), GetSourceRange(SecondDD),
10327 ODRDiagError(FirstRecord->getLocation(), FirstBase.getSourceRange(),
10330 ODRDiagNote(SecondRecord->getLocation(),
10337 ODRDiagError(FirstRecord->getLocation(), FirstBase.getSourceRange(),
10340 ODRDiagNote(SecondRecord->getLocation(),
10348 ODRDiagError(FirstRecord->getLocation(), FirstBase.getSourceRange(),
10352 ODRDiagNote(SecondRecord->getLocation(),
10438 ODRDiagError(FirstDecl->getLocation(), FirstDecl->getSourceRange(),
10441 ODRDiagNote(SecondDecl->getLocation(), SecondDecl->getSourceRange(),
10461 ODRDiagError(FirstDecl->getLocation(),
10465 ODRDiagNote(SecondDecl->getLocation(),
10475 ODRDiagError(FirstDecl->getLocation(), FirstDecl->getSourceRange(),
10477 ODRDiagNote(SecondDecl->getLocation(), SecondDecl->getSourceRange(),
10493 ODRDiagError(FirstDecl->getLocation(),
10497 ODRDiagNote(SecondDecl->getLocation(),
10507 ODRDiagError(FirstDecl->getLocation(), FirstDecl->getSourceRange(),
10509 ODRDiagNote(SecondDecl->getLocation(), SecondDecl->getSourceRange(),
10526 ODRDiagError(FirstDecl->getLocation(),
10530 ODRDiagNote(SecondDecl->getLocation(),
10540 ODRDiagError(FirstDecl->getLocation(), FirstDecl->getSourceRange(),
10542 ODRDiagNote(SecondDecl->getLocation(), SecondDecl->getSourceRange(),
10662 Diag(FirstRecord->getLocation(),
10667 Diag(FirstDecl->getLocation(), diag::note_first_module_difference)
10671 Diag(SecondRecord->getLocation(),
10676 Diag(SecondDecl->getLocation(), diag::note_second_module_difference)
10690 FirstLoc = FirstIt->first->getLocation();
10702 SecondLoc = SecondDecl->getLocation();
10848 ODRDiagError(FirstField->getLocation(), FirstField->getSourceRange(),
10851 ODRDiagNote(SecondField->getLocation(), SecondField->getSourceRange(),
10866 ODRDiagError(FirstField->getLocation(), FirstField->getSourceRange(),
10869 ODRDiagNote(SecondField->getLocation(), SecondField->getSourceRange(),
10880 ODRDiagError(FirstField->getLocation(), FirstField->getSourceRange(),
10883 ODRDiagNote(SecondField->getLocation(), SecondField->getSourceRange(),
10891 ODRDiagError(FirstField->getLocation(), FirstField->getSourceRange(),
10894 ODRDiagNote(SecondField->getLocation(), SecondField->getSourceRange(),
10904 ODRDiagError(FirstField->getLocation(), FirstField->getSourceRange(),
10907 ODRDiagNote(SecondField->getLocation(), SecondField->getSourceRange(),
10918 ODRDiagError(FirstField->getLocation(), FirstField->getSourceRange(),
10921 ODRDiagNote(SecondField->getLocation(), SecondField->getSourceRange(),
10932 ODRDiagError(FirstField->getLocation(),
10936 ODRDiagNote(SecondField->getLocation(),
10966 ODRDiagError(FirstMethod->getLocation(),
10969 ODRDiagNote(SecondMethod->getLocation(),
10980 ODRDiagError(FirstMethod->getLocation(),
10984 ODRDiagNote(SecondMethod->getLocation(),
10994 ODRDiagError(FirstMethod->getLocation(),
10998 ODRDiagNote(SecondMethod->getLocation(),
11011 ODRDiagError(FirstMethod->getLocation(),
11014 ODRDiagNote(SecondMethod->getLocation(),
11029 ODRDiagError(FirstMethod->getLocation(),
11032 ODRDiagNote(SecondMethod->getLocation(),
11042 ODRDiagError(FirstMethod->getLocation(),
11045 ODRDiagNote(SecondMethod->getLocation(),
11055 ODRDiagError(FirstMethod->getLocation(),
11058 ODRDiagNote(SecondMethod->getLocation(),
11068 ODRDiagError(FirstMethod->getLocation(),
11071 ODRDiagNote(SecondMethod->getLocation(),
11081 ODRDiagError(FirstMethod->getLocation(),
11084 ODRDiagNote(SecondMethod->getLocation(),
11104 ODRDiagError(FirstMethod->getLocation(),
11109 ODRDiagError(FirstMethod->getLocation(),
11117 ODRDiagNote(SecondMethod->getLocation(),
11123 ODRDiagNote(SecondMethod->getLocation(),
11135 ODRDiagError(FirstMethod->getLocation(),
11138 ODRDiagNote(SecondMethod->getLocation(),
11148 ODRDiagError(FirstMethod->getLocation(),
11154 ODRDiagNote(SecondMethod->getLocation(),
11166 ODRDiagError(FirstMethod->getLocation(),
11171 ODRDiagNote(SecondMethod->getLocation(),
11194 ODRDiagError(FirstMethod->getLocation(),
11197 ODRDiagNote(SecondMethod->getLocation(),
11228 ODRDiagError(FirstMethod->getLocation(),
11233 ODRDiagNote(SecondMethod->getLocation(),
11252 ODRDiagError(FirstMethod->getLocation(),
11256 ODRDiagNote(SecondMethod->getLocation(),
11287 ODRDiagError(FirstMethod->getLocation(),
11290 ODRDiagNote(SecondMethod->getLocation(),
11298 ODRDiagError(FirstMethod->getLocation(),
11301 ODRDiagNote(SecondMethod->getLocation(),
11317 ODRDiagError(FirstTD->getLocation(), FirstTD->getSourceRange(),
11320 ODRDiagNote(SecondTD->getLocation(), SecondTD->getSourceRange(),
11331 ODRDiagError(FirstTD->getLocation(), FirstTD->getSourceRange(),
11334 ODRDiagNote(SecondTD->getLocation(), SecondTD->getSourceRange(),
11348 ODRDiagError(FirstVD->getLocation(), FirstVD->getSourceRange(),
11351 ODRDiagNote(SecondVD->getLocation(), SecondVD->getSourceRange(),
11362 ODRDiagError(FirstVD->getLocation(), FirstVD->getSourceRange(),
11365 ODRDiagNote(SecondVD->getLocation(), SecondVD->getSourceRange(),
11375 ODRDiagError(FirstVD->getLocation(), FirstVD->getSourceRange(),
11379 ODRDiagNote(SecondVD->getLocation(), SecondVD->getSourceRange(),
11389 ODRDiagError(FirstVD->getLocation(), FirstVD->getSourceRange(),
11392 ODRDiagNote(SecondVD->getLocation(), SecondVD->getSourceRange(),
11402 ODRDiagError(FirstVD->getLocation(), FirstVD->getSourceRange(),
11405 ODRDiagNote(SecondVD->getLocation(), SecondVD->getSourceRange(),
11472 ODRDiagError(FirstTemplate->getLocation(),
11476 ODRDiagNote(SecondTemplate->getLocation(),
11509 ODRDiagError(FirstTemplate->getLocation(),
11513 ODRDiagNote(SecondTemplate->getLocation(),
11523 ODRDiagError(FirstTemplate->getLocation(),
11528 ODRDiagNote(SecondTemplate->getLocation(),
11550 ODRDiagError(FirstTemplate->getLocation(),
11554 ODRDiagNote(SecondTemplate->getLocation(),
11567 ODRDiagError(FirstTemplate->getLocation(),
11571 ODRDiagNote(SecondTemplate->getLocation(),
11582 ODRDiagError(FirstTemplate->getLocation(),
11586 ODRDiagNote(SecondTemplate->getLocation(),
11609 ODRDiagError(FirstTemplate->getLocation(),
11613 ODRDiagNote(SecondTemplate->getLocation(),
11628 ODRDiagError(FirstTemplate->getLocation(),
11632 ODRDiagNote(SecondTemplate->getLocation(),
11647 ODRDiagError(FirstTemplate->getLocation(),
11651 ODRDiagNote(SecondTemplate->getLocation(),
11662 ODRDiagError(FirstTemplate->getLocation(),
11666 ODRDiagNote(SecondTemplate->getLocation(),
11686 ODRDiagError(FirstTemplate->getLocation(),
11690 ODRDiagNote(SecondTemplate->getLocation(),
11705 ODRDiagError(FirstTemplate->getLocation(),
11709 ODRDiagNote(SecondTemplate->getLocation(),
11722 ODRDiagError(FirstTemplate->getLocation(),
11726 ODRDiagNote(SecondTemplate->getLocation(),
11737 ODRDiagError(FirstTemplate->getLocation(),
11741 ODRDiagNote(SecondTemplate->getLocation(),
11764 Diag(FirstDecl->getLocation(),
11768 Diag(SecondDecl->getLocation(),
11781 Diag(Merge.first->getLocation(),
11850 ODRDiagError(FirstParam->getLocation(), FirstParam->getSourceRange(),
11853 ODRDiagNote(SecondParam->getLocation(), SecondParam->getSourceRange(),
11867 ODRDiagError(FirstParam->getLocation(),
11872 ODRDiagError(FirstParam->getLocation(),
11879 ODRDiagNote(SecondParam->getLocation(),
11884 ODRDiagNote(SecondParam->getLocation(),
11895 ODRDiagError(FirstParam->getLocation(), FirstParam->getSourceRange(),
11899 ODRDiagNote(SecondParam->getLocation(), SecondParam->getSourceRange(),
11909 ODRDiagError(FirstParam->getLocation(), FirstParam->getSourceRange(),
11912 ODRDiagNote(SecondParam->getLocation(), SecondParam->getSourceRange(),
11931 ODRDiagError(FirstFunction->getLocation(),
11933 ODRDiagNote(SecondFunction->getLocation(),
12003 ODRDiagError(FirstEnum->getLocation(), FirstEnum->getSourceRange(),
12006 ODRDiagNote(SecondEnum->getLocation(), SecondEnum->getSourceRange(),
12016 ODRDiagError(FirstEnum->getLocation(), FirstEnum->getSourceRange(),
12019 ODRDiagNote(SecondEnum->getLocation(), SecondEnum->getSourceRange(),
12036 ODRDiagError(FirstEnum->getLocation(), FirstEnum->getSourceRange(),
12039 ODRDiagNote(SecondEnum->getLocation(), SecondEnum->getSourceRange(),
12049 ODRDiagError(FirstEnum->getLocation(), FirstEnum->getSourceRange(),
12052 ODRDiagNote(SecondEnum->getLocation(), SecondEnum->getSourceRange(),
12064 ODRDiagError(FirstEnum->getLocation(), FirstEnum->getSourceRange(),
12067 ODRDiagNote(SecondEnum->getLocation(), SecondEnum->getSourceRange(),
12083 ODRDiagError(FirstEnumConstant->getLocation(),
12086 ODRDiagNote(SecondEnumConstant->getLocation(),
12099 ODRDiagError(FirstEnumConstant->getLocation(),
12103 ODRDiagNote(SecondEnumConstant->getLocation(),
12112 ODRDiagError(FirstEnumConstant->getLocation(),
12116 ODRDiagNote(SecondEnumConstant->getLocation(),
tools/clang/lib/Serialization/ASTReaderDecl.cpp 4134 Reader.Diag(Cat->getLocation(), diag::warn_dup_category_def)
4136 Reader.Diag(Existing->getLocation(), diag::note_previous_definition);
tools/clang/lib/Serialization/ASTWriter.cpp 5349 Record.AddSourceLocation(RD->getLocation());
5723 SourceLocation Loc = D->getLocation();
tools/clang/lib/Serialization/ASTWriterDecl.cpp 2371 SourceLocation Loc = D->getLocation();
tools/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp 92 PresumedLoc Loc = SM.getPresumedLoc(D->getLocation());
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp 956 SourceLocation L = FD->getLocation();
tools/clang/lib/StaticAnalyzer/Checkers/ObjCUnusedIVarsChecker.cpp 152 Scan(M, D->getDeclContext(), SM.getFileID(D->getLocation()), SM);
tools/clang/lib/StaticAnalyzer/Checkers/PaddingChecker.cpp 136 auto Location = RD->getLocation();
tools/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp 251 FR->getDecl()->getLocation()))
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp 1135 if (D->getLocation().isValid() && !AMgr.isInCodeFile(D->getLocation()))
1135 if (D->getLocation().isValid() && !AMgr.isInCodeFile(D->getLocation()))
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp 877 if (Ctx.getSourceManager().isInSystemHeader(FD->getLocation()))
884 if (!AMgr.isInCodeFile(FD->getLocation()))
tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp 853 if (C.getSourceManager().isInSystemHeader(D->getLocation())) {
tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp 307 PresumedLoc Loc = SM.getPresumedLoc(D->getLocation());
699 PresumedLoc Loc = Ctx->getSourceManager().getPresumedLoc(D->getLocation());
753 SourceLocation SL = Body ? Body->getBeginLoc() : D->getLocation();
tools/clang/lib/Tooling/Core/Lookup.cpp 163 SM.getSpellingLoc(Res->getLocation()), UseLoc))
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp 199 auto StartLoc = Decl->getLocation();
tools/clang/lib/Tooling/Transformer/RangeSelector.cpp 195 SourceLocation L = D->getLocation();
tools/clang/tools/extra/clang-doc/Mapper.cpp 28 if (D->getASTContext().getSourceManager().isInSystemHeader(D->getLocation()))
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp 100 SourceLocation Loc = SM.getExpansionLoc(ND->getLocation());
tools/clang/tools/extra/clang-move/Move.cpp 33 AST_MATCHER(NamedDecl, notInMacro) { return !Node.getLocation().isMacroID(); }
493 auto Loc = Decl->getLocation();
tools/clang/tools/extra/clang-tidy/abseil/NoNamespaceCheck.cpp 34 diag(abslNamespaceDecl->getLocation(),
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp 169 return Expect != nullptr && Expect->getLocation().isMacroID() &&
178 Mock->getLocation().isMacroID() &&
307 diag(PVD->getLocation(), "%0 declared here", DiagnosticIDs::Note) << II;
309 diag(OriginalCallee->getLocation(),
tools/clang/tools/extra/clang-tidy/bugprone/CopyConstructorInitCheck.cpp 86 Ctor->getLocation().isMacroID() || ShouldNotDoFixit)
95 auto Diag = diag(Ctor->getLocation(),
tools/clang/tools/extra/clang-tidy/bugprone/DynamicStaticInitializersCheck.cpp 56 SourceLocation Loc = Var->getLocation();
tools/clang/tools/extra/clang-tidy/bugprone/ExceptionEscapeCheck.cpp 78 diag(MatchedDecl->getLocation(),
tools/clang/tools/extra/clang-tidy/bugprone/ForwardDeclarationNamespaceCheck.cpp 129 if (CurDecl->getLocation().isMacroID() ||
130 CurDecl->getLocation().isInvalid()) {
140 diag(CurDecl->getLocation(),
144 diag(Decl->getLocation(), "a declaration of %0 is found here",
159 diag(CurDecl->getLocation(),
163 diag(Def->getLocation(), "a definition of %0 is found here",
tools/clang/tools/extra/clang-tidy/bugprone/ForwardingReferenceOverloadCheck.cpp 131 diag(Ctor->getLocation(),
138 diag(OtherCtor->getLocation(),
tools/clang/tools/extra/clang-tidy/bugprone/UnhandledSelfAssignmentCheck.cpp 108 diag(MatchedDecl->getLocation(),
tools/clang/tools/extra/clang-tidy/bugprone/VirtualNearMissCheck.cpp 254 SourceRange(DerivedMD->getLocation()));
tools/clang/tools/extra/clang-tidy/cert/DontModifyStdNamespaceCheck.cpp 41 diag(N->getLocation(),
tools/clang/tools/extra/clang-tidy/cert/StaticObjectExceptionCheck.cpp 44 diag(VD->getLocation(),
49 SourceLocation FuncLocation = Func->getLocation();
tools/clang/tools/extra/clang-tidy/cert/VariadicFunctionDefCheck.cpp 34 diag(FD->getLocation(),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/InitVariablesCheck.cpp 88 diag(MatchedDecl->getLocation(), "variable %0 is not initialized")
91 MatchedDecl->getLocation().getLocWithOffset(
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/InterfacesGlobalInitCheck.cpp 40 if (Var->getLocation().isMacroID())
47 ReferenceeDef->getLocation(), Var->getLocation())) {
47 ReferenceeDef->getLocation(), Var->getLocation())) {
50 diag(Var->getLocation(),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp 440 diag(Ctor ? Ctor->getBeginLoc() : ClassDecl.getLocation(),
518 diag(Ctor ? Ctor->getBeginLoc() : ClassDecl.getLocation(),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.cpp 106 ClassDefId ID(MatchedDecl->getLocation(), MatchedDecl->getName());
tools/clang/tools/extra/clang-tidy/fuchsia/DefaultArgumentsDeclarationsCheck.cpp 40 D->getName().empty() ? D->getBeginLoc() : D->getLocation();
tools/clang/tools/extra/clang-tidy/google/DefaultArgumentsCheck.cpp 29 diag(MatchedDecl->getLocation(),
tools/clang/tools/extra/clang-tidy/google/ExplicitConstructorCheck.cpp 95 SourceLocation Loc = Conversion->getLocation();
129 auto Diag = diag(Ctor->getLocation(),
145 SourceLocation Loc = Ctor->getLocation();
tools/clang/tools/extra/clang-tidy/google/FunctionNamingCheck.cpp 83 CharSourceRange::getTokenRange(SourceRange(Decl->getLocation())),
117 diag(MatchedDecl->getLocation(),
tools/clang/tools/extra/clang-tidy/google/GlobalVariableDeclarationCheck.cpp 56 CharSourceRange::getTokenRange(SourceRange(Decl->getLocation())),
90 diag(Decl->getLocation(),
98 diag(Decl->getLocation(),
tools/clang/tools/extra/clang-tidy/google/NonConstReferences.cpp 55 if (Function->getLocation().isMacroID())
138 diag(Parameter->getLocation(), "non-const reference parameter at index %0, "
142 diag(Parameter->getLocation(),
tools/clang/tools/extra/clang-tidy/hicpp/NoAssemblerCheck.cpp 40 ASMLocation = ASM->getLocation();
tools/clang/tools/extra/clang-tidy/llvm/PreferRegisterOverUnsignedCheck.cpp 54 diag(UserVarDecl->getLocation(),
tools/clang/tools/extra/clang-tidy/llvm/TwineLocalCheck.cpp 28 auto Diag = diag(VD->getLocation(),
tools/clang/tools/extra/clang-tidy/misc/DefinitionsInHeadersCheck.cpp 128 diag(FD->getLocation(),
133 diag(FD->getLocation(), /*FixDescription=*/"make as 'inline'",
150 diag(VD->getLocation(),
tools/clang/tools/extra/clang-tidy/misc/MisplacedConstCheck.cpp 52 diag(Var->getLocation(), "%0 declared with a const-qualified typedef type; "
57 diag(Typedef->getLocation(), "typedef declared here", DiagnosticIDs::Note);
tools/clang/tools/extra/clang-tidy/misc/NewDeleteOverloadsCheck.cpp 205 diag(FD->getLocation(), "declaration of %0 has no matching declaration "
tools/clang/tools/extra/clang-tidy/misc/NonCopyableObjects.cpp 60 diag(D->getLocation(), "%0 declared as type '%1', which is unsafe to copy"
tools/clang/tools/extra/clang-tidy/misc/NonPrivateMemberVariablesInClassesCheck.cpp 85 diag(Field->getLocation(), "member variable %0 has %1 visibility")
tools/clang/tools/extra/clang-tidy/misc/UnusedAliasDeclsCheck.cpp 56 diag(FoundDecl.first->getLocation(), "namespace alias decl %0 is unused")
tools/clang/tools/extra/clang-tidy/misc/UnusedParametersCheck.cpp 135 auto MyDiag = diag(Param->getLocation(), "parameter %0 is unused") << Param;
143 !Result.SourceManager->isInMainFile(Function->getLocation()) ||
150 SourceRange RemovalRange(Param->getLocation());
tools/clang/tools/extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp 77 if (Using->getLocation().isMacroID())
173 diag(Context.FoundUsingDecl->getLocation(), "using decl %0 is unused")
176 diag(Context.FoundUsingDecl->getLocation(),
tools/clang/tools/extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp 100 Namespaces.back()->getLocation());
tools/clang/tools/extra/clang-tidy/modernize/UnaryStaticAssertCheck.cpp 31 SourceLocation Loc = MatchedDecl->getLocation();
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp 262 diag(Field->getLocation(), "use default member initializer for %0")
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp 249 if (IgnoreMacros && SpecialFunctionDecl->getLocation().isMacroID())
298 SourceLocation Location = SpecialFunctionDecl->getLocation();
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDeleteCheck.cpp 63 if (Func->getLocation().isMacroID() && IgnoreMacros)
66 diag(Func->getLocation(),
74 if (Func->getLocation().isMacroID() && IgnoreMacros)
77 diag(Func->getLocation(), "deleted member function should be public");
tools/clang/tools/extra/clang-tidy/modernize/UseNodiscardCheck.cpp 120 SourceLocation Loc = MatchedDecl->getLocation();
tools/clang/tools/extra/clang-tidy/modernize/UseOverrideCheck.cpp 95 if (Method->isImplicit() || Method->getLocation().isMacroID() ||
126 auto Diag = diag(Method->getLocation(), Message)
145 SourceLocation MethodLoc = Method->getLocation();
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp 209 SourceLocation BeginNameF = expandIfMacroId(F.getLocation(), SM);
229 diag(F.getLocation(), Message);
241 diag(F.getLocation(), Message);
270 diag(F.getLocation(), Message);
397 if (F->getLocation().isInvalid())
405 diag(F->getLocation(), Message);
423 diag(F->getLocation(), Message);
430 diag(F->getLocation(), Message);
453 diag(F->getLocation(), Message);
471 diag(F->getLocation(), Message)
tools/clang/tools/extra/clang-tidy/modernize/UseUsingCheck.cpp 80 if (MatchedDecl->getLocation().isInvalid())
tools/clang/tools/extra/clang-tidy/objc/ForbiddenSubclassingCheck.cpp 77 diag(SubClass->getLocation(),
tools/clang/tools/extra/clang-tidy/objc/MissingHashCheck.cpp 56 diag(ID->getLocation(), "%0 implements -isEqual: without implementing -hash")
tools/clang/tools/extra/clang-tidy/objc/PropertyDeclarationCheck.cpp 53 CharSourceRange::getTokenRange(SourceRange(Decl->getLocation())),
125 diag(MatchedDecl->getLocation(),
132 diag(MatchedDecl->getLocation(),
tools/clang/tools/extra/clang-tidy/performance/ForRangeCopyCheck.cpp 76 diag(LoopVar.getLocation(),
104 diag(LoopVar.getLocation(),
tools/clang/tools/extra/clang-tidy/performance/MoveConstructorInitCheck.cpp 87 diag(CopyCtor->getLocation(), "copy constructor being called",
89 diag(Candidate->getLocation(), "candidate move constructor here",
tools/clang/tools/extra/clang-tidy/performance/NoexceptMoveConstructorCheck.cpp 52 diag(Decl->getLocation(), "move %0s should be marked noexcept")
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp 99 !NewVar->getLocation().isMacroID();
128 diag(Var.getLocation(),
147 auto Diagnostic = diag(NewVar.getLocation(),
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp 138 diag(Param->getLocation(),
tools/clang/tools/extra/clang-tidy/readability/ConstReturnTypeCheck.cpp 39 : Def->getLocation();
tools/clang/tools/extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp 225 diag(Empty->getLocation(), "method %0::empty() defined here",
tools/clang/tools/extra/clang-tidy/readability/ConvertMemberFunctionsToStatic.cpp 133 diag(Definition->getLocation(), "method %0 can be made static")
tools/clang/tools/extra/clang-tidy/readability/FunctionSizeCheck.cpp 181 diag(Func->getLocation(),
187 diag(Func->getLocation(),
194 diag(Func->getLocation(), "%0 statements (threshold %1)",
200 diag(Func->getLocation(), "%0 branches (threshold %1)", DiagnosticIDs::Note)
205 diag(Func->getLocation(), "%0 parameters (threshold %1)",
217 diag(Func->getLocation(), "%0 variables (threshold %1)",
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp 705 IdentifierNamingCheck::NamingCheckId(Decl->getLocation(),
871 Decl->getLocation(), Decl->getNameAsString())];
873 DeclarationNameInfo(Decl->getDeclName(), Decl->getLocation())
tools/clang/tools/extra/clang-tidy/readability/InconsistentDeclarationParameterNameCheck.cpp 121 (*OtherParamIt)->getLocation())
144 ParameterSourceDeclaration->getLocation();
147 SourceLocation OtherLocation = OtherDeclaration->getLocation();
154 InconsistentDeclarations.emplace_back(OtherDeclaration->getLocation(),
247 OriginalDeclaration->getLocation(),
280 Check->diag(ParameterSourceDeclaration->getLocation(), "the %0 seen here",
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp 142 FirstDecl->getLocation(),
tools/clang/tools/extra/clang-tidy/readability/NamedParameterCheck.cpp 60 if (!Parm->getLocation().isValid() || Parm->getLocation().isMacroID() ||
60 if (!Parm->getLocation().isValid() || Parm->getLocation().isMacroID() ||
61 !SM.isWrittenInSameFile(Parm->getBeginLoc(), Parm->getLocation()))
76 const char *End = SM.getCharacterData(Parm->getLocation());
88 auto D = diag(FirstParm->getLocation(),
118 D << FixItHint::CreateInsertion(Parm->getLocation(),
tools/clang/tools/extra/clang-tidy/readability/NamespaceCommentCheck.cpp 86 SourceLocation LBracketLocation = ND->getLocation();
99 if (!ND->getLocation().isMacroID()) {
199 diag(ND->getLocation(), "%0 starts here", DiagnosticIDs::Note)
tools/clang/tools/extra/clang-tidy/readability/NonConstParameterCheck.cpp 150 diag(Par->getLocation(), "pointer parameter '%0' can be pointer to const")
tools/clang/tools/extra/clang-tidy/readability/RedundantDeclarationCheck.cpp 45 if (!Prev->getLocation().isValid())
47 if (Prev->getLocation() == D->getLocation())
47 if (Prev->getLocation() == D->getLocation())
50 (D->getLocation().isMacroID() || Prev->getLocation().isMacroID()))
50 (D->getLocation().isMacroID() || Prev->getLocation().isMacroID()))
60 !SM.isInMainFile(D->getLocation()) &&
61 !SM.isWrittenInSameFile(Prev->getLocation(), D->getLocation());
61 !SM.isWrittenInSameFile(Prev->getLocation(), D->getLocation());
77 auto Diag = diag(D->getLocation(), "redundant %0 declaration") << D;
82 diag(Prev->getLocation(), "previously declared here", DiagnosticIDs::Note);
tools/clang/tools/extra/clang-tidy/readability/StaticDefinitionInAnonymousNamespaceCheck.cpp 34 if (Def->getLocation().isMacroID())
43 diag(Def->getLocation(), "%0 is a static definition in "
tools/clang/tools/extra/clang-tidy/utils/FixItHintUtils.cpp 19 SourceLocation AmpLocation = Var.getLocation();
tools/clang/tools/extra/clangd/AST.cpp 79 return !isSpelledInSource(D->getLocation(),
84 return D->getLocation();
tools/clang/tools/extra/clangd/FindTarget.cpp 431 ReferenceLoc{D->getQualifierLoc(), D->getLocation(), /*IsDecl=*/false,
457 ND->getLocation(),
tools/clang/tools/extra/clangd/ParsedAST.cpp 73 if (!isInsideMainFile(D->getLocation(), SM))
tools/clang/tools/extra/clangd/Quality.cpp 46 if (isInsideMainFile(Redecl->getLocation(), SourceMgr))
56 if (isInsideMainFile(R.ShadowDecl->getLocation(), SourceMgr))
tools/clang/tools/extra/clangd/Selection.cpp 376 return VD->getLocation();
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp 195 addToken(ND->getLocation(), ND);
tools/clang/tools/extra/clangd/index/IndexAction.cpp 153 auto FID = SM.getFileID(SM.getExpansionLoc(D->getLocation()));
tools/clang/tools/extra/clangd/index/SymbolCollector.cpp 178 isa<TagDecl>(&ND) && !isInsideMainFile(ND.getLocation(), SM);
257 if (D->getLocation().isInvalid())
621 setIncludeLocation(S, ND.getLocation());
tools/clang/tools/extra/clangd/refactor/tweaks/DefineInline.cpp 102 SourceLocation TargetLoc = Target->getLocation();
114 SourceLocation DeclLoc = D->getLocation();
tools/clang/tools/extra/clangd/unittests/PrintASTTests.cpp 42 ND->getLocation());
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp 513 return findDecl(AST, Name).getLocation();
614 FileID Foo = SM.getFileID(findDecl(AST, "foo").getLocation());
617 FileID Bar = SM.getFileID(findDecl(AST, "bar").getLocation());
tools/clang/tools/extra/clangd/unittests/XRefsTests.cpp 2277 return ND.getLocation() == SL && llvm::isa<FunctionDecl>(ND);
tools/clang/tools/extra/modularize/Modularize.cpp 640 Location Loc(SM, ND->getLocation());
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp 19 diag(Var->getLocation(), "variable");
tools/clang/tools/extra/unittests/clang-tidy/OverlappingReplacementsTest.cpp 79 auto Diag = diag(VD->getLocation(), "refactor %0 into %1")
82 CharSourceRange::getTokenRange(VD->getLocation(),
83 VD->getLocation()),
tools/clang/tools/libclang/CIndex.cpp 658 Cursor = MakeCursorObjCClassRef(ID, ID->getLocation(), TU);
663 Cursor = MakeCursorObjCProtocolRef(PD, PD->getLocation(), TU);
1069 if (Visit(MakeCursorObjCClassRef(ND->getClassInterface(), ND->getLocation(),
1087 return Visit(MakeCursorObjCProtocolRef(PID, PID->getLocation(), TU));
1152 return Visit(MakeCursorObjCClassRef(D, D->getLocation(), TU));
1186 if (Visit(MakeCursorObjCClassRef(ID, D->getLocation(), TU)))
1235 if (Visit(MakeCursorOverloadedDeclRef(D, D->getLocation(), TU)))
5632 if (D->getLocation().isValid() && Data->TokenBeginLoc.isValid() &&
5633 D->getLocation() == Data->TokenBeginLoc)
5926 SourceLocation Loc = D->getLocation();
5934 Loc = VD->getLocation();
6067 R.setBegin(VD->getLocation());
6106 R.setBegin(VD->getLocation());
6133 return MakeCursorOverloadedDeclRef(Using, D->getLocation(), tu);
6377 D->getLocation(), TU);
7225 if (E->getBeginLoc().isValid() && D->getLocation().isValid() &&
7226 E->getBeginLoc() == D->getLocation() &&
tools/clang/tools/libclang/CXIndexDataConsumer.cpp 169 ObjCID->getLocation() == Loc) {
177 ObjCPD->getLocation() == Loc) {
498 getIndexLoc(ImportD->getLocation()),
621 return handleDecl(D, D->getLocation(), getCursor(D), DInfo);
627 return handleDecl(D, D->getLocation(), getCursor(D), DInfo);
633 return handleDecl(D, D->getLocation(), getCursor(D), DInfo);
639 return handleDecl(D, D->getLocation(), getCursor(D), DInfo);
648 return handleDecl(D, D->getLocation(), getCursor(D), DInfo);
654 return handleDecl(D, D->getLocation(), getCursor(D), DInfo);
660 if (shouldSuppressRefs() && markEntityOccurrenceInFile(D, D->getLocation()))
667 return handleObjCContainer(D, D->getLocation(),
668 MakeCursorObjCClassRef(D, D->getLocation(),
702 return handleObjCContainer(D, D->getLocation(), getCursor(D), InterInfo);
710 return handleObjCContainer(D, D->getLocation(), getCursor(D), ContDInfo);
715 if (shouldSuppressRefs() && markEntityOccurrenceInFile(D, D->getLocation()))
723 return handleObjCContainer(D, D->getLocation(),
724 MakeCursorObjCProtocolRef(D, D->getLocation(),
739 return handleObjCContainer(D, D->getLocation(), getCursor(D), ProtInfo);
748 SourceLocation ClassLoc = D->getLocation();
781 SourceLocation ClassLoc = D->getLocation();
824 return handleReference(PD, D->getLocation(), getCursor(D),
858 return handleDecl(D, D->getLocation(), getCursor(D), DInfo);
865 return handleDecl(D, D->getLocation(), getCursor(D), DInfo);
876 return handleDecl(D, D->getLocation(), getCursor(D), DInfo);
882 return handleDecl(D, D->getLocation(), getCursor(D), DInfo);
901 if (isNotFromSourceFile(D->getLocation()))
1000 return handleDecl(OrigD, OrigD->getLocation(), getCursor(OrigD), CXXDInfo);
1006 return handleDecl(OrigD, OrigD->getLocation(), getCursor(OrigD), DInfo);
tools/clang/tools/libclang/Indexing.cpp 385 SourceLocation Loc = D->getLocation();
tools/clang/unittests/AST/MatchVerifier.h 204 return Node.getLocation();
tools/clang/unittests/CrossTU/CrossTranslationUnitTest.cpp 90 CTU.getImportedFromSourceLocation(NewFD->getLocation());
104 EXPECT_EQ(OrigSLoc, FDWithDefinition->getLocation());
tools/clang/unittests/Index/IndexTests.cpp 88 Position::fromSourceLocation(D->getLocation(), AST->getSourceManager());
tools/clang/unittests/Tooling/RecursiveASTVisitorTestDeclVisitor.cpp 70 Match(OS.str(), Decl->getLocation());
tools/clang/unittests/Tooling/RecursiveASTVisitorTests/CXXMethodDecl.cpp 29 Match("parm", P->getLocation());
tools/clang/unittests/Tooling/RecursiveASTVisitorTests/ImplicitCtor.cpp 24 Match(Class->getName(), Ctor->getLocation());
tools/clang/unittests/Tooling/RecursiveASTVisitorTests/TraversalScope.cpp 21 Match(D->getName(), D->getLocation());
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp 223 source.getASTContext()->getTranslationUnitDecl()->getLocation());
tools/lldb/source/Symbol/ClangASTContext.cpp 1497 *ast, decl_ctx, func_decl->getLocation(), func_decl->getDeclName(),
tools/lldb/source/Symbol/CxxModuleHandler.cpp 273 new_class_template->getTemplatedDecl()->getLocation(),
274 new_class_template->getLocation(), new_class_template, imported_args,