<>
structMappingTraits<
clang::tooling::FileByteRange> {
32Io.mapRequired(
"FilePath", R.
FilePath);
33Io.mapRequired(
"FileOffset", R.
FileOffset);
34Io.mapRequired(
"Length", R.
Length);
38template<>
structMappingTraits<
clang::tooling::DiagnosticMessage> {
40Io.mapRequired(
"Message", M.
Message);
41Io.mapOptional(
"FilePath", M.
FilePath);
42Io.mapOptional(
"FileOffset", M.
FileOffset);
43std::vector<clang::tooling::Replacement> Fixes;
44 for(
auto&Replacements : M.
Fix) {
45llvm::append_range(Fixes, Replacements.second);
47Io.mapRequired(
"Replacements", Fixes);
48 for(
auto&Fix : Fixes) {
49llvm::Error Err = M.
Fix[Fix.getFilePath()].add(Fix);
52llvm::errs() <<
"Fix conflicts with existing fix: " 53<< llvm::toString(std::move(Err)) <<
"\n";
56Io.mapOptional(
"Ranges", M.
Ranges);
60template<>
structMappingTraits<
clang::tooling::Diagnostic> {
63 classNormalizedDiagnostic {
66: DiagLevel(
clang::tooling::Diagnostic::Level::Warning) {}
69: DiagnosticName(
D.DiagnosticName), Message(
D.Message), Notes(
D.Notes),
70DiagLevel(
D.DiagLevel), BuildDirectory(
D.BuildDirectory) {}
74DiagLevel, BuildDirectory);
85MappingNormalization<NormalizedDiagnostic, clang::tooling::Diagnostic> Keys(
87Io.mapRequired(
"DiagnosticName", Keys->DiagnosticName);
88Io.mapRequired(
"DiagnosticMessage", Keys->Message);
89Io.mapOptional(
"Notes", Keys->Notes);
90Io.mapOptional(
"Level", Keys->DiagLevel);
91Io.mapOptional(
"BuildDirectory", Keys->BuildDirectory);
97template<>
structMappingTraits<
clang::tooling::TranslationUnitDiagnostics> {
100Io.mapRequired(
"Diagnostics", Doc.
Diagnostics);
104template<>
structScalarEnumerationTraits<
clang::tooling::Diagnostic::Level> {
This file defines the structure of a YAML document for serializing replacements.
The JSON file list parser is used to communicate input to InstallAPI.
Diagnostic wrappers for TextAPI types for error reporting.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4