/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | SuspiciousIncludeCheck.cpp | 81 SourceLocation DiagLoc = FilenameRange.getBegin().getLocWithOffset(1); in InclusionDirective() local 88 Check.diag(DiagLoc, "suspicious #%0 of file with '%1' extension") in InclusionDirective() 98 PP->LookupFile(DiagLoc, GuessedFileName, IsAngled, nullptr, nullptr, in InclusionDirective() 101 Check.diag(DiagLoc, "did you mean to include '%0'?", DiagnosticIDs::Note) in InclusionDirective()
|
/external/clang/lib/Lex/ |
D | Pragma.cpp | 973 SourceLocation DiagLoc = DiagToken.getLocation(); in HandlePragma() local 984 if (!PP.getDiagnostics().popMappings(DiagLoc)) in HandlePragma() 987 Callbacks->PragmaDiagnosticPop(DiagLoc, Namespace); in HandlePragma() 990 PP.getDiagnostics().pushMappings(DiagLoc); in HandlePragma() 992 Callbacks->PragmaDiagnosticPush(DiagLoc, Namespace); in HandlePragma() 1035 PP.getDiagnostics().setSeverityForAll(Flavor, SV, DiagLoc); in HandlePragma() 1038 DiagLoc); in HandlePragma() 1043 Callbacks->PragmaDiagnostic(DiagLoc, Namespace, SV, WarningName); in HandlePragma() 1059 SourceLocation DiagLoc = Tok.getLocation(); in HandlePragma() local 1087 Callbacks->PragmaWarningPush(DiagLoc, Level); in HandlePragma() [all …]
|
/external/llvm-project/clang/lib/Lex/ |
D | Pragma.cpp | 1180 SourceLocation DiagLoc = DiagToken.getLocation(); in HandlePragma() local 1191 if (!PP.getDiagnostics().popMappings(DiagLoc)) in HandlePragma() 1194 Callbacks->PragmaDiagnosticPop(DiagLoc, Namespace); in HandlePragma() 1197 PP.getDiagnostics().pushMappings(DiagLoc); in HandlePragma() 1199 Callbacks->PragmaDiagnosticPush(DiagLoc, Namespace); in HandlePragma() 1242 PP.getDiagnostics().setSeverityForAll(Flavor, SV, DiagLoc); in HandlePragma() 1245 DiagLoc); in HandlePragma() 1250 Callbacks->PragmaDiagnostic(DiagLoc, Namespace, SV, WarningName); in HandlePragma() 1275 SourceLocation DiagLoc = Tok.getLocation(); in HandlePragma() local 1303 Callbacks->PragmaWarningPush(DiagLoc, Level); in HandlePragma() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | Diagnostics.cpp | 127 SourceLocation DiagLoc, Range &R) { in getMainFileRange() argument 173 for (auto IncludeLocation = GetIncludeLoc(SM.getExpansionLoc(DiagLoc)); in getMainFileRange() 191 bool tryMoveToMainFile(Diag &D, FullSourceLoc DiagLoc) { in tryMoveToMainFile() argument 192 const SourceManager &SM = DiagLoc.getManager(); in tryMoveToMainFile() 193 DiagLoc = DiagLoc.getExpansionLoc(); in tryMoveToMainFile() 195 const char *Prefix = getMainFileRange(D, SM, DiagLoc, R); in tryMoveToMainFile() 200 const auto *FE = SM.getFileEntryForID(SM.getFileID(DiagLoc)); in tryMoveToMainFile()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaConcept.cpp | 410 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 415 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 429 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 434 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 474 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 478 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 496 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 501 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement()
|
D | JumpDiagnostics.cpp | 87 void CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc, 896 void JumpScopeChecker::CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc, in CheckJump() argument 948 S.Diag(DiagLoc, JumpDiagWarning); in CheckJump() 954 S.Diag(DiagLoc, JumpDiagError); in CheckJump() 960 S.Diag(DiagLoc, JumpDiagCXX98Compat); in CheckJump()
|
D | SemaInit.cpp | 7486 SourceLocation DiagLoc = DiagRange.getBegin(); in checkInitializerLifetime() local 7527 if (IsGslPtrInitWithGslTempOwner && DiagLoc.isValid()) { in checkInitializerLifetime() 7528 Diag(DiagLoc, diag::warn_dangling_lifetime_pointer) << DiagRange; in checkInitializerLifetime() 7548 Diag(DiagLoc, diag::warn_unsupported_lifetime_extension) in checkInitializerLifetime() 7559 Diag(DiagLoc, diag::warn_dangling_variable) in checkInitializerLifetime() 7576 Diag(DiagLoc, diag::warn_dangling_lifetime_pointer_member) in checkInitializerLifetime() 7584 Diag(DiagLoc, shouldLifetimeExtendThroughPath(Path) != in checkInitializerLifetime() 7630 Diag(DiagLoc, IsPointer ? diag::warn_init_ptr_member_to_parameter_addr in checkInitializerLifetime() 7644 Diag(DiagLoc, diag::warn_dangling_lifetime_pointer) << DiagRange; in checkInitializerLifetime() 7646 Diag(DiagLoc, RK == RK_ReferenceBinding in checkInitializerLifetime() [all …]
|
D | Sema.cpp | 2480 bool Sema::checkOpenCLDisabledTypeOrDecl(T D, DiagLocT DiagLoc, in checkOpenCLDisabledTypeOrDecl() argument 2490 Diag(DiagLoc, diag::err_opencl_requires_extension) << Selector << DiagInfo in checkOpenCLDisabledTypeOrDecl()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | NamespaceCommentCheck.cpp | 193 SourceLocation DiagLoc = in check() local 198 diag(DiagLoc, Message) << NamespaceNameForDiag in check()
|
/external/llvm-project/clang/tools/libclang/ |
D | CXLoadedDiagnostic.h | 81 Location DiagLoc; variable
|
D | CXLoadedDiagnostic.cpp | 102 return makeLocation(&DiagLoc); in getLocation() 380 if (std::error_code EC = readLocation(Location, D.DiagLoc)) in visitDiagnosticRecord()
|
/external/clang/tools/libclang/ |
D | CXLoadedDiagnostic.h | 82 Location DiagLoc; variable
|
D | CXLoadedDiagnostic.cpp | 105 return makeLocation(&DiagLoc); in getLocation() 383 if (std::error_code EC = readLocation(Location, D.DiagLoc)) in visitDiagnosticRecord()
|
/external/clang/lib/Sema/ |
D | JumpDiagnostics.cpp | 84 void CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc, 834 void JumpScopeChecker::CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc, in CheckJump() argument 881 S.Diag(DiagLoc, JumpDiagWarning); in CheckJump() 887 S.Diag(DiagLoc, JumpDiagError); in CheckJump() 893 S.Diag(DiagLoc, JumpDiagCXX98Compat); in CheckJump()
|
/external/clang/lib/AST/ |
D | CommentSema.cpp | 569 SourceLocation DiagLoc; in checkBlockCommandEmptyParagraph() local 571 DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd(); in checkBlockCommandEmptyParagraph() 572 if (!DiagLoc.isValid()) in checkBlockCommandEmptyParagraph() 573 DiagLoc = Command->getCommandNameRange(Traits).getEnd(); in checkBlockCommandEmptyParagraph() 574 Diag(DiagLoc, diag::warn_doc_block_command_empty_paragraph) in checkBlockCommandEmptyParagraph()
|
D | ExprConstant.cpp | 1503 static bool CheckConstantExpression(EvalInfo &Info, SourceLocation DiagLoc, in CheckConstantExpression() argument 1506 Info.FFDiag(DiagLoc, diag::note_constexpr_uninitialized) in CheckConstantExpression() 1522 if (!CheckConstantExpression(Info, DiagLoc, EltTy, in CheckConstantExpression() 1528 return CheckConstantExpression(Info, DiagLoc, EltTy, in CheckConstantExpression() 1532 return CheckConstantExpression(Info, DiagLoc, in CheckConstantExpression() 1542 if (!CheckConstantExpression(Info, DiagLoc, I->getType(), in CheckConstantExpression() 1548 if (!CheckConstantExpression(Info, DiagLoc, I->getType(), in CheckConstantExpression() 1557 return CheckLValueConstantExpression(Info, DiagLoc, Type, LVal); in CheckConstantExpression()
|
/external/llvm-project/clang/lib/AST/ |
D | CommentSema.cpp | 571 SourceLocation DiagLoc; in checkBlockCommandEmptyParagraph() local 573 DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd(); in checkBlockCommandEmptyParagraph() 574 if (!DiagLoc.isValid()) in checkBlockCommandEmptyParagraph() 575 DiagLoc = Command->getCommandNameRange(Traits).getEnd(); in checkBlockCommandEmptyParagraph() 576 Diag(DiagLoc, diag::warn_doc_block_command_empty_paragraph) in checkBlockCommandEmptyParagraph()
|
D | ExprConstant.cpp | 2106 EvalInfo &Info, SourceLocation DiagLoc, 2326 EvalInfo &Info, SourceLocation DiagLoc, in CheckEvaluationResult() argument 2332 Info.FFDiag(DiagLoc, diag::note_constexpr_uninitialized) in CheckEvaluationResult() 2350 if (!CheckEvaluationResult(CERK, Info, DiagLoc, EltTy, in CheckEvaluationResult() 2357 return CheckEvaluationResult(CERK, Info, DiagLoc, EltTy, in CheckEvaluationResult() 2363 CERK, Info, DiagLoc, Value.getUnionField()->getType(), in CheckEvaluationResult() 2372 if (!CheckEvaluationResult(CERK, Info, DiagLoc, BS.getType(), in CheckEvaluationResult() 2383 if (!CheckEvaluationResult(CERK, Info, DiagLoc, I->getType(), in CheckEvaluationResult() 2394 return CheckLValueConstantExpression(Info, DiagLoc, Type, LVal, Kind, in CheckEvaluationResult() 2400 return CheckMemberPointerConstantExpression(Info, DiagLoc, Type, Value, Kind); in CheckEvaluationResult() [all …]
|
/external/llvm-project/clang/lib/Parse/ |
D | ParseExprCXX.cpp | 1095 SourceLocation DiagLoc; in ParseLambdaIntroducer() local 1098 DiagLoc = Loc; in ParseLambdaIntroducer() 1102 assert(DiagLoc.isValid() && "no location for diagnostic"); in ParseLambdaIntroducer() 1106 auto &&D = Diag(DiagLoc, DiagID); in ParseLambdaIntroducer() 2629 SourceLocation DiagLoc; in ParseUnqualifiedIdOperator() local 2641 DiagLoc = Tok.getLocation(); in ParseUnqualifiedIdOperator() 2677 DiagLoc = TokLocs.front(); in ParseUnqualifiedIdOperator() 2687 Diag(DiagLoc, DiagId) << FixItHint::CreateReplacement( in ParseUnqualifiedIdOperator()
|
/external/llvm-project/clang/include/clang/AST/ |
D | ExprConcepts.h | 166 SourceLocation DiagLoc; member
|
/external/clang/lib/Parse/ |
D | ParseExprCXX.cpp | 2332 SourceLocation DiagLoc; in ParseUnqualifiedIdOperator() local 2344 DiagLoc = Tok.getLocation(); in ParseUnqualifiedIdOperator() 2380 DiagLoc = TokLocs.front(); in ParseUnqualifiedIdOperator() 2390 Diag(DiagLoc, DiagId) << FixItHint::CreateReplacement( in ParseUnqualifiedIdOperator()
|
/external/llvm/lib/MC/MCParser/ |
D | AsmParser.cpp | 1978 SMLoc DiagLoc = Diag.getLoc(); in DiagHandler() local 1979 unsigned DiagBuf = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 1985 unsigned DiagCurBuffer = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2009 int DiagLocLineNo = DiagSrcMgr.FindLineNumber(DiagLoc, DiagBuf); in DiagHandler()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/ |
D | AsmParser.cpp | 2332 SMLoc DiagLoc = Diag.getLoc(); in DiagHandler() local 2333 unsigned DiagBuf = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2339 unsigned DiagCurBuffer = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2363 int DiagLocLineNo = DiagSrcMgr.FindLineNumber(DiagLoc, DiagBuf); in DiagHandler()
|
/external/llvm-project/llvm/lib/MC/MCParser/ |
D | AsmParser.cpp | 2349 SMLoc DiagLoc = Diag.getLoc(); in DiagHandler() local 2350 unsigned DiagBuf = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2356 unsigned DiagCurBuffer = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2380 int DiagLocLineNo = DiagSrcMgr.FindLineNumber(DiagLoc, DiagBuf); in DiagHandler()
|
/external/clang/tools/c-index-test/ |
D | c-index-test.c | 4146 CXSourceLocation DiagLoc; in printDiagnosticSet() local 4154 DiagLoc = clang_getDiagnosticLocation(D); in printDiagnosticSet() 4155 clang_getExpansionLocation(DiagLoc, &File, &line, &column, &offset); in printDiagnosticSet()
|