Home
last modified time | relevance | path

Searched full:diagnostics (Results 1 – 25 of 919) sorted by relevance

12345678910>>...37

/freebsd-src/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DDiagnostics.cpp1 //===--- 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 …]
H A DParser.cpp16 #include "clang/ASTMatchers/Dynamic/Diagnostics.h"
71 explicit CodeTokenizer(StringRef &MatcherCode, Diagnostics *Error) in CodeTokenizer()
76 CodeTokenizer(StringRef &MatcherCode, Diagnostics *Error, in CodeTokenizer()
316 Diagnostics *Error;
385 Diagnostics::Context Ctx(Diagnostics::Context::ConstructMatcher, Error, in parseIdentifierPrefixImpl()
496 Diagnostics::Context Ctx(Diagnostics::Context::MatcherArg, Error, in parseMatcherBuilder()
579 Diagnostics::Context Ctx(Diagnostics::Context::ConstructMatcher, Error, in parseMatcherBuilder()
610 Diagnostics::Context Ctx(Diagnostics::Context::ConstructMatcher, Error, in parseMatcherBuilder()
664 Diagnostics::Context Ctx(Diagnostics::Context::MatcherArg, Error, in parseMatcherExpressionImpl()
702 Diagnostics::Context Ctx(Diagnostics::Context::ConstructMatcher, Error, in parseMatcherExpressionImpl()
[all …]
/freebsd-src/contrib/llvm-project/lldb/source/Utility/
H A DDiagnostics.cpp1 //===-- 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::Instance() { return *InstanceImpl(); } in Instance()
42 Diagnostics::Diagnostics() : m_log_handler(g_num_log_messages) {} in Diagnostics() function in Diagnostics
44 Diagnostics::~Diagnostics() {} in ~Diagnostics()
[all …]
/freebsd-src/contrib/llvm-project/clang/include/clang/Sema/
H A DDelayedDiagnostic.h1 //===- 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;
276 : Parent(Other.Parent), Diagnostics(std::move(Other.Diagnostics)) { in DelayedDiagnosticPool()
277 Other.Diagnostics.clear();
282 Diagnostics = std::move(Other.Diagnostics);
265 SmallVector<DelayedDiagnostic, 4> Diagnostics; global() variable
[all...]
/freebsd-src/contrib/llvm-project/lldb/source/Commands/
H A DCommandObjectDiagnostics.cpp17 #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 <subcommand> [<command-options>]") { in CommandObjectDiagnostics()
/freebsd-src/contrib/llvm-project/lldb/include/lldb/Utility/
H A DDiagnostics.h1 //===-- 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-src/contrib/llvm-project/clang/include/clang-c/
H A DCXDiagnostic.h1 /*===-- 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-src/contrib/llvm-project/clang/include/clang/Basic/
H A DDiagnosticOptions.def50 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 DSourceMgrAdapter.h9 // This file provides an adapter that maps diagnostics from llvm::SourceMgr
28 /// An adapter that can be used to translate diagnostics from one or more
34 /// Clang diagnostics engine.
35 DiagnosticsEngine &Diagnostics; variable
53 /// manager and diagnostics engine.
54 SourceMgrAdapter(SourceManager &SM, DiagnosticsEngine &Diagnostics,
H A DDiagnostic.td9 // 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.
/freebsd-src/contrib/llvm-project/clang/include/clang/ASTMatchers/Dynamic/
H A DDiagnostics.h1 //===--- 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 DParser.h52 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-src/contrib/llvm-project/clang/include/clang/Testing/
H A DTestAST.h59 /// 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; }
102 std::vector<StoredDiagnostic> Diagnostics;
92 llvm::ArrayRef<StoredDiagnostic> diagnostics() { return Diagnostics; } diagnostics() function
98 std::vector<StoredDiagnostic> Diagnostics; global() variable
/freebsd-src/contrib/llvm-project/clang/include/clang/Frontend/
H A DCompilerInstance.h83 /// 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; }
366 /// Get the current diagnostics engine.
368 assert(Diagnostics && "Compiler instance has no diagnostics!");
369 return *Diagnostics;
373 assert(Diagnostics
[all...]
H A DSerializedDiagnosticReader.h1 //===- 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 DSerializedDiagnosticPrinter.h1 //===--- 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 DSerializedDiagnostics.h1 //===--- SerializedDiagnostics.h - Common data for serialized diagnostics -===//
42 /// serialized diagnostics version number when you add to it.
52 /// The serialized diagnostics version number.
/freebsd-src/contrib/llvm-project/lldb/source/Expression/
H A DUtilityFunction.cpp90 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-src/contrib/llvm-project/clang/lib/Testing/
H A DTestAST.cpp25 // 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 operator =()
161 Diagnostics = std::move(M.Diagnostics);
/freebsd-src/contrib/llvm-project/clang/lib/Frontend/
H A DSerializedDiagnosticReader.cpp1 //===- 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 DSerializedDiagnosticPrinter.cpp1 //===--- 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 abou
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/Tooling/
H A DTooling.cpp78 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 in run()
[all...]
/freebsd-src/contrib/llvm-project/clang/include/clang/Tooling/Core/
H A DDiagnostic.h1 //===--- 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-src/contrib/llvm-project/clang/lib/Basic/
H A DSourceMgrAdapter.cpp9 // This file implements the adapter that maps diagnostics from llvm::SourceMgr
25 DiagnosticsEngine &Diagnostics, in SourceMgrAdapter() argument
29 : SrcMgr(SM), Diagnostics(Diagnostics), ErrorDiagID(ErrorDiagID), in SourceMgrAdapter()
120 DiagnosticBuilder Builder = Diagnostics.Report(Loc, DiagID) << Message; in handleDiag()
/freebsd-src/contrib/llvm-project/clang/include/clang/Rewrite/Frontend/
H A DFixItRewriter.h10 // 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

12345678910>>...37