Home
last modified time | relevance | path

Searched refs:DiagnosticsEngine (Results 1 – 25 of 176) sorted by relevance

12345678

/external/clang/tools/diagtool/
DShowEnabledWarnings.cpp30 DiagnosticsEngine::Level Level;
32 PrettyDiag(StringRef name, StringRef flag, DiagnosticsEngine::Level level) in PrettyDiag()
43 static char getCharForLevel(DiagnosticsEngine::Level Level) { in getCharForLevel()
45 case DiagnosticsEngine::Ignored: return ' '; in getCharForLevel()
46 case DiagnosticsEngine::Note: return '-'; in getCharForLevel()
47 case DiagnosticsEngine::Remark: return 'R'; in getCharForLevel()
48 case DiagnosticsEngine::Warning: return 'W'; in getCharForLevel()
49 case DiagnosticsEngine::Error: return 'E'; in getCharForLevel()
50 case DiagnosticsEngine::Fatal: return 'F'; in getCharForLevel()
56 static IntrusiveRefCntPtr<DiagnosticsEngine>
[all …]
/external/clang/lib/Frontend/
DTextDiagnosticBuffer.cpp22 void TextDiagnosticBuffer::HandleDiagnostic(DiagnosticsEngine::Level Level, in HandleDiagnostic()
32 case DiagnosticsEngine::Note: in HandleDiagnostic()
35 case DiagnosticsEngine::Warning: in HandleDiagnostic()
38 case DiagnosticsEngine::Remark: in HandleDiagnostic()
41 case DiagnosticsEngine::Error: in HandleDiagnostic()
42 case DiagnosticsEngine::Fatal: in HandleDiagnostic()
48 void TextDiagnosticBuffer::FlushDiagnostics(DiagnosticsEngine &Diags) const { in FlushDiagnostics()
51 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Error, "%0")) in FlushDiagnostics()
54 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Warning, "%0")) in FlushDiagnostics()
57 Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Remark, "%0")) in FlushDiagnostics()
[all …]
DLogDiagnosticPrinter.cpp27 static StringRef getLevelName(DiagnosticsEngine::Level Level) { in getLevelName()
29 case DiagnosticsEngine::Ignored: return "ignored"; in getLevelName()
30 case DiagnosticsEngine::Remark: return "remark"; in getLevelName()
31 case DiagnosticsEngine::Note: return "note"; in getLevelName()
32 case DiagnosticsEngine::Warning: return "warning"; in getLevelName()
33 case DiagnosticsEngine::Error: return "error"; in getLevelName()
34 case DiagnosticsEngine::Fatal: return "fatal error"; in getLevelName()
112 void LogDiagnosticPrinter::HandleDiagnostic(DiagnosticsEngine::Level Level, in HandleDiagnostic()
DSerializedDiagnosticPrinter.cpp71 DiagnosticsEngine::Level Level,
78 DiagnosticsEngine::Level Level, in emitDiagnosticLoc()
86 DiagnosticsEngine::Level Level,
92 DiagnosticsEngine::Level Level) override;
94 DiagnosticsEngine::Level Level) override;
165 void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
176 DiagnosticsEngine *getMetaDiags();
201 DiagnosticsEngine::Level Level,
218 unsigned getEmitDiagnosticFlag(DiagnosticsEngine::Level DiagLevel,
301 std::unique_ptr<DiagnosticsEngine> MetaDiagnostics;
[all …]
DTextDiagnosticPrinter.cpp55 DiagnosticsEngine::Level Level, in printDiagnosticOptions()
75 if (Level == DiagnosticsEngine::Error && in printDiagnosticOptions()
85 << (Level == DiagnosticsEngine::Remark ? "-R" : "-W") << Opt; in printDiagnosticOptions()
112 void TextDiagnosticPrinter::HandleDiagnostic(DiagnosticsEngine::Level Level, in HandleDiagnostic()
/external/clang/lib/Basic/
DDiagnostic.cpp48 static void DummyArgToStringFn(DiagnosticsEngine::ArgumentKind AK, intptr_t QT, in DummyArgToStringFn()
50 ArrayRef<DiagnosticsEngine::ArgumentValue> PrevArgs, in DummyArgToStringFn()
58 DiagnosticsEngine::DiagnosticsEngine( in DiagnosticsEngine() function in DiagnosticsEngine
87 DiagnosticsEngine::~DiagnosticsEngine() { in ~DiagnosticsEngine()
93 void DiagnosticsEngine::setClient(DiagnosticConsumer *client, in setClient()
99 void DiagnosticsEngine::pushMappings(SourceLocation Loc) { in pushMappings()
103 bool DiagnosticsEngine::popMappings(SourceLocation Loc) { in popMappings()
115 void DiagnosticsEngine::Reset() { in Reset()
141 void DiagnosticsEngine::SetDelayedDiagnostic(unsigned DiagID, StringRef Arg1, in SetDelayedDiagnostic()
151 void DiagnosticsEngine::ReportDelayed() { in ReportDelayed()
[all …]
/external/clang/include/clang/Basic/
DDiagnostic.h135 class DiagnosticsEngine : public RefCountedBase<DiagnosticsEngine> {
136 DiagnosticsEngine(const DiagnosticsEngine &) = delete;
137 void operator=(const DiagnosticsEngine &) = delete;
347 explicit DiagnosticsEngine(
352 ~DiagnosticsEngine();
632 void notePriorDiagnosticFrom(const DiagnosticsEngine &Other) { in notePriorDiagnosticFrom()
830 DiagnosticsEngine &Diag;
835 explicit DiagnosticErrorTrap(DiagnosticsEngine &Diag) in DiagnosticErrorTrap()
874 mutable DiagnosticsEngine *DiagObj = nullptr;
889 friend class DiagnosticsEngine; variable
[all …]
DPartialDiagnostic.h35 MaxArguments = DiagnosticsEngine::MaxArguments
215 if (Other.getArgKind(I) == DiagnosticsEngine::ak_std_string) in PartialDiagnostic()
267 void AddTaggedVal(intptr_t V, DiagnosticsEngine::ArgumentKind Kind) const { in AddTaggedVal()
284 = DiagnosticsEngine::ak_std_string; in AddString()
294 if ((DiagnosticsEngine::ArgumentKind)DiagStorage->DiagArgumentsKind[i] in Emit()
295 == DiagnosticsEngine::ak_std_string) in Emit()
299 (DiagnosticsEngine::ArgumentKind)DiagStorage->DiagArgumentsKind[i]); in Emit()
311 void EmitToString(DiagnosticsEngine &Diags, in EmitToString()
334 PD.AddTaggedVal(I, DiagnosticsEngine::ak_uint);
340 PD.AddTaggedVal(I, DiagnosticsEngine::ak_sint);
[all …]
DDiagnosticIDs.h23 class DiagnosticsEngine; variable
262 const DiagnosticsEngine &Diag) const LLVM_READONLY;
266 const DiagnosticsEngine &Diag) const LLVM_READONLY;
272 bool ProcessDiag(DiagnosticsEngine &Diag) const;
276 void EmitDiag(DiagnosticsEngine &Diag, Level DiagLevel) const;
282 friend class DiagnosticsEngine; variable
/external/v8/tools/clang/blink_gc_plugin/
DDiagnosticsReporter.cpp186 DiagnosticsEngine::Warning, kClassDoesNotRequireFinalization); in DiagnosticsReporter()
216 DiagnosticsEngine::Note, kBaseRequiresTracingNote); in DiagnosticsReporter()
218 DiagnosticsEngine::Note, kFieldRequiresTracingNote); in DiagnosticsReporter()
220 DiagnosticsEngine::Note, kFieldShouldNotBeTracedNote); in DiagnosticsReporter()
222 DiagnosticsEngine::Note, kRawPtrToGCManagedClassNote); in DiagnosticsReporter()
224 DiagnosticsEngine::Note, kRefPtrToGCManagedClassNote); in DiagnosticsReporter()
226 DiagnosticsEngine::Note, kReferencePtrToGCManagedClassNote); in DiagnosticsReporter()
228 DiagnosticsEngine::Note, kOwnPtrToGCManagedClassNote); in DiagnosticsReporter()
230 DiagnosticsEngine::Note, kUniquePtrToGCManagedClassNote); in DiagnosticsReporter()
232 DiagnosticsEngine::Note, kMemberToGCUnmanagedClassNote); in DiagnosticsReporter()
[all …]
/external/clang/include/clang/Frontend/
DDiagnosticRenderer.h68 DiagnosticsEngine::Level LastLevel;
76 DiagnosticsEngine::Level Level,
83 DiagnosticsEngine::Level Level,
88 DiagnosticsEngine::Level Level,
103 DiagnosticsEngine::Level Level) {} in beginDiagnostic()
105 DiagnosticsEngine::Level Level) {} in endDiagnostic()
111 DiagnosticsEngine::Level Level, const SourceManager &SM);
117 void emitCaret(SourceLocation Loc, DiagnosticsEngine::Level Level,
121 DiagnosticsEngine::Level Level,
125 DiagnosticsEngine::Level Level,
[all …]
DTextDiagnostic.h53 DiagnosticsEngine::Level Level,
79 DiagnosticsEngine::Level Level,
86 DiagnosticsEngine::Level Level,
91 DiagnosticsEngine::Level Level, in emitCodeContext()
110 void emitSnippetAndCaret(SourceLocation Loc, DiagnosticsEngine::Level Level,
DUtils.h41 class DiagnosticsEngine; variable
189 IntrusiveRefCntPtr<DiagnosticsEngine> Diags =
190 IntrusiveRefCntPtr<DiagnosticsEngine>());
196 DiagnosticsEngine *Diags = nullptr);
200 DiagnosticsEngine &Diags) { in getLastArgIntValue()
206 DiagnosticsEngine *Diags = nullptr);
211 DiagnosticsEngine &Diags) { in getLastArgUInt64Value()
DASTUnit.h54 class DiagnosticsEngine; variable
79 DiagnosticsEngine::Level Level;
89 IntrusiveRefCntPtr<DiagnosticsEngine> Diagnostics;
310 static void ConfigureDiags(IntrusiveRefCntPtr<DiagnosticsEngine> Diags,
499 const DiagnosticsEngine &getDiagnostics() const { return *Diagnostics; } in getDiagnostics()
500 DiagnosticsEngine &getDiagnostics() { return *Diagnostics; } in getDiagnostics()
714 IntrusiveRefCntPtr<DiagnosticsEngine> Diags,
730 IntrusiveRefCntPtr<DiagnosticsEngine> Diags,
783 IntrusiveRefCntPtr<DiagnosticsEngine> Diags,
810 IntrusiveRefCntPtr<DiagnosticsEngine> Diags, FileManager *FileMgr,
[all …]
DCompilerInvocation.h40 class DiagnosticsEngine; variable
50 DiagnosticsEngine *Diags = nullptr,
140 DiagnosticsEngine &Diags);
219 DiagnosticsEngine &Diags);
DVerifyDiagnosticConsumer.h23 class DiagnosticsEngine; variable
213 DiagnosticsEngine &Diags;
248 VerifyDiagnosticConsumer(DiagnosticsEngine &Diags);
272 void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
/external/clang/include/clang/ARCMigrate/
DFileRemapper.h26 class DiagnosticsEngine; variable
45 bool initFromDisk(StringRef outputDir, DiagnosticsEngine &Diag,
47 bool initFromFile(StringRef filePath, DiagnosticsEngine &Diag,
49 bool flushToDisk(StringRef outputDir, DiagnosticsEngine &Diag);
50 bool flushToFile(StringRef outputPath, DiagnosticsEngine &Diag);
52 bool overwriteOriginal(DiagnosticsEngine &Diag,
68 bool report(const Twine &err, DiagnosticsEngine &Diag);
/external/clang/lib/ARCMigrate/
DPlistReporter.cpp19 static StringRef getLevelName(DiagnosticsEngine::Level Level) { in getLevelName()
21 case DiagnosticsEngine::Ignored: in getLevelName()
23 case DiagnosticsEngine::Note: in getLevelName()
25 case DiagnosticsEngine::Remark: in getLevelName()
26 case DiagnosticsEngine::Warning: in getLevelName()
28 case DiagnosticsEngine::Fatal: in getLevelName()
29 case DiagnosticsEngine::Error: in getLevelName()
87 if (D.getLevel() == DiagnosticsEngine::Ignored) in writeARCDiagsToPlist()
DARCMT.cpp44 if (eraseS->getLevel() != DiagnosticsEngine::Note) in clearDiagnostic()
45 while (I != List.end() && I->getLevel() == DiagnosticsEngine::Note) in clearDiagnostic()
80 void CapturedDiagList::reportDiagnostics(DiagnosticsEngine &Diags) const { in reportDiagnostics()
87 if (I->getLevel() >= DiagnosticsEngine::Error) in hasErrors()
96 DiagnosticsEngine &Diags;
101 CaptureDiagnosticConsumer(DiagnosticsEngine &diags, in CaptureDiagnosticConsumer()
132 void HandleDiagnostic(DiagnosticsEngine::Level level, in HandleDiagnostic()
135 level >= DiagnosticsEngine::Error || level == DiagnosticsEngine::Note) { in HandleDiagnostic()
183 IntrusiveRefCntPtr<DiagnosticsEngine> Diags( in createInvocationForMigration()
184 new DiagnosticsEngine(DiagID, &origCI.getDiagnosticOpts(), in createInvocationForMigration()
[all …]
DFileRemapper.cpp50 bool FileRemapper::initFromDisk(StringRef outputDir, DiagnosticsEngine &Diag, in initFromDisk()
56 bool FileRemapper::initFromFile(StringRef filePath, DiagnosticsEngine &Diag, in initFromFile()
110 bool FileRemapper::flushToDisk(StringRef outputDir, DiagnosticsEngine &Diag) { in flushToDisk()
120 bool FileRemapper::flushToFile(StringRef outputPath, DiagnosticsEngine &Diag) { in flushToFile()
166 bool FileRemapper::overwriteOriginal(DiagnosticsEngine &Diag, in overwriteOriginal()
253 bool FileRemapper::report(const Twine &err, DiagnosticsEngine &Diag) { in report()
254 Diag.Report(Diag.getCustomDiagID(DiagnosticsEngine::Error, "%0")) in report()
/external/clang/tools/libclang/
DCXStoredDiagnostic.cpp32 case DiagnosticsEngine::Ignored: return CXDiagnostic_Ignored; in getSeverity()
33 case DiagnosticsEngine::Note: return CXDiagnostic_Note; in getSeverity()
34 case DiagnosticsEngine::Remark: in getSeverity()
36 case DiagnosticsEngine::Warning: return CXDiagnostic_Warning; in getSeverity()
37 case DiagnosticsEngine::Error: return CXDiagnostic_Error; in getSeverity()
38 case DiagnosticsEngine::Fatal: return CXDiagnostic_Fatal; in getSeverity()
/external/clang/lib/Frontend/Rewrite/
DFixItRewriter.cpp30 FixItRewriter::FixItRewriter(DiagnosticsEngine &Diags, SourceManager &SourceMgr, in FixItRewriter()
122 void FixItRewriter::HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, in HandleDiagnostic()
128 DiagLevel >= DiagnosticsEngine::Error || in HandleDiagnostic()
129 (DiagLevel == DiagnosticsEngine::Note && !PrevDiagSilenced) || in HandleDiagnostic()
130 (DiagLevel > DiagnosticsEngine::Note && Info.getNumFixItHints())) { in HandleDiagnostic()
138 if (DiagLevel <= DiagnosticsEngine::Note) in HandleDiagnostic()
141 if (DiagLevel >= DiagnosticsEngine::Error && FixItOpts->FixOnlyWarnings) { in HandleDiagnostic()
176 if (DiagLevel >= DiagnosticsEngine::Error) { in HandleDiagnostic()
/external/clang/lib/StaticAnalyzer/Frontend/
DCheckerRegistration.cpp38 static void warnIncompatible(DiagnosticsEngine *diags, StringRef pluginPath,
43 DiagnosticsEngine *diags = nullptr);
49 DiagnosticsEngine *diags) { in ClangCheckerRegistry()
89 void ClangCheckerRegistry::warnIncompatible(DiagnosticsEngine *diags, in warnIncompatible()
107 DiagnosticsEngine &diags) { in createCheckerManager()
/external/clang/include/clang/Rewrite/Frontend/
DASTConsumers.h24 class DiagnosticsEngine; variable
32 DiagnosticsEngine &Diags, const LangOptions &LOpts,
36 DiagnosticsEngine &Diags, const LangOptions &LOpts,
/external/clang/include/clang/AST/
DMangle.h53 DiagnosticsEngine &Diags;
64 DiagnosticsEngine &Diags, in MangleContext()
72 DiagnosticsEngine &getDiags() const { return Diags; } in getDiags()
154 explicit ItaniumMangleContext(ASTContext &C, DiagnosticsEngine &D) in ItaniumMangleContext()
177 DiagnosticsEngine &Diags);
182 explicit MicrosoftMangleContext(ASTContext &C, DiagnosticsEngine &D) in MicrosoftMangleContext()
242 DiagnosticsEngine &Diags);

12345678