reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/AST/Expr.h
 2767   SourceLocation getBeginLoc() const LLVM_READONLY;

References

tools/clang/include/clang/AST/ExprCXX.h
  215     return getBeginLoc();
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  260   auto ExpansionLoc = SourceManager.getExpansionLoc(Node.getBeginLoc());
tools/clang/lib/ARCMigrate/TransGCCalls.cpp
   40       TA.report(E->getBeginLoc(), diag::warn_arcmt_nsalloc_realloc,
tools/clang/lib/AST/Expr.cpp
  217     return static_cast<const E *>(expr)->getBeginLoc();
tools/clang/lib/AST/Stmt.cpp
  256     return SourceRange(static_cast<const S *>(stmt)->getBeginLoc(),
tools/clang/lib/CodeGen/CGCall.cpp
 4595         CE ? CE->getBeginLoc() : SourceLocation());
tools/clang/lib/CodeGen/CGCoroutine.cpp
   95       CGF.CGM.Error(CoroIdExpr->getBeginLoc(),
   98       CGF.CGM.Error(CoroIdExpr->getBeginLoc(),
  708     CGM.Error(E->getBeginLoc(), "this builtin expect that __builtin_coro_begin "
  723     CGM.Error(E->getBeginLoc(), "this builtin expect that __builtin_coro_id has"
tools/clang/lib/CodeGen/CGExpr.cpp
 4827       llvm::Constant *StaticData[] = {EmitCheckSourceLocation(E->getBeginLoc()),
 4863         EmitCheckSourceLocation(E->getBeginLoc()),
tools/clang/lib/CodeGen/CGExprCXX.cpp
  386       EmitVTablePtrCheckForCall(RD, VTable, CFITCK_NVCall, CE->getBeginLoc());
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 2178   return checkTargetFeatures(E->getBeginLoc(), TargetDecl);
tools/clang/lib/Sema/SemaChecking.cpp
  185   QualType ResultType = S.CheckAddressOfOperand(Arg, TheCall->getBeginLoc());
  253   SourceLocation BuiltinLoc = BuiltinCall->getBeginLoc();
  449   DiagRuntimeBehavior(TheCall->getBeginLoc(), TheCall,
  518     S.Diag(Call->getBeginLoc(), diag::err_opencl_requires_extension)
  592     S.Diag(TheCall->getBeginLoc(),
  632     S.Diag(TheCall->getBeginLoc(),
  743   S.Diag(TheCall->getBeginLoc(),
  758     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_first_arg)
  815     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_invalid_arg)
  848       S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_invalid_arg)
  858       S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_invalid_arg)
  869     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_arg_num)
  892     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_invalid_arg)
  920     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_invalid_arg)
  939     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_pipe_first_arg)
  956     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_to_addr_arg_num)
  964     S.Diag(Call->getBeginLoc(), diag::err_opencl_builtin_to_addr_invalid_arg)
 1028     S.Diag(TheCall->getBeginLoc(), diag::err_builtin_launder_invalid_arg)
 1039   if (S.RequireCompleteType(TheCall->getBeginLoc(), ParamTy->getPointeeType(),
 1066   S.Diag(TheCall->getBeginLoc(), diag::err_builtin_target_unsupported)
 1186     Diag(TheCall->getBeginLoc(), diag::warn_alloca)
 1334     Diag(TheCall->getBeginLoc(), diag::warn_atomic_implicit_seq_cst)
 1453             TheCall->getBeginLoc(),
 1674       return Diag(TheCall->getBeginLoc(), diag::err_invalid_neon_type_code)
 2784         return Diag(TheCall->getBeginLoc(),
 2793       return Diag(TheCall->getBeginLoc(),
 2804       return Diag(TheCall->getBeginLoc(),
 3250     return Diag(TheCall->getBeginLoc(), diag::err_64_bit_builtin_32_bit_tgt)
 3256     return Diag(TheCall->getBeginLoc(), diag::err_ppc_builtin_only_on_pwr7)
 3261       return Diag(TheCall->getBeginLoc(), diag::err_ppc_builtin_only_on_pwr7)
 3373     return S.Diag(TheCall->getBeginLoc(), diag::err_expr_not_string_literal)
 3380     return S.Diag(TheCall->getBeginLoc(), diag::err_invalid_cpu_supports)
 3393     return S.Diag(TheCall->getBeginLoc(), diag::err_expr_not_string_literal)
 3400     return S.Diag(TheCall->getBeginLoc(), diag::err_invalid_cpu_is)
 3606   return Diag(TheCall->getBeginLoc(), diag::err_x86_builtin_invalid_rounding)
 3709   return Diag(TheCall->getBeginLoc(), diag::err_x86_builtin_invalid_scale)
 4518   return BuildAtomicExpr({TheCall->getBeginLoc(), TheCall->getEndLoc()},
 5833     return Diag(TheCall->getBeginLoc(),
 5843   SourceLocation BuiltinLoc = TheCall->getBeginLoc();
 5890           Diag(TheCall->getBeginLoc(), diag::err_vec_builtin_non_vector)
 5904         return ExprError(Diag(TheCall->getBeginLoc(),
 5910       return ExprError(Diag(TheCall->getBeginLoc(),
 5929       return ExprError(Diag(TheCall->getBeginLoc(),
 5938       return ExprError(Diag(TheCall->getBeginLoc(),
 6033         Diag(TheCall->getBeginLoc(), diag::warn_alloca_align_alignof)
 6039       return Diag(TheCall->getBeginLoc(), diag::err_alignment_not_power_of_two)
 6043       return Diag(TheCall->getBeginLoc(), diag::err_alignment_too_small)
 6047       return Diag(TheCall->getBeginLoc(), diag::err_alignment_too_big)
 6074       return Diag(TheCall->getBeginLoc(), diag::err_alignment_not_power_of_two)
 6080       Diag(TheCall->getBeginLoc(), diag::warn_assume_aligned_too_great)
 6162         VariadicFunction, TheCall->getBeginLoc(), SourceRange(),
 6187     return Diag(TheCall->getBeginLoc(), diag::err_constant_integer_arg_type)
 6212       return Diag(TheCall->getBeginLoc(), diag::err_argument_invalid_range)
 6217       DiagRuntimeBehavior(TheCall->getBeginLoc(), TheCall,
 6242     return Diag(TheCall->getBeginLoc(), diag::err_argument_not_multiple)
 6267   return Diag(TheCall->getBeginLoc(), diag::err_argument_not_power_of_2)
 6311   return Diag(TheCall->getBeginLoc(), diag::err_argument_not_shifted_byte)
 6338   return Diag(TheCall->getBeginLoc(),
 6356       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_must_be_pointer)
 6365       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_must_be_integer)
 6383       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_must_be_pointer)
 6405       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_must_be_pointer)
 6410       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_must_be_integer)
 6427       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_must_be_pointer)
 6456       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_null_or_pointer)
 6460       return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_null_or_pointer)
 6471         return Diag(TheCall->getBeginLoc(), diag::err_typecheck_sub_ptr_compatible)
 6479       return Diag(TheCall->getBeginLoc(), diag::err_memtag_any2arg_pointer)
 6523     return Diag(TheCall->getBeginLoc(), diag::err_expr_not_string_literal)
 6532     return Diag(TheCall->getBeginLoc(), diag::err_arm_invalid_specialreg)
 6574       return Diag(TheCall->getBeginLoc(), diag::err_arm_invalid_specialreg)
 6602     return Diag(TheCall->getBeginLoc(), diag::err_builtin_longjmp_unsupported)
 6603            << SourceRange(TheCall->getBeginLoc(), TheCall->getEndLoc());
 6613     return Diag(TheCall->getBeginLoc(), diag::err_builtin_longjmp_invalid_val)
 6623     return Diag(TheCall->getBeginLoc(), diag::err_builtin_setjmp_unsupported)
 6624            << SourceRange(TheCall->getBeginLoc(), TheCall->getEndLoc());
 9596                                      Call->getBeginLoc(), Call->getRParenLoc()))
 9818                                      Call->getBeginLoc(), Call->getRParenLoc()))
 9902   if (CheckMemorySizeofForComparison(*this, LenArg, FnName, CE->getBeginLoc(),
tools/clang/lib/Sema/SemaExpr.cpp
 5131   Invalid = GatherArgumentsForCall(Call->getBeginLoc(), FDecl, Proto, 0, Args,
tools/clang/lib/Sema/SemaExprCXX.cpp
 3450   LookupResult R(S, NewName, TheCall->getBeginLoc(), Sema::LookupOrdinaryName);
 6642                             Call->getBeginLoc(), Call, Call->getDirectCallee()))
tools/clang/lib/Sema/SemaInit.cpp
 7646   S.Diag(CE->getBeginLoc(), DiagID);
 7672   S.Diag(CE->getBeginLoc(), diag::note_remove_move)
tools/clang/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp
   85   if (CE->getBeginLoc().isMacroID()) {
tools/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
  157         CE->getBeginLoc(), MD->getParent()->getNameAsString() + "::");
tools/clang/tools/extra/clang-tidy/abseil/DurationFactoryFloatCheck.cpp
   61     diag(MatchedCall->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/abseil/DurationFactoryScaleCheck.cpp
  154     diag(Call->getBeginLoc(),
  209       diag(Call->getBeginLoc(), "internal duration scaling can be removed")
  222     diag(Call->getBeginLoc(), "internal duration scaling can be removed")
tools/clang/tools/extra/clang-tidy/abseil/RedundantStrcatCallsCheck.cpp
   55           Call->getBeginLoc(), Call->getArg(0)->getBeginLoc())));
  117   if (RootCall->getBeginLoc().isMacroID()) {
  132   diag(RootCall->getBeginLoc(), 
tools/clang/tools/extra/clang-tidy/android/CloexecCheck.cpp
   77   diag(MatchedCall->getBeginLoc(), WarningMsg)
tools/clang/tools/extra/clang-tidy/boost/UseToStringCheck.cpp
   58   auto Loc = Call->getBeginLoc();
   67       CharSourceRange::getCharRange(Call->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/bugprone/InaccurateEraseCheck.cpp
   55   const SourceLocation Loc = MemberCall->getBeginLoc();
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
  429       FunctionExpr->getBeginLoc(),
  430       FunctionExpr->getBeginLoc().getLocWithOffset(FuncNameLength - 1));
  473       FunctionExpr->getBeginLoc());
  475       FunctionExpr->getBeginLoc().getLocWithOffset(-FuncLocStartColumn + 1),
  476       FunctionExpr->getBeginLoc());
  793   if (FunctionExpr->getBeginLoc().isMacroID())
  843       diag(Result.Nodes.getNodeAs<CallExpr>(FunctionExprName)->getBeginLoc(),
  926                     FunctionExpr->getBeginLoc().getLocWithOffset(-1)));
  951       diag(Result.Nodes.getNodeAs<CallExpr>(FunctionExprName)->getBeginLoc(),
  997       diag(Result.Nodes.getNodeAs<CallExpr>(FunctionExprName)->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousMemsetUsageCheck.cpp
  119     auto D = diag(Call->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousStringCompareCheck.cpp
  179     diag(Call->getBeginLoc(),
  190     diag(Call->getBeginLoc(),
  199     diag(Call->getBeginLoc(),
  206     diag(Call->getBeginLoc(), "results of function %0 used by operator '%1'")
  211     diag(Call->getBeginLoc(), "function %0 has suspicious implicit cast")
tools/clang/tools/extra/clang-tidy/bugprone/SwappedArgumentsCheck.cpp
   86     diag(Call->getBeginLoc(), "argument with implicit conversion from %0 "
tools/clang/tools/extra/clang-tidy/bugprone/UndefinedMemoryManipulationCheck.cpp
   54     diag(Call->getBeginLoc(), "undefined behavior, destination object type %0 "
   62     diag(Call->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp
   88     diag(Matched->getBeginLoc(),
   91     diag(Matched->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/cert/LimitedRandomnessCheck.cpp
   32   diag(MatchedDecl->getBeginLoc(), "rand() has limited randomness" + msg);
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NoMallocCheck.cpp
   75   diag(Call->getBeginLoc(), "do not manage memory manually; %0")
   76       << Recommendation << SourceRange(Call->getBeginLoc(), Call->getEndLoc());
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.cpp
  226     diag(LegacyConsumer->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/darwin/AvoidSpinlockCheck.cpp
   29   diag(MatchedExpr->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/google/ExplicitMakePairCheck.cpp
   62     diag(Call->getBeginLoc(), "for C++11-compatibility, use pair directly")
   67     diag(Call->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/llvm/PreferIsaOrDynCastInConditionalsCheck.cpp
   77     diag(MatchedDecl->getBeginLoc(),
   92     diag(MatchedDecl->getBeginLoc(), Message)
tools/clang/tools/extra/clang-tidy/modernize/AvoidBindCheck.cpp
  133   auto Diag = diag(MatchedDecl->getBeginLoc(), "prefer a lambda to std::bind");
tools/clang/tools/extra/clang-tidy/modernize/ReplaceRandomShuffleCheck.cpp
   63   if (MatchedCallExpr->getBeginLoc().isMacroID())
   69           diag(MatchedCallExpr->getBeginLoc(),
   77       auto DiagL = diag(MatchedCallExpr->getBeginLoc(),
  100                   MatchedCallExpr->getBeginLoc()),
tools/clang/tools/extra/clang-tidy/modernize/ShrinkToFitCheck.cpp
   61   if (!MemberCall->getBeginLoc().isMacroID()) {
   81   diag(MemberCall->getBeginLoc(), "the shrink_to_fit method should be used "
tools/clang/tools/extra/clang-tidy/modernize/UseUncaughtExceptionsCheck.cpp
   57     BeginLoc = C->getBeginLoc();
   60     BeginLoc = E->getBeginLoc();
tools/clang/tools/extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp
  155   diag(AlgCall->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp
  259   auto Diag = diag(AppendCall->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/performance/MoveConstArgCheck.cpp
   25       CharSourceRange::getCharRange(Call->getBeginLoc(), Arg->getBeginLoc()),
tools/clang/tools/extra/clang-tidy/performance/TypePromotionInMathFnCheck.cpp
  196             Result.Context->getSourceManager().getFileID(Call->getBeginLoc()),
tools/clang/tools/extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp
  203     diag(MemberCall->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/readability/RedundantStringCStrCheck.cpp
  187   diag(Call->getBeginLoc(), "redundant call to %0")
tools/clang/tools/extra/unittests/clang-tidy/NamespaceAliaserTest.cpp
   38       diag(Call->getBeginLoc(), "Fix for testing") << Hint.getValue();
   40     diag(Call->getBeginLoc(), "insert call") << FixItHint::CreateInsertion(
   41         Call->getBeginLoc(),
tools/clang/tools/extra/unittests/clang-tidy/UsingInserterTest.cpp
   41       diag(Call->getBeginLoc(), "Fix for testing") << Hint.getValue();
   43     diag(Call->getBeginLoc(), "insert call")
tools/clang/unittests/Tooling/RecursiveASTVisitorTests/CXXMemberCall.cpp
   20           Call->getBeginLoc());