Home
last modified time | relevance | path

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

1234567

/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/Basic/
DDiagnostic.cpp27 static void DummyArgToStringFn(DiagnosticsEngine::ArgumentKind AK, intptr_t QT, in DummyArgToStringFn()
29 ArrayRef<DiagnosticsEngine::ArgumentValue> PrevArgs, in DummyArgToStringFn()
37 DiagnosticsEngine::DiagnosticsEngine( in DiagnosticsEngine() function in DiagnosticsEngine
65 DiagnosticsEngine::~DiagnosticsEngine() { in ~DiagnosticsEngine()
71 void DiagnosticsEngine::setClient(DiagnosticConsumer *client, in setClient()
77 void DiagnosticsEngine::pushMappings(SourceLocation Loc) { in pushMappings()
81 bool DiagnosticsEngine::popMappings(SourceLocation Loc) { in popMappings()
93 void DiagnosticsEngine::Reset() { in Reset()
119 void DiagnosticsEngine::SetDelayedDiagnostic(unsigned DiagID, StringRef Arg1, in SetDelayedDiagnostic()
129 void DiagnosticsEngine::ReportDelayed() { in ReportDelayed()
[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.cpp69 DiagnosticsEngine::Level Level,
76 DiagnosticsEngine::Level Level, in emitDiagnosticLoc()
84 DiagnosticsEngine::Level Level,
90 DiagnosticsEngine::Level Level) override;
92 DiagnosticsEngine::Level Level) override;
163 void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
174 DiagnosticsEngine *getMetaDiags();
199 DiagnosticsEngine::Level Level,
216 unsigned getEmitDiagnosticFlag(DiagnosticsEngine::Level DiagLevel,
299 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/include/clang/Basic/
DDiagnostic.h134 class DiagnosticsEngine : public RefCountedBase<DiagnosticsEngine> {
135 DiagnosticsEngine(const DiagnosticsEngine &) = delete;
136 void operator=(const DiagnosticsEngine &) = delete;
345 explicit DiagnosticsEngine(
350 ~DiagnosticsEngine();
624 void notePriorDiagnosticFrom(const DiagnosticsEngine &Other) { in notePriorDiagnosticFrom()
822 DiagnosticsEngine &Diag;
827 explicit DiagnosticErrorTrap(DiagnosticsEngine &Diag) in DiagnosticErrorTrap()
866 mutable DiagnosticsEngine *DiagObj;
881 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/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/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,
142 void emitDiagnostic(SourceLocation Loc, DiagnosticsEngine::Level Level,
DUtils.h40 class DiagnosticsEngine; variable
178 IntrusiveRefCntPtr<DiagnosticsEngine> Diags =
179 IntrusiveRefCntPtr<DiagnosticsEngine>());
185 DiagnosticsEngine *Diags = nullptr);
189 DiagnosticsEngine &Diags) { in getLastArgIntValue()
195 DiagnosticsEngine *Diags = nullptr);
200 DiagnosticsEngine &Diags) { in getLastArgUInt64Value()
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,
DASTUnit.h54 class DiagnosticsEngine; variable
77 DiagnosticsEngine::Level Level;
87 IntrusiveRefCntPtr<DiagnosticsEngine> Diagnostics;
308 static void ConfigureDiags(IntrusiveRefCntPtr<DiagnosticsEngine> Diags,
495 const DiagnosticsEngine &getDiagnostics() const { return *Diagnostics; } in getDiagnostics()
496 DiagnosticsEngine &getDiagnostics() { return *Diagnostics; } in getDiagnostics()
710 IntrusiveRefCntPtr<DiagnosticsEngine> Diags,
723 const std::string &Filename, IntrusiveRefCntPtr<DiagnosticsEngine> Diags,
768 CompilerInvocation *CI, IntrusiveRefCntPtr<DiagnosticsEngine> Diags,
789 CompilerInvocation *CI, IntrusiveRefCntPtr<DiagnosticsEngine> Diags,
[all …]
DCompilerInvocation.h40 class DiagnosticsEngine; variable
50 DiagnosticsEngine *Diags = nullptr);
139 DiagnosticsEngine &Diags);
215 DiagnosticsEngine &Diags);
DVerifyDiagnosticConsumer.h23 class DiagnosticsEngine; variable
213 DiagnosticsEngine &Diags;
248 VerifyDiagnosticConsumer(DiagnosticsEngine &Diags);
272 void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
/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.cpp43 if (eraseS->getLevel() != DiagnosticsEngine::Note) in clearDiagnostic()
44 while (I != List.end() && I->getLevel() == DiagnosticsEngine::Note) in clearDiagnostic()
79 void CapturedDiagList::reportDiagnostics(DiagnosticsEngine &Diags) const { in reportDiagnostics()
86 if (I->getLevel() >= DiagnosticsEngine::Error) in hasErrors()
95 DiagnosticsEngine &Diags;
100 CaptureDiagnosticConsumer(DiagnosticsEngine &diags, in CaptureDiagnosticConsumer()
131 void HandleDiagnostic(DiagnosticsEngine::Level level, in HandleDiagnostic()
134 level >= DiagnosticsEngine::Error || level == DiagnosticsEngine::Note) { in HandleDiagnostic()
178 IntrusiveRefCntPtr<DiagnosticsEngine> Diags( in createInvocationForMigration()
179 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()
115 void FixItRewriter::HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, in HandleDiagnostic()
121 DiagLevel >= DiagnosticsEngine::Error || in HandleDiagnostic()
122 (DiagLevel == DiagnosticsEngine::Note && !PrevDiagSilenced) || in HandleDiagnostic()
123 (DiagLevel > DiagnosticsEngine::Note && Info.getNumFixItHints())) { in HandleDiagnostic()
131 if (DiagLevel <= DiagnosticsEngine::Note) in HandleDiagnostic()
134 if (DiagLevel >= DiagnosticsEngine::Error && FixItOpts->FixOnlyWarnings) { in HandleDiagnostic()
169 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()
87 void ClangCheckerRegistry::warnIncompatible(DiagnosticsEngine *diags, in warnIncompatible()
105 DiagnosticsEngine &diags) { in createCheckerManager()
/external/clang/lib/AST/
DMicrosoftMangle.cpp100 MicrosoftMangleContextImpl(ASTContext &Context, DiagnosticsEngine &Diags) in MicrosoftMangleContextImpl()
390 DiagnosticsEngine &Diags = Context.getDiags(); in mangle()
392 DiagnosticsEngine::Error, "cannot mangle this declaration yet"); in mangle()
850 DiagnosticsEngine &Diags = Context.getDiags(); in mangleNestedName()
852 Diags.getCustomDiagID(DiagnosticsEngine::Error, in mangleNestedName()
1014 DiagnosticsEngine &Diags = Context.getDiags(); in mangleOperatorName()
1015 unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error, in mangleOperatorName()
1123 DiagnosticsEngine &Diags = Context.getDiags(); in mangleExpression()
1125 DiagnosticsEngine::Error, "cannot yet mangle expression type %0"); in mangleExpression()
1555 DiagnosticsEngine &Diags = Context.getDiags(); in mangleType()
[all …]
/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.h52 DiagnosticsEngine &Diags;
63 DiagnosticsEngine &Diags, in MangleContext()
71 DiagnosticsEngine &getDiags() const { return Diags; } in getDiags()
155 explicit ItaniumMangleContext(ASTContext &C, DiagnosticsEngine &D) in ItaniumMangleContext()
178 DiagnosticsEngine &Diags);
183 explicit MicrosoftMangleContext(ASTContext &C, DiagnosticsEngine &D) in MicrosoftMangleContext()
237 DiagnosticsEngine &Diags);

1234567