| 82 | ClangProblem::ClangProblem() = default; |
| 83 | |
| 84 | ClangProblem::ClangProblem(const ClangProblem& other) |
| 85 | : Problem(), |
| 86 | m_fixits(other.m_fixits) |
| 87 | { |
| 88 | setSource(other.source()); |
| 89 | setFinalLocation(other.finalLocation()); |
| 90 | setFinalLocationMode(other.finalLocationMode()); |
| 91 | setDescription(other.description()); |
| 92 | setExplanation(other.explanation()); |
| 93 | setSeverity(other.severity()); |
| 94 | |
| 95 | auto diagnostics = other.diagnostics(); |
| 96 | for (auto& diagnostic : diagnostics) { |
| 97 | auto* clangDiagnostic = dynamic_cast<ClangProblem*>(diagnostic.data()); |
| 98 | Q_ASSERT(clangDiagnostic); |
| 99 | diagnostic = ClangProblem::Ptr(new ClangProblem(*clangDiagnostic)); |
| 100 | } |
| 101 | setDiagnostics(diagnostics); |
| 102 | } |
| 103 | |
| 104 | ClangProblem::ClangProblem(CXDiagnostic diagnostic, CXTranslationUnit unit) |
| 105 | { |
nothing calls this directly
no test coverage detected