Home
last modified time | relevance | path

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

12345678910>>...160

/llvm-project/clang/bindings/python/tests/cindex/
H A Dtest_diagnostics.py18 self.assertEqual(len(tu.diagnostics), 1)
19 self.assertEqual(tu.diagnostics[0].severity, Diagnostic.Warning)
20 self.assertEqual(tu.diagnostics[0].location.line, 1)
21 self.assertEqual(tu.diagnostics[0].location.column, 11)
23 tu.diagnostics[0].spelling, "non-void function does not return a value"
29 self.assertEqual(len(tu.diagnostics), 1)
30 self.assertEqual(tu.diagnostics[0].severity, Diagnostic.Error)
31 self.assertEqual(tu.diagnostics[0].location.line, 2)
32 self.assertEqual(tu.diagnostics[0].location.column, 7)
33 self.assertIn("incompatible", tu.diagnostics[
[all...]
/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 …]
/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 …]
/llvm-project/clang-tools-extra/clangd/unittests/
H A DConfigCompileTests.cpp12 #include "Diagnostics.h"
45 Diags.Diagnostics.clear(); in compileAndApply()
56 EXPECT_THAT(Diags.Diagnostics, IsEmpty()); in TEST_F()
63 EXPECT_THAT(Diags.Diagnostics, IsEmpty()); in TEST_F()
73 EXPECT_THAT(Diags.Diagnostics, IsEmpty()); in TEST_F()
80 EXPECT_THAT(Diags.Diagnostics, IsEmpty()); in TEST_F()
87 EXPECT_THAT(Diags.Diagnostics, IsEmpty()); in TEST_F()
93 EXPECT_THAT(Diags.Diagnostics, SizeIs(1)); in TEST_F()
94 EXPECT_THAT(Diags.Diagnostics.front().Message, StartsWith("Invalid regex")); in TEST_F()
101 EXPECT_THAT(Diags.Diagnostics, IsEmpt in TEST_F()
[all...]
H A DConfigYAMLTests.cpp66 Diagnostics: in TEST()
74 EXPECT_THAT(Diags.Diagnostics, IsEmpty()); in TEST()
85 EXPECT_THAT(Results[3].Diagnostics.ClangTidy.CheckOptions, in TEST()
88 EXPECT_TRUE(Results[3].Diagnostics.UnusedIncludes); in TEST()
89 EXPECT_EQ("Strict", **Results[3].Diagnostics.UnusedIncludes); in TEST()
100 EXPECT_THAT(Diags.Diagnostics, IsEmpty()); in TEST()
122 Diags.Diagnostics, in TEST()
148 EXPECT_THAT(Diags.Diagnostics, in TEST()
162 ASSERT_THAT(Diags.Diagnostics, IsEmpty()); in TEST()
186 ASSERT_THAT(Diags.Diagnostics, IsEmpt in TEST()
[all...]
/llvm-project/clang/test/Driver/
H A Dcolor-diagnostics.c1 // RUN: %clang -fcolor-diagnostics -### -c %s 2>&1 \
3 // CHECK-CD: "-cc1"{{.*}} "-fcolor-diagnostics"
5 // RUN: %clang -fno-color-diagnostics -### -c %s 2>&1 \
7 // CHECK-NCD-NOT: "-cc1"{{.*}} "-fcolor-diagnostics"
11 // CHECK-DC: "-cc1"{{.*}} "-fcolor-diagnostics"
13 // RUN: %clang -fno-diagnostics-color -### -c %s 2>&1 \
15 // CHECK-NDC-NOT: "-cc1"{{.*}} "-fcolor-diagnostics"
19 // CHECK-DCE_A: "-cc1"{{.*}} "-fcolor-diagnostics"
23 // CHECK-DCE_N-NOT: "-cc1"{{.*}} "-fcolor-diagnostics"
28 // CHECK-DCE_AUTO-NOT: "-cc1"{{.*}} "-fcolor-diagnostics"
[all …]
H A Dcl-diagnostics.c4 // RUN: %clang_cl /diagnostics:classic -### -- %s 2>&1 | FileCheck %s --check-prefix=CLASSIC
5 // CLASSIC: -fno-caret-diagnostics
8 // RUN: %clang_cl /diagnostics:column -### -- %s 2>&1 | FileCheck %s --check-prefix=COLUMN
9 // COLUMN: -fno-caret-diagnostics
12 // RUN: %clang_cl /diagnostics:caret -### -- %s 2>&1 | FileCheck %s --check-prefix=CARET
13 // CARET-NOT: -fno-caret-diagnostics
16 // RUN: not %clang_cl -fms-compatibility-version=19 /diagnostics:classic /Zs -c -- %s 2>&1 | FileC…
18 // OUTPUT_CLASSIC: cl-diagnostics.c({{[0-9]+}}): error: "asdf"
21 // RUN: not %clang_cl -fms-compatibility-version=19 /diagnostics:caret /Zs -c -- %s 2>&1 | FileChec…
23 // OUTPUT_CARET: cl-diagnostics.c({{[0-9]+,[0-9]+}}): error: "asdf"
/llvm-project/llvm/test/MC/MachO/ARM/
H A Dbuild-version-diagnostics.s4 // CHECK-NOT: build-version-diagnostics.s:[[@LINE-1]]
7 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:1: warning: .build_version macos used while targe…
8 // CHECK: build-version-diagnostics.s:[[@LINE-2]]:1: warning: overriding previous version directive
11 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:16: error: platform name expected
14 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:22: error: version number required, comma expected
17 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:16: error: unknown platform name
20 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:22: error: invalid OS major version number, integ…
23 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:22: error: invalid OS major version number
26 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:22: error: invalid OS major version number
29 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:22: error: invalid OS major version number
[all …]
/llvm-project/clang/test/CodeGenOpenCL/
H A Damdgpu-attrs.cl5 __attribute__((amdgpu_flat_work_group_size(0, 0))) // expected-no-diagnostics
7 __attribute__((amdgpu_waves_per_eu(0))) // expected-no-diagnostics
9 __attribute__((amdgpu_waves_per_eu(0, 0))) // expected-no-diagnostics
11 __attribute__((amdgpu_num_sgpr(0))) // expected-no-diagnostics
13 __attribute__((amdgpu_num_vgpr(0))) // expected-no-diagnostics
16 …attribute__((amdgpu_flat_work_group_size(0, 0), amdgpu_waves_per_eu(0))) // expected-no-diagnostics
18 …ribute__((amdgpu_flat_work_group_size(0, 0), amdgpu_waves_per_eu(0, 0))) // expected-no-diagnostics
20 __attribute__((amdgpu_flat_work_group_size(0, 0), amdgpu_num_sgpr(0))) // expected-no-diagnostics
22 __attribute__((amdgpu_flat_work_group_size(0, 0), amdgpu_num_vgpr(0))) // expected-no-diagnostics
24 __attribute__((amdgpu_waves_per_eu(0), amdgpu_num_sgpr(0))) // expected-no-diagnostics
[all …]
/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; 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 …]
/llvm-project/mlir/include/mlir/Dialect/Transform/Utils/
H A DDiagnosedSilenceableFailure.h11 // optional associated list of diagnostics.
15 #include "mlir/IR/Diagnostics.h"
37 /// failures as their diagnostics have been already reported to the user.
76 return ::mlir::succeeded(result) && diagnostics.empty(); in succeeded()
81 return ::mlir::failed(result) && diagnostics.empty(); in isDefiniteFailure()
85 bool isSilenceableFailure() const { return !diagnostics.empty(); } in isSilenceableFailure()
91 for (auto &diagnostic : diagnostics) { in getMessage()
110 if (!diagnostics.empty()) { in silence()
111 diagnostics.clear(); in silence()
117 /// Take the diagnostics and silence.
[all …]
/llvm-project/flang/test/Driver/
H A Dcolor-diagnostics-forwarding.f901 ! Test that flang forwards -f{no-}color-diagnostics and
2 ! -f{no-}diagnostics-color options to flang -fc1 as expected.
4 ! RUN: %flang -fsyntax-only -### %s -o %t 2>&1 -fcolor-diagnostics \
10 ! CHECK-CD: "-fc1"{{.*}} "-fcolor-diagnostics"
12 ! RUN: %flang -fsyntax-only -### %s -o %t 2>&1 -fno-color-diagnostics \
14 ! RUN: %flang -fsyntax-only -### %s -o %t -fno-diagnostics-color 2>&1 \
18 ! CHECK-NCD-NOT: "-fc1"{{.*}} "-fcolor-diagnostics"
22 ! RUN: -fno-color-diagnostics -fcolor-diagnostics \
25 ! RUN: -fno-diagnostics
[all...]
H A Dcolor-diagnostics.f901 ! Test the behaviors of -f{no-}color-diagnostics and -f{no}-diagnostics-color.
5 ! RUN: not %flang %s -fcolor-diagnostics 2>&1 \
7 ! RUN: not %flang %s -fno-color-diagnostics 2>&1 \
9 ! RUN: not %flang_fc1 %s -fcolor-diagnostics 2>&1 \
11 ! RUN: not %flang_fc1 %s -fno-color-diagnostics 2>&1 \
16 ! RUN: not %flang %s -fno-diagnostics-color 2>&1 \
20 ! RUN: not %flang_fc1 %s -fno-diagnostics-color 2>&1 \
30 ! CHECK_CD: {{.*}}[0;1;31merror: {{.*}}[0m{{.*}}[1mSemantic errors in {{.*}}color-diagnostics.f90{{.*}}[0m
32 ! CHECK_NCD: Semantic errors in {{.*}}color-diagnostics
[all...]
/llvm-project/clang/test/Modules/
H A Ddiagnostics.modulemap2 // RUN: not %clang_cc1 -fmodules -fmodules-cache-path=%t -fmodule-map-file=%S/Inputs/diagnostics-au…
4 // CHECK: In file included from {{.*}}diagnostics-aux.modulemap:3:
5 // CHECK: diagnostics-aux-2.modulemap:2:3: error: expected
7 // PR22299: Ensure we can produce diagnostics for duplicate modules from -fmodule-map-file=.
9 // CHECK: diagnostics.modulemap:[[@LINE+2]]:8: error: redefinition of module 'foo'
10 // CHECK: diagnostics-aux.modulemap:1:8: note: previously defined here
16 …// CHECK: diagnostics.modulemap:[[@LINE+1]]:22: error: use declarations are only allowed in top-le…
21 // CHECK: diagnostics.modulemap:[[@LINE+1]]:20: error: expected a header attribute name
23 …// CHECK: diagnostics.modulemap:[[@LINE+1]]:27: error: header attribute 'size' specified multiple …
25 …// CHECK: diagnostics.modulemap:[[@LINE+1]]:25: error: expected integer literal as value for heade…
[all …]
/llvm-project/clang/test/Frontend/
H A Dverify3.c2 // diagnostics are generated in relation to the mis-use and non-use of the
3 // 'expected-no-diagnostics' directive.
7 // expected-no-diagnostics
10 // CHECK1: error: 'expected-error' diagnostics seen but not expected:
11 // CHECK1-NEXT: Line 8: expected directive cannot follow 'expected-no-diagnostics' directive
19 // expected-no-diagnostics
21 // CHECK2: error: 'expected-error' diagnostics seen but not expected:
22 // CHECK2-NEXT: Line 19: 'expected-no-diagnostics' directive cannot follow other expected directi…
31 // CHECK3: error: no expected directives found: consider use of 'expected-no-diagnostics'
40 // CHECK4-NOT: error: no expected directives found: consider use of 'expected-no-diagnostics'
H A Dverify.c51 // CHECK2: error: 'expected-error' diagnostics expected but not seen:
54 // CHECK2-NEXT: error: 'expected-error' diagnostics seen but not expected:
57 // CHECK2-NEXT: error: 'expected-warning' diagnostics expected but not seen:
59 // CHECK2-NEXT: error: 'expected-warning' diagnostics seen but not expected:
81 // CHECK3: error: 'expected-note' diagnostics expected but not seen:
94 // CHECK4: error: 'expected-error' diagnostics expected but not seen:
96 // CHECK4-NEXT: error: 'expected-error' diagnostics seen but not expected:
105 // CHECK5: error: 'expected-error' diagnostics expected but not seen:
114 // CHECK6: error: no expected directives found: consider use of 'expected-no-diagnostics'
115 // CHECK6-NEXT: error: 'expected-error' diagnostics seen but not expected:
[all …]
H A Dverify-ignore-unexpected.c4 // expected-no-diagnostics
6 // CHECK-BAD-SWITCH: error: 'expected-error' diagnostics seen but not expected:
34 // CHECK-UNEXP-NEXT: 'expected-error' diagnostics seen but not expected
36 // CHECK-UNEXP-NEXT: 'expected-warning' diagnostics seen but not expected
38 // CHECK-UNEXP-NEXT: 'expected-note' diagnostics seen but not expected
43 // CHECK-NOTE-NEXT: 'expected-error' diagnostics seen but not expected
45 // CHECK-NOTE-NEXT: 'expected-warning' diagnostics seen but not expected
50 // CHECK-WARN-NEXT: 'expected-error' diagnostics seen but not expected
52 // CHECK-WARN-NEXT: 'expected-note' diagnostics seen but not expected
57 // CHECK-ERR-NEXT: 'expected-warning' diagnostics seen but not expected
[all …]
/llvm-project/clang/test/TableGen/
H A Dwording-errors.td7 // CHECK-DAG: wording-errors.td:[[@LINE-2]]:5: error: Diagnostics should not start with a capital l…
12 // CHECK-DAG: wording-errors.td:[[@LINE-2]]:5: error: Diagnostics should not start with a capital l…
15 // CHECK-DAG: wording-errors.td:[[@LINE-2]]:5: error: Diagnostics should not start with a capital l…
18 // CHECK-DAG: wording-errors.td:[[@LINE-2]]:5: error: Diagnostics should not start with a capital l…
33 // CHECK-DAG: wording-errors.td:[[@LINE-2]]:5: error: Diagnostics should not end with punctuation; …
36 // CHECK-DAG: wording-errors.td:[[@LINE-2]]:5: error: Diagnostics should not end with punctuation; …
39 // CHECK-DAG: wording-errors.td:[[@LINE-2]]:5: error: Diagnostics should not end with punctuation; …
42 // CHECK-DAG: wording-errors.td:[[@LINE-2]]:5: error: Diagnostics should not end with punctuation; …
45 // CHECK-DAG: wording-errors.td:[[@LINE-2]]:5: error: Diagnostics should not end with punctuation; …
48 // CHECK-DAG: wording-errors.td:[[@LINE-2]]:5: error: Diagnostics should not end with punctuation; …
[all …]
/llvm-project/clang/test/Analysis/diagnostics/
H A Dtext-diagnostics.c1 …analyzer-checker=core.NullDereference -analyzer-output=text -fno-caret-diagnostics %s 2>&1 | FileC…
7 …// CHECK-LABEL: text-diagnostics.c:{{.*}}:6: warning: Dereference of null pointer (loaded from var… in testA()
8 // CHECK-NEXT: text-diagnostics.c:[[@LINE-4]]:3: note: 'p' initialized to a null pointer value in testA()
9 …// CHECK-NEXT: text-diagnostics.c:[[@LINE-4]]:6: note: Dereference of null pointer (loaded from va… in testA()
17 …// CHECK-LABEL: text-diagnostics.c:{{.*}}:6: warning: Dereference of null pointer (loaded from var… in testB()
18 // CHECK-NEXT: text-diagnostics.c:[[@LINE-5]]:7: note: Assuming 'q' is null in testB()
19 // CHECK-NEXT: text-diagnostics.c:[[@LINE-6]]:3: note: Taking false branch in testB()
20 …// CHECK-NEXT: text-diagnostics.c:[[@LINE-5]]:6: note: Dereference of null pointer (loaded from va… in testB()
/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()
/llvm-project/llvm/utils/
H A Dclang-parse-diagnostics-file11 Utility for dumping Clang-style logged diagnostics.\
45 # Read the diagnostics log.
63 # Get the list of files and diagnostics to report.
69 # Diagnostics from modules don't have a main-file listed.
73 # Ignore diagnostics for 'conftest.c', which is the file autoconf uses
78 # Get the diagnostics for the selected levels.
80 for d in file_diags.get('diagnostics', ())
85 # If there are no diagnostics to report, show nothing.
89 # Otherwise, print out the diagnostics.
91 print "**** BUILD DIAGNOSTICS ****"
/llvm-project/mlir/docs/
H A DDiagnostics.md6 diagnostics infrastructure.
20 The `DiagnosticEngine` acts as the main interface for diagnostics in MLIR. It
42 // that all diagnostics are consumed(i.e. a success() result).
63 diagnostics in MLIR. [`operation`](LangRef.md/#operations) provides utility
64 methods for emitting diagnostics:
107 // Diagnostics can be composed via the streaming operators.
127 To make a custom type compatible with Diagnostics, one must implement the
158 Now that [Diagnostics](#diagnostic) have been explained, we introduce the
173 diagnostics. These options can be configured via the MLIRContext, and registered
202 generated certain diagnostics
[all...]
/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 …]
/llvm-project/clang/test/Analysis/
H A Duninit-asm-goto.cpp3 // test1: Expect no diagnostics
12 // test2: Expect no diagnostics
26 // test3: Expect no diagnostics
40 // test4: Expect no diagnostics
51 // test5: Expect no diagnostics
61 // test6: Expect no diagnostics.
73 // test7: Expect no diagnostics.
84 // test8: Expect no diagnostics
94 // test9: Expect no diagnostics
/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();

12345678910>>...160