• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching refs:Loc

51 SourceLocation Sema::getLocForEndOfToken(SourceLocation Loc, unsigned Offset) {
52 return Lexer::getLocForEndOfToken(Loc, Offset, SourceMgr, LangOpts);
106 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason,
114 SourceLocation IncludeLoc = SM.getIncludeLoc(SM.getFileID(Loc));
117 const FileEntry *FE = SM.getFileEntryForID(SM.getFileID(Loc));
420 void Sema::warnStackExhausted(SourceLocation Loc) {
423 Diag(Loc, diag::warn_stack_exhausted);
428 void Sema::runWithSufficientStackSpace(SourceLocation Loc,
430 clang::runWithSufficientStackSpace([&] { warnStackExhausted(Loc); }, Fn);
494 SourceLocation Loc) {
503 Diag(Loc, diag::warn_nullability_lost) << SrcType << DstType;
1377 SourceLocation Loc = Diags.getCurrentDiagLoc();
1395 Diag(Loc, diag::warn_cxx98_compat_sfinae_access_control);
1436 Sema::Diag(SourceLocation Loc, const PartialDiagnostic& PD) {
1437 SemaDiagnosticBuilder Builder(Diag(Loc, PD.getDiagID()));
1452 S.Diags.Report(FnIt->second.Loc, diag::note_called_by));
1521 void visitUsedDecl(SourceLocation Loc, Decl *D) {
1525 checkFunc(Loc, FD);
1527 Inherited::visitUsedDecl(Loc, D);
1545 void checkFunc(SourceLocation Loc, FunctionDecl *FD) {
1553 S.finalizeOpenMPDelayedAnalysis(Caller, FD, Loc);
1555 S.DeviceKnownEmittedFns[FD] = {Caller, Loc};
1594 const SourceLocation &Loc = PDAt.first;
1597 S.getDiagnostics().getDiagnosticLevel(PD.getDiagID(), Loc) >=
1600 DiagnosticBuilder Builder(S.Diags.Report(Loc, PD.getDiagID()));
1652 Sema::DeviceDiagBuilder::DeviceDiagBuilder(Kind K, SourceLocation Loc,
1655 : S(S), Loc(Loc), DiagID(DiagID), Fn(Fn),
1662 ImmediateDiag.emplace(S.Diag(Loc, DiagID));
1668 Diags.emplace_back(Loc, S.PDiag(DiagID));
1674 : S(D.S), Loc(D.Loc), DiagID(D.DiagID), Fn(D.Fn),
1688 DiagID, Loc) >= DiagnosticsEngine::Warning;
1698 Sema::DeviceDiagBuilder Sema::targetDiag(SourceLocation Loc, unsigned DiagID) {
1700 return LangOpts.OpenMPIsDevice ? diagIfOpenMPDeviceCode(Loc, DiagID)
1701 : diagIfOpenMPHostCode(Loc, DiagID);
1703 return getLangOpts().CUDAIsDevice ? CUDADiagIfDeviceCode(Loc, DiagID)
1704 : CUDADiagIfHostCode(Loc, DiagID);
1707 return SYCLDiagIfDeviceCode(Loc, DiagID);
1709 return DeviceDiagBuilder(DeviceDiagBuilder::K_Immediate, Loc, DiagID,
1713 void Sema::checkDeviceDecl(const ValueDecl *D, SourceLocation Loc) {
1741 targetDiag(Loc, diag::err_device_unsupported_type)
1847 SourceLocation Loc = VD->getLocation();
1849 new (S.Context) DeclRefExpr(S.Context, VD, false, T, VK_LValue, Loc);
1851 InitializedEntity::InitializeBlock(Loc, T, false), VD, VD->getType(),
1864 S.ResolveExceptionSpec(Loc, FPT);
1931 Diag(PUD.Loc, PUD.PD);
2244 static void notePlausibleOverloads(Sema &S, SourceLocation Loc,
2248 return noteOverloads(S, Overloads, Loc);
2258 noteOverloads(S, PlausibleOverloads, Loc);
2291 SourceLocation Loc = E.get()->getExprLoc();
2305 Diag(Loc, PD) << /*zero-arg*/ 1 << IsMV << Range
2310 notePlausibleOverloads(*this, Loc, Overloads, IsPlausibleResult);
2322 Diag(Loc, PD) << /*not zero-arg*/ 0 << IsMV << Range;
2324 notePlausibleOverloads(*this, Loc, Overloads, IsPlausibleResult);
2411 auto Loc = Map.find(FDT);
2412 return llvm::join(Loc->second, " ");
2416 auto Loc = OpenCLDeclExtMap.find(FD);
2417 if (Loc == OpenCLDeclExtMap.end())
2419 for (auto &I : Loc->second) {
2431 auto Loc = Map.find(D);
2432 if (Loc == Map.end())
2435 for (auto &I : Loc->second) {
2452 auto Loc = DS.getTypeSpecTypeLoc();
2458 return checkOpenCLDisabledTypeOrDecl(TypePtr, Loc, QT, OpenCLTypeExtMap);
2461 if (checkOpenCLDisabledTypeOrDecl(Decl, Loc, QT, OpenCLDeclExtMap))
2465 return checkOpenCLDisabledTypeOrDecl(QT.getCanonicalType().getTypePtr(), Loc,