Home
last modified time | relevance | path

Searched refs:DiagLoc (Results 1 – 25 of 40) sorted by relevance

12

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSuspiciousIncludeCheck.cpp81 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/
DPragma.cpp973 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/
DPragma.cpp1180 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/
DDiagnostics.cpp127 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/
DSemaConcept.cpp410 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()
DJumpDiagnostics.cpp87 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()
DSemaInit.cpp7486 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 …]
DSema.cpp2480 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/
DNamespaceCommentCheck.cpp193 SourceLocation DiagLoc = in check() local
198 diag(DiagLoc, Message) << NamespaceNameForDiag in check()
/external/llvm-project/clang/tools/libclang/
DCXLoadedDiagnostic.h81 Location DiagLoc; variable
DCXLoadedDiagnostic.cpp102 return makeLocation(&DiagLoc); in getLocation()
380 if (std::error_code EC = readLocation(Location, D.DiagLoc)) in visitDiagnosticRecord()
/external/clang/tools/libclang/
DCXLoadedDiagnostic.h82 Location DiagLoc; variable
DCXLoadedDiagnostic.cpp105 return makeLocation(&DiagLoc); in getLocation()
383 if (std::error_code EC = readLocation(Location, D.DiagLoc)) in visitDiagnosticRecord()
/external/clang/lib/Sema/
DJumpDiagnostics.cpp84 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/
DCommentSema.cpp569 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()
DExprConstant.cpp1503 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/
DCommentSema.cpp571 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()
DExprConstant.cpp2106 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/
DParseExprCXX.cpp1095 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/
DExprConcepts.h166 SourceLocation DiagLoc; member
/external/clang/lib/Parse/
DParseExprCXX.cpp2332 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/
DAsmParser.cpp1978 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/
DAsmParser.cpp2332 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/
DAsmParser.cpp2349 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/
Dc-index-test.c4146 CXSourceLocation DiagLoc; in printDiagnosticSet() local
4154 DiagLoc = clang_getDiagnosticLocation(D); in printDiagnosticSet()
4155 clang_getExpansionLocation(DiagLoc, &File, &line, &column, &offset); in printDiagnosticSet()

12