MCPcopy Create free account
hub / github.com/KDE/kdevelop / parse

Function parse

plugins/clang/tests/test_problems.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44#endif
45
46QList<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
56void compareFixitWithoutDescription(const ClangFixit& a, const ClangFixit& b)
57{

Callers 10

testNoProblemsMethod · 0.70
testBasicProblemsMethod · 0.70
testBasicRangeSupportMethod · 0.70
testChildDiagnosticsMethod · 0.70
testFixitsMethod · 0.70
testRangesMethod · 0.70
testSeverityMethod · 0.70
availableSessionInfosMethod · 0.50
SessionPrivateMethod · 0.50
parseAndWaitMethod · 0.50

Calls 4

setTranslationUnitUrlMethod · 0.80
problemsForFileMethod · 0.80
mainFileMethod · 0.80
IndexedStringClass · 0.50

Tested by

no test coverage detected