Home
last modified time | relevance | path

Searched refs:DiagLevel (Results 1 – 25 of 45) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/Tooling/Core/
H A DDiagnostic.cpp49 Diagnostic::Level DiagLevel, StringRef BuildDirectory) in Diagnostic() argument
50 : DiagnosticName(DiagnosticName), DiagLevel(DiagLevel), in Diagnostic()
56 Level DiagLevel, llvm::StringRef BuildDirectory) in Diagnostic() argument
58 DiagLevel(DiagLevel), BuildDirectory(BuildDirectory) {} in Diagnostic()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DFixItRewriter.cpp128 void FixItRewriter::HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, in HandleDiagnostic() argument
131 DiagnosticConsumer::HandleDiagnostic(DiagLevel, Info); in HandleDiagnostic()
134 DiagLevel >= DiagnosticsEngine::Error || in HandleDiagnostic()
135 (DiagLevel == DiagnosticsEngine::Note && !PrevDiagSilenced) || in HandleDiagnostic()
136 (DiagLevel > DiagnosticsEngine::Note && Info.getNumFixItHints())) { in HandleDiagnostic()
137 Client->HandleDiagnostic(DiagLevel, Info); in HandleDiagnostic()
144 if (DiagLevel <= DiagnosticsEngine::Note) in HandleDiagnostic()
147 if (DiagLevel >= DiagnosticsEngine::Error && FixItOpts->FixOnlyWarnings) { in HandleDiagnostic()
182 if (DiagLevel >= DiagnosticsEngine::Error) { in HandleDiagnostic()
/llvm-project-15.0.7/clang/include/clang/Tooling/
H A DDiagnosticsYaml.h66 : DiagLevel(clang::tooling::Diagnostic::Level::Warning) {} in LLVM_YAML_IS_SEQUENCE_VECTOR()
70 DiagLevel(D.DiagLevel), BuildDirectory(D.BuildDirectory) {} in LLVM_YAML_IS_SEQUENCE_VECTOR()
74 DiagLevel, BuildDirectory); in LLVM_YAML_IS_SEQUENCE_VECTOR()
80 clang::tooling::Diagnostic::Level DiagLevel; in LLVM_YAML_IS_SEQUENCE_VECTOR()
90 Io.mapOptional("Level", Keys->DiagLevel); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/llvm-project-15.0.7/clang/include/clang/Frontend/
H A DChainedDiagnosticConsumer.h59 void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, in HandleDiagnostic() argument
62 DiagnosticConsumer::HandleDiagnostic(DiagLevel, Info); in HandleDiagnostic()
64 Primary->HandleDiagnostic(DiagLevel, Info); in HandleDiagnostic()
65 Secondary->HandleDiagnostic(DiagLevel, Info); in HandleDiagnostic()
H A DTextDiagnosticBuffer.h53 void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
H A DLogDiagnosticPrinter.h78 void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/
H A DClangTidyDiagnosticConsumer.cpp155 ClangTidyError::Level DiagLevel, in ClangTidyError() argument
157 : tooling::Diagnostic(CheckName, DiagLevel, BuildDirectory), in ClangTidyError()
212 DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info, in shouldSuppressDiagnostic() argument
304 Error.DiagLevel != ClangTidyError::Error) { in finalizeLastError()
346 DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) { in HandleDiagnostic() argument
364 DiagnosticConsumer::HandleDiagnostic(DiagLevel, Info); in HandleDiagnostic()
366 if (DiagLevel == DiagnosticsEngine::Note) { in HandleDiagnostic()
375 switch (DiagLevel) { in HandleDiagnostic()
393 if (DiagLevel == DiagnosticsEngine::Error || in HandleDiagnostic()
394 DiagLevel == DiagnosticsEngine::Fatal) { in HandleDiagnostic()
[all …]
H A DNoLintDirectiveHandler.cpp221 bool shouldSuppress(DiagnosticsEngine::Level DiagLevel,
244 DiagnosticsEngine::Level DiagLevel, const Diagnostic &Diag, in shouldSuppress() argument
247 if (DiagLevel >= DiagnosticsEngine::Error) in shouldSuppress()
368 Error.DiagLevel = tooling::Diagnostic::Error; in makeNoLintError()
407 DiagnosticsEngine::Level DiagLevel, const Diagnostic &Diag, in shouldSuppress() argument
410 return PImpl->shouldSuppress(DiagLevel, Diag, DiagName, NoLintErrors, AllowIO, in shouldSuppress()
H A DClangTidyDiagnosticConsumer.h37 ClangTidyError(StringRef CheckName, Level DiagLevel, StringRef BuildDirectory,
115 shouldSuppressDiagnostic(DiagnosticsEngine::Level DiagLevel,
266 void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
H A DNoLintDirectiveHandler.h38 bool shouldSuppress(DiagnosticsEngine::Level DiagLevel,
/llvm-project-15.0.7/clang/lib/Basic/
H A DDiagnosticIDs.cpp759 DiagnosticIDs::Level DiagLevel in ProcessDiag() local
764 if (DiagLevel >= DiagnosticIDs::Error) { in ProcessDiag()
773 if (DiagLevel != DiagnosticIDs::Note) { in ProcessDiag()
781 Diag.LastDiagLevel = DiagLevel; in ProcessDiag()
787 if (DiagLevel >= DiagnosticIDs::Error && in ProcessDiag()
797 if (DiagLevel == DiagnosticIDs::Ignored || in ProcessDiag()
798 (DiagLevel == DiagnosticIDs::Note && in ProcessDiag()
802 if (DiagLevel >= DiagnosticIDs::Error) { in ProcessDiag()
818 DiagLevel == DiagnosticIDs::Error) { in ProcessDiag()
829 EmitDiag(Diag, DiagLevel); in ProcessDiag()
[all …]
H A DDiagnostic.cpp519 Level DiagLevel = storedDiag.getLevel(); in Report() local
521 Client->HandleDiagnostic(DiagLevel, Info); in Report()
523 if (DiagLevel == DiagnosticsEngine::Warning) in Report()
538 DiagnosticIDs::Level DiagLevel in EmitCurrentDiagnostic() local
541 Emitted = (DiagLevel != DiagnosticIDs::Ignored); in EmitCurrentDiagnostic()
544 Diags->EmitDiag(*this, DiagLevel); in EmitCurrentDiagnostic()
564 void DiagnosticConsumer::HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, in HandleDiagnostic() argument
569 if (DiagLevel == DiagnosticsEngine::Warning) in HandleDiagnostic()
571 else if (DiagLevel >= DiagnosticsEngine::Error) in HandleDiagnostic()
1202 DiagnosticsEngine::Level DiagLevel, in HandleDiagnostic() argument
[all …]
/llvm-project-15.0.7/clang/include/clang/Tooling/Core/
H A DDiagnostic.h77 Diagnostic(llvm::StringRef DiagnosticName, Level DiagLevel,
81 const SmallVector<DiagnosticMessage, 1> &Notes, Level DiagLevel,
94 Level DiagLevel; member
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DDiagnostics.cpp660 D.Severity = DiagLevel; in fillNonLocationData()
674 IgnoreDiagnostics::log(DiagLevel, Info); in HandleDiagnostic()
678 DiagnosticConsumer::HandleDiagnostic(DiagLevel, Info); in HandleDiagnostic()
687 IgnoreDiagnostics::log(DiagLevel, Info); in HandleDiagnostic()
697 fillNonLocationData(DiagLevel, Info, *LastDiag); in HandleDiagnostic()
706 IgnoreDiagnostics::log(DiagLevel, Info); in HandleDiagnostic()
713 fillNonLocationData(DiagLevel, Info, D); in HandleDiagnostic()
791 if (!isNote(DiagLevel)) { in HandleDiagnostic()
798 DiagLevel = Adjuster(DiagLevel, Info); in HandleDiagnostic()
822 IgnoreDiagnostics::log(DiagLevel, Info); in HandleDiagnostic()
[all …]
H A DCompiler.h33 static void log(DiagnosticsEngine::Level DiagLevel,
36 void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
H A DCompiler.cpp20 void IgnoreDiagnostics::log(DiagnosticsEngine::Level DiagLevel, in log() argument
38 void IgnoreDiagnostics::HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, in HandleDiagnostic() argument
40 IgnoreDiagnostics::log(DiagLevel, Info); in HandleDiagnostic()
H A DParsedAST.cpp505 ASTDiags.setLevelAdjuster([&](DiagnosticsEngine::Level DiagLevel, in build()
514 DiagLevel = It->second; in build()
533 DiagLevel, Info, TidySuppressedErrors, in build()
542 if (DiagLevel == DiagnosticsEngine::Warning && in build()
548 return DiagLevel; in build()
H A DIncludeFixer.h42 std::vector<Fix> fix(DiagnosticsEngine::Level DiagLevel,
/llvm-project-15.0.7/clang/tools/diagtool/
H A DShowEnabledWarnings.cpp126 DiagnosticsEngine::Level DiagLevel = in run() local
128 if (DiagLevel == DiagnosticsEngine::Ignored) in run()
132 Active.push_back(PrettyDiag(DR.getName(), WarningOpt, DiagLevel)); in run()
/llvm-project-15.0.7/clang/lib/Testing/
H A DTestAST.cpp38 void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, in HandleDiagnostic() argument
40 Out.emplace_back(DiagLevel, Info); in HandleDiagnostic()
41 if (ReportErrors && DiagLevel >= DiagnosticsEngine::Error) { in HandleDiagnostic()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DSerializedDiagnosticPrinter.cpp156 void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
206 unsigned getEmitDiagnosticFlag(DiagnosticsEngine::Level DiagLevel,
540 unsigned SDiagsWriter::getEmitDiagnosticFlag(DiagnosticsEngine::Level DiagLevel, in getEmitDiagnosticFlag() argument
542 if (DiagLevel == DiagnosticsEngine::Note) in getEmitDiagnosticFlag()
571 void SDiagsWriter::HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, in HandleDiagnostic() argument
587 if (DiagLevel != DiagnosticsEngine::Note) { in HandleDiagnostic()
606 if (DiagLevel == DiagnosticsEngine::Note) in HandleDiagnostic()
609 EmitDiagnosticMessage(FullSourceLoc(), PresumedLoc(), DiagLevel, in HandleDiagnostic()
612 if (DiagLevel == DiagnosticsEngine::Note) in HandleDiagnostic()
622 FullSourceLoc(Info.getLocation(), Info.getSourceManager()), DiagLevel, in HandleDiagnostic()
/llvm-project-15.0.7/compiler-rt/lib/ubsan/
H A Dubsan_diag.h96 enum DiagLevel { enum
139 DiagLevel Level;
208 Diag(Location Loc, DiagLevel Level, ErrorType ET, const char *Message) in Diag()
/llvm-project-15.0.7/clang/lib/Format/
H A DTokenAnalyzer.cpp42 void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, in HandleDiagnostic() argument
44 if (DiagLevel == DiagnosticsEngine::Fatal) { in HandleDiagnostic()
/llvm-project-15.0.7/clang/lib/Tooling/
H A DCompilationDatabase.cpp186 void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, in HandleDiagnostic() argument
191 } else if (DiagLevel >= DiagnosticsEngine::Error) { in HandleDiagnostic()
194 Other.HandleDiagnostic(DiagLevel, Info); in HandleDiagnostic()
/llvm-project-15.0.7/clang/include/clang/Rewrite/Frontend/
H A DFixItRewriter.h125 void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,

12