/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/ |
H A D | Diagnostics.cpp | 1 //===--- Diagnostics.cpp - Helper class for error diagnostics ---*- C++ -*-===// 9 #include "clang/ASTMatchers/Dynamic/Diagnostics.h" 14 Diagnostics::ArgStream Diagnostics::pushContextFrame(ContextType Type, in pushContextFrame() 23 Diagnostics::Context::Context(ConstructMatcherEnum, Diagnostics *Error, in Context() 30 Diagnostics::Context::Context(MatcherArgEnum, Diagnostics *Error, in Context() 39 Diagnostics::Context::~Context() { Error->ContextStack.pop_back(); } in ~Context() 41 Diagnostics::OverloadContext::OverloadContext(Diagnostics *Error) in OverloadContext() 44 Diagnostics::OverloadContext::~OverloadContext() { in ~OverloadContext() 47 Diagnostics::ErrorContent &Dest = Error->Errors[BeginIndex]; in ~OverloadContext() 55 void Diagnostics::OverloadContext::revertErrors() { in revertErrors() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Utility/ |
H A D | Diagnostics.cpp | 1 //===-- Diagnostics.cpp ---------------------------------------------------===// 9 #include "lldb/Utility/Diagnostics.h" 23 void Diagnostics::Initialize() { in Initialize() 28 void Diagnostics::Terminate() { in Terminate() 33 bool Diagnostics::Enabled() { return InstanceImpl().operator bool(); } in Enabled() 35 std::optional<Diagnostics> &Diagnostics::InstanceImpl() { in InstanceImpl() 36 static std::optional<Diagnostics> g_diagnostics; in InstanceImpl() 40 Diagnostics &Diagnostics 42 Diagnostics::Diagnostics() : m_log_handler(g_num_log_messages) {} Diagnostics() function in Diagnostics [all...] |
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | DelayedDiagnostic.h | 1 //===- DelayedDiagnostic.h - Delayed declarator diagnostics -----*- C++ -*-===// 13 /// DelayedDiangostic is used to record diagnostics that are being 15 /// diagnostics -- notably deprecation and access control -- are suppressed 264 /// A collection of diagnostics which were delayed. 267 SmallVector<DelayedDiagnostic, 4> Diagnostics; variable 276 : Parent(Other.Parent), Diagnostics(std::move(Other.Diagnostics)) { in DelayedDiagnosticPool() 277 Other.Diagnostics.clear(); in DelayedDiagnosticPool() 282 Diagnostics = std::move(Other.Diagnostics); 283 Other.Diagnostics.clear(); 289 i = Diagnostics.begin(), e = Diagnostics.end(); i != e; ++i) in ~DelayedDiagnosticPool() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectDiagnostics.cpp | 17 #include "lldb/Utility/Diagnostics.h" 29 : CommandObjectParsed(interpreter, "diagnostics dump", in CommandObjectDiagnosticsDump() 30 "Dump diagnostics to disk", nullptr) {} in CommandObjectDiagnosticsDump() 77 return Diagnostics::CreateUniqueDirectory(); in GetDirectory() 88 llvm::Error error = Diagnostics::Instance().Create(*directory); in DoExecute() 90 result.AppendErrorWithFormat("failed to write diagnostics to %s", in DoExecute() 96 result.GetOutputStream() << "diagnostics written to " << *directory << '\n'; in DoExecute() 107 : CommandObjectMultiword(interpreter, "diagnostics", in CommandObjectDiagnostics() 108 "Commands controlling LLDB diagnostics.", in CommandObjectDiagnostics() 109 "diagnostics <subcomman in CommandObjectDiagnostics() [all...] |
/freebsd/contrib/llvm-project/clang/include/clang-c/ |
H A D | CXDiagnostic.h | 1 /*===-- clang-c/CXDiagnostic.h - C Index Diagnostics --------------*- C -*-===*\ 10 |* This header provides the interface to C Index diagnostics. *| 77 * Determine the number of diagnostics in a CXDiagnosticSet. 105 * deserialize diagnostics. 110 * Indicates that the file containing the serialized diagnostics 116 * Indicates that the serialized diagnostics file is invalid or 123 * Deserialize a set of diagnostics from a Clang diagnostics bitcode 128 * deserializing the diagnostics. 133 * diagnostics should be released using clang_disposeDiagnosticSet(). 139 * Release a CXDiagnosticSet and all of its contained diagnostics. [all …]
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/ |
H A D | Diagnostics.h | 1 //===-- Diagnostics.h -------------------------------------------*- C++ -*-===// 25 /// Diagnostics are a collection of files to help investigate bugs and 28 class Diagnostics { 30 Diagnostics(); 31 ~Diagnostics(); 33 /// Gather diagnostics in the given directory. 36 /// Gather diagnostics and print a message to the given output stream. 50 static Diagnostics &Instance(); 60 static std::optional<Diagnostics> &InstanceImpl();
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | DiagnosticOptions.def | 50 DIAGOPT(ShowLine, 1, 1) /// Show line number on diagnostics. 51 DIAGOPT(ShowColumn, 1, 1) /// Show column number on diagnostics. 55 DIAGOPT(ShowCarets, 1, 1) /// Show carets in diagnostics. 59 DIAGOPT(ShowPresumedLoc, 1, 0) /// Show presumed location for diagnostics. 61 /// diagnostics. 66 ENUM_DIAGOPT(Format, TextDiagnosticFormat, 2, Clang) /// Format for diagnostics: 68 DIAGOPT(ShowColors, 1, 0) /// Show diagnostics with ANSI color sequences. 72 DIAGOPT(VerifyDiagnostics, 1, 0) /// Check that diagnostics match the expected 73 /// diagnostics, indicated by markers in the 76 DiagnosticLevelMask::None) /// Ignore unexpected diagnostics of [all …]
|
H A D | Diagnostic.td | 9 // This file defines the TableGen core definitions for the diagnostics 14 // See the Internals Manual, section The Diagnostics Subsystem for an overview. 41 // Textual substitutions which may be performed on the text of diagnostics 45 // diagnostics 52 // diagnostics to specify a category. 77 // All diagnostics emitted by the compiler are an indirect subclass of this. 158 // Definitions for Diagnostics.
|
H A D | DiagnosticIDs.h | 47 // Start position for diagnostics. 67 /// All of the diagnostics that can be emitted by the frontend. 70 // Get typedefs for common diagnostics. 84 /// map ERRORs to Error or Fatal (stop emitting diagnostics after this one). 94 /// Flavors of diagnostics we can emit. Used to filter for a particular 178 /// Can be used and shared by multiple Diagnostics for multiple translation units. 215 /// This only works on builtin diagnostics, not custom ones, and is not 329 /// \returns A list of all diagnostics flags as they would be written in a 336 /// \param[out] Diags - On return, the diagnostics in the group.
|
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/Dynamic/ |
H A D | Diagnostics.h | 1 //===--- Diagnostics.h - Helper class for error diagnostics -----*- C++ -*-===// 10 /// Diagnostics class to manage error messages. 50 class Diagnostics { 110 Context(ConstructMatcherEnum, Diagnostics *Error, StringRef MatcherName, 114 Context(MatcherArgEnum, Diagnostics *Error, StringRef MatcherName, 119 Diagnostics *const Error; 128 OverloadContext(Diagnostics* Error); 135 Diagnostics *const Error; 139 /// Add an error to the diagnostics.
|
H A D | Parser.h | 52 class Diagnostics; variable 92 Diagnostics *Error) = 0; 109 ArrayRef<ParserValue> Args, Diagnostics *Error) const = 0; 148 Diagnostics *Error) override; 160 Diagnostics *Error) const override; 185 const NamedValueMap *NamedValues, Diagnostics *Error); 187 parseMatcherExpression(StringRef &MatcherCode, Sema *S, Diagnostics *Error) { in parseMatcherExpression() 191 parseMatcherExpression(StringRef &MatcherCode, Diagnostics *Error) { in parseMatcherExpression() 209 VariantValue *Value, Diagnostics *Error); 211 Diagnostics *Error) { in parseExpression() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Testing/ |
H A D | TestAST.h | 59 /// By default, error diagnostics during parsing are reported as gtest errors. 61 /// In either case, all diagnostics appear in TestAST::diagnostics(). 94 /// Returns diagnostics emitted during parsing. 96 llvm::ArrayRef<StoredDiagnostic> diagnostics() { return Diagnostics; } in diagnostics() function 102 std::vector<StoredDiagnostic> Diagnostics; variable
|
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
H A D | CompilerInstance.h | 83 /// The diagnostics engine instance. 84 IntrusiveRefCntPtr<DiagnosticsEngine> Diagnostics; variable 226 /// - The diagnostics engine should have already been created by the client. 361 /// @name Diagnostics Engine 364 bool hasDiagnostics() const { return Diagnostics != nullptr; } in hasDiagnostics() 366 /// Get the current diagnostics engine. 368 assert(Diagnostics && "Compiler instance has no diagnostics!"); in getDiagnostics() 369 return *Diagnostics; in getDiagnostics() 373 assert(Diagnostics && "Compiler instance has no diagnostics!"); in getDiagnosticsPtr() 374 return Diagnostics; in getDiagnosticsPtr() [all …]
|
H A D | SerializedDiagnosticReader.h | 1 //===- SerializedDiagnosticReader.h - Reads diagnostics ---------*- C++ -*-===// 45 /// A location that is represented in the serialized diagnostics. 56 /// A base class that handles reading serialized diagnostics from a file. 59 /// the various constructs that are found in serialized diagnostics. 65 /// Read the diagnostics in \c File 124 /// Visit the version of the set of diagnostics.
|
H A D | SerializedDiagnosticPrinter.h | 1 //===--- SerializedDiagnosticPrinter.h - Diagnostics serializer -*- C++ -*-===// 26 /// Returns a DiagnosticConsumer that serializes diagnostics to 30 /// transfer of diagnostics to the enclosing build system (e.g., an IDE). 31 /// This allows wrapper tools for Clang to get diagnostics from Clang
|
H A D | ASTUnit.h | 85 /// \brief Enumerates the available kinds for capturing diagnostics. 110 IntrusiveRefCntPtr<DiagnosticsEngine> Diagnostics; variable 151 /// Whether to capture any diagnostics produced. 186 /// The set of diagnostics produced when creating the preamble. 189 /// The set of diagnostics produced when creating this 193 /// The set of diagnostics produced when failing to parse, e.g. due 197 /// The number of stored diagnostics that come from the driver 200 /// Diagnostics that come from the driver are retained from one parse to 432 const DiagnosticsEngine &getDiagnostics() const { return *Diagnostics; } in getDiagnostics() 433 DiagnosticsEngine &getDiagnostics() { return *Diagnostics; } in getDiagnostics() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Expression/ |
H A D | UtilityFunction.cpp | 90 DiagnosticManager diagnostics; in MakeFunctionCaller() local 93 m_caller_up->CompileFunction(thread_to_use_sp, diagnostics); in MakeFunctionCaller() 97 m_function_name.c_str(), diagnostics.GetString().c_str()); in MakeFunctionCaller() 102 diagnostics.Clear(); in MakeFunctionCaller() 105 if (!m_caller_up->WriteFunctionWrapper(exe_ctx, diagnostics)) { in MakeFunctionCaller() 108 m_function_name.c_str(), diagnostics.GetString().c_str()); in MakeFunctionCaller()
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/ |
H A D | Tooling.cpp | 78 newDriver(DiagnosticsEngine *Diagnostics, const char *BinaryName, in newDriver() argument 82 *Diagnostics, "clang LLVM compiler", std::move(VFS)); in newDriver() 133 getCC1Arguments(DiagnosticsEngine *Diagnostics, in getCC1Arguments() argument 162 Diagnostics->Report(diag::err_fe_expected_compiler_job) in getCC1Arguments() 171 CompilerInvocation *newInvocation(DiagnosticsEngine *Diagnostics, in newInvocation() argument 176 CompilerInvocation::CreateFromArgs(*Invocation, CC1Args, *Diagnostics, in newInvocation() 388 IntrusiveRefCntPtr<DiagnosticsEngine> Diagnostics = in run() local 391 // Although `Diagnostics` are used only for command-line parsing, the custom in run() 393 SourceManager SrcMgr(*Diagnostics, *Files); in run() 394 Diagnostics->setSourceManager(&SrcMgr); in run() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Testing/ |
H A D | TestAST.cpp | 25 // Captures diagnostics into a vector, optionally reporting errors to gtest. 85 // Extra error conditions are reported through diagnostics, set that up first. in TestAST() 87 Clang->createDiagnostics(new StoreDiagnostics(Diagnostics, !ErrorOK)); in TestAST() 137 // We're done gathering diagnostics, detach the consumer so we can destroy it. in TestAST() 154 Diagnostics.clear(); in clear() 161 Diagnostics = std::move(M.Diagnostics); in operator =()
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | SerializedDiagnosticReader.cpp | 1 //===- SerializedDiagnosticReader.cpp - Reads diagnostics -----------------===// 29 // Open the diagnostics file. in readDiagnostics() 336 return "Failed to open diagnostics file"; in message() 338 return "Invalid diagnostics signature"; in message() 340 return "Parse error reading diagnostics"; in message() 342 return "Malformed block at top-level of diagnostics"; in message() 354 return "No version provided in diagnostics"; in message() 356 return "Unsupported diagnostics version"; in message() 358 return "Bitcode constructs that are not supported in diagnostics appear"; in message()
|
H A D | SerializedDiagnosticPrinter.cpp | 1 //===--- SerializedDiagnosticPrinter.cpp - Serializer for diagnostics -----===// 164 /// Build a DiagnosticsEngine to emit diagnostics about the diagnostics 167 /// Remove old copies of the serialized diagnostics. This is necessary 168 /// so that we can detect when subprocesses write diagnostics that we should 172 /// Emit the preamble for the serialized diagnostics. 235 /// Whether this instance should aggregate diagnostics that are 255 /// The BitStreamWriter for the serialized diagnostics. 258 /// The name of the diagnostics file. 287 /// Engine for emitting diagnostics about the diagnostics. 400 /// Emits the preamble of the diagnostics file. [all …]
|
H A D | SARIFDiagnosticPrinter.cpp | 65 // Use a dedicated, simpler path for diagnostics without a valid location. in HandleDiagnostic() 67 // diagnostics in a context that lacks language options, a source manager, or in HandleDiagnostic() 68 // other infrastructure necessary when emitting more rich diagnostics. in HandleDiagnostic() 70 // FIXME: Enable diagnostics without a source manager in HandleDiagnostic()
|
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Core/ |
H A D | Diagnostic.h | 1 //===--- Diagnostic.h - Framework for clang diagnostics tools --*- C++ -*-===// 10 // Structures supporting diagnostics and refactorings that span multiple 11 // translation units. Indicate diagnostics reports and replacements 106 /// Collection of Diagnostics generated from a single translation unit. 110 std::vector<Diagnostic> Diagnostics; member
|
/freebsd/contrib/llvm-project/clang/include/clang/Rewrite/Frontend/ |
H A D | FixItRewriter.h | 10 // suggested by code modification hints attached to diagnostics. It 11 // then forwards any diagnostics to the adapted diagnostic client. 63 /// The diagnostics machinery. 118 /// returns true) indicates whether the diagnostics handled by this 119 /// DiagnosticConsumer should be included in the number of diagnostics
|
/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | DiagnosticIDs.cpp | 165 "diagnostics, it may need to be made larger in " \ 229 // 1. Add the number of diagnostics in each category preceding the in GetDiagInfo() 424 /// This only works on builtin diagnostics, not custom ones, and is not legal to 492 // Handle custom diagnostics, which cannot be mapped. in getDiagnosticLevel() 514 // Specific non-error diagnostics may be mapped to various levels from ignored in getDiagnosticSeverity() 526 // Upgrade ignored diagnostics if -Weverything is enabled. in getDiagnosticSeverity() 531 // Ignore -pedantic diagnostics inside __extension__ blocks. in getDiagnosticSeverity() 532 // (The diagnostics controlled by -pedantic are the extension diagnostics in getDiagnosticSeverity() 539 // For extension diagnostics that haven't been explicitly mapped, check if we in getDiagnosticSeverity() 578 // Custom diagnostics always are emitted in system headers. in getDiagnosticSeverity() [all …]
|