Home
last modified time | relevance | path

Searched refs:DiagnosticsEngine (Results 1 – 25 of 164) 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.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
86 DiagnosticsEngine::~DiagnosticsEngine() { in ~DiagnosticsEngine()
92 void DiagnosticsEngine::setClient(DiagnosticConsumer *client, in setClient()
98 void DiagnosticsEngine::pushMappings(SourceLocation Loc) { in pushMappings()
102 bool DiagnosticsEngine::popMappings(SourceLocation Loc) { in popMappings()
114 void DiagnosticsEngine::Reset() { in Reset()
140 void DiagnosticsEngine::SetDelayedDiagnostic(unsigned DiagID, StringRef Arg1, in SetDelayedDiagnostic()
150 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.cpp70 DiagnosticsEngine::Level Level,
77 DiagnosticsEngine::Level Level, in emitDiagnosticLoc()
85 DiagnosticsEngine::Level Level,
91 DiagnosticsEngine::Level Level) override;
93 DiagnosticsEngine::Level Level) override;
164 void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
175 DiagnosticsEngine *getMetaDiags();
200 DiagnosticsEngine::Level Level,
217 unsigned getEmitDiagnosticFlag(DiagnosticsEngine::Level DiagLevel,
300 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.h135 class DiagnosticsEngine : public RefCountedBase<DiagnosticsEngine> {
136 DiagnosticsEngine(const DiagnosticsEngine &) = delete;
137 void operator=(const DiagnosticsEngine &) = delete;
346 explicit DiagnosticsEngine(
351 ~DiagnosticsEngine();
625 void notePriorDiagnosticFrom(const DiagnosticsEngine &Other) { in notePriorDiagnosticFrom()
823 DiagnosticsEngine &Diag;
828 explicit DiagnosticErrorTrap(DiagnosticsEngine &Diag) in DiagnosticErrorTrap()
867 mutable DiagnosticsEngine *DiagObj = nullptr;
882 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/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.h40 class DiagnosticsEngine; variable
184 IntrusiveRefCntPtr<DiagnosticsEngine> Diags =
185 IntrusiveRefCntPtr<DiagnosticsEngine>());
191 DiagnosticsEngine *Diags = nullptr);
195 DiagnosticsEngine &Diags) { in getLastArgIntValue()
201 DiagnosticsEngine *Diags = nullptr);
206 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);
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/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.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()
182 IntrusiveRefCntPtr<DiagnosticsEngine> Diags( in createInvocationForMigration()
183 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()
92 void ClangCheckerRegistry::warnIncompatible(DiagnosticsEngine *diags, in warnIncompatible()
110 DiagnosticsEngine &diags) { in createCheckerManager()
/external/clang/lib/AST/
DMicrosoftMangle.cpp101 MicrosoftMangleContextImpl(ASTContext &Context, DiagnosticsEngine &Diags) in MicrosoftMangleContextImpl()
398 DiagnosticsEngine &Diags = Context.getDiags(); in mangle()
400 DiagnosticsEngine::Error, "cannot mangle this declaration yet"); in mangle()
878 DiagnosticsEngine &Diags = Context.getDiags(); in mangleNestedName()
880 Diags.getCustomDiagID(DiagnosticsEngine::Error, in mangleNestedName()
1042 DiagnosticsEngine &Diags = Context.getDiags(); in mangleOperatorName()
1043 unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error, in mangleOperatorName()
1050 DiagnosticsEngine &Diags = Context.getDiags(); in mangleOperatorName()
1051 unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error, in mangleOperatorName()
1159 DiagnosticsEngine &Diags = Context.getDiags(); in mangleExpression()
[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()
152 explicit ItaniumMangleContext(ASTContext &C, DiagnosticsEngine &D) in ItaniumMangleContext()
175 DiagnosticsEngine &Diags);
180 explicit MicrosoftMangleContext(ASTContext &C, DiagnosticsEngine &D) in MicrosoftMangleContext()
242 DiagnosticsEngine &Diags);

1234567