Changeset View
Changeset View
Standalone View
Standalone View
plugins/clang/duchain/parsesession.h
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 69 | private: | |||
---|---|---|---|---|---|
74 | QMutex m_mutex; | 74 | QMutex m_mutex; | ||
75 | 75 | | |||
76 | CXFile m_file = nullptr; | 76 | CXFile m_file = nullptr; | ||
77 | CXTranslationUnit m_unit = nullptr; | 77 | CXTranslationUnit m_unit = nullptr; | ||
78 | ClangParsingEnvironment m_environment; | 78 | ClangParsingEnvironment m_environment; | ||
79 | /// TODO: share this file for all TUs that use the same defines (probably most in a project) | 79 | /// TODO: share this file for all TUs that use the same defines (probably most in a project) | ||
80 | /// best would be a PCH, if possible | 80 | /// best would be a PCH, if possible | ||
81 | QTemporaryFile m_definesFile; | 81 | QTemporaryFile m_definesFile; | ||
82 | // cached ProblemPointer representation for diagnostics | ||||
83 | QVector<KDevelop::ProblemPointer> m_diagnosticsCache; | ||||
kfunk: `m_diagnostics` -> `m_diagnosticsCache` for readability? | |||||
82 | }; | 84 | }; | ||
83 | 85 | | |||
84 | /** | 86 | /** | ||
85 | * Thread-safe utility class around a CXTranslationUnit. | 87 | * Thread-safe utility class around a CXTranslationUnit. | ||
86 | * | 88 | * | ||
87 | * It will lock the mutex of the currently set ParseSessionData and thereby ensure | 89 | * It will lock the mutex of the currently set ParseSessionData and thereby ensure | ||
88 | * only one ParseSession can operate on a given CXTranslationUnit stored therein. | 90 | * only one ParseSession can operate on a given CXTranslationUnit stored therein. | ||
89 | */ | 91 | */ | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |
m_diagnostics -> m_diagnosticsCache for readability?