| 44 | #endif |
| 45 | |
| 46 | QList<ProblemPointer> parse(const QByteArray& code) |
| 47 | { |
| 48 | ClangIndex index; |
| 49 | ClangParsingEnvironment environment; |
| 50 | environment.setTranslationUnitUrl(IndexedString(FileName)); |
| 51 | ParseSession session(ParseSessionData::Ptr(new ParseSessionData({UnsavedFile(FileName, {code})}, |
| 52 | &index, environment))); |
| 53 | return session.problemsForFile(session.mainFile()); |
| 54 | } |
| 55 | |
| 56 | void compareFixitWithoutDescription(const ClangFixit& a, const ClangFixit& b) |
| 57 | { |
no test coverage detected