Changeset View
Changeset View
Standalone View
Standalone View
languages/clang/duchain/parsesession.h
Show All 30 Lines | |||||
31 | 31 | | |||
32 | #include <serialization/indexedstring.h> | 32 | #include <serialization/indexedstring.h> | ||
33 | 33 | | |||
34 | #include <util/path.h> | 34 | #include <util/path.h> | ||
35 | 35 | | |||
36 | #include <language/duchain/problem.h> | 36 | #include <language/duchain/problem.h> | ||
37 | #include <language/interfaces/iastcontainer.h> | 37 | #include <language/interfaces/iastcontainer.h> | ||
38 | 38 | | |||
39 | #include <duchain/clangduchainexport.h> | 39 | #include "clangprivateexport.h" | ||
40 | 40 | | |||
41 | #include "clangparsingenvironment.h" | 41 | #include "clangparsingenvironment.h" | ||
42 | #include "unsavedfile.h" | 42 | #include "unsavedfile.h" | ||
43 | 43 | | |||
44 | class ClangIndex; | 44 | class ClangIndex; | ||
45 | 45 | | |||
46 | class KDEVCLANGDUCHAIN_EXPORT ParseSessionData : public KDevelop::IAstContainer | 46 | class KDEVCLANGPRIVATE_EXPORT ParseSessionData : public KDevelop::IAstContainer | ||
47 | { | 47 | { | ||
48 | public: | 48 | public: | ||
49 | using Ptr = QExplicitlySharedDataPointer<ParseSessionData>; | 49 | using Ptr = QExplicitlySharedDataPointer<ParseSessionData>; | ||
50 | 50 | | |||
51 | enum Option { | 51 | enum Option { | ||
52 | NoOption, ///< No special options | 52 | NoOption, ///< No special options | ||
53 | SkipFunctionBodies, ///< Pass CXTranslationUnit_SkipFunctionBodies (likely unwanted) | 53 | SkipFunctionBodies, ///< Pass CXTranslationUnit_SkipFunctionBodies (likely unwanted) | ||
54 | PrecompiledHeader ///< Pass CXTranslationUnit_PrecompiledPreamble and others to cache precompiled headers | 54 | PrecompiledHeader ///< Pass CXTranslationUnit_PrecompiledPreamble and others to cache precompiled headers | ||
Show All 28 Lines | |||||
83 | }; | 83 | }; | ||
84 | 84 | | |||
85 | /** | 85 | /** | ||
86 | * Thread-safe utility class around a CXTranslationUnit. | 86 | * Thread-safe utility class around a CXTranslationUnit. | ||
87 | * | 87 | * | ||
88 | * It will lock the mutex of the currently set ParseSessionData and thereby ensure | 88 | * It will lock the mutex of the currently set ParseSessionData and thereby ensure | ||
89 | * only one ParseSession can operate on a given CXTranslationUnit stored therein. | 89 | * only one ParseSession can operate on a given CXTranslationUnit stored therein. | ||
90 | */ | 90 | */ | ||
91 | class KDEVCLANGDUCHAIN_EXPORT ParseSession | 91 | class KDEVCLANGPRIVATE_EXPORT ParseSession | ||
92 | { | 92 | { | ||
93 | public: | 93 | public: | ||
94 | /** | 94 | /** | ||
95 | * @return a unique identifier for Clang documents. | 95 | * @return a unique identifier for Clang documents. | ||
96 | */ | 96 | */ | ||
97 | static KDevelop::IndexedString languageString(); | 97 | static KDevelop::IndexedString languageString(); | ||
98 | 98 | | |||
99 | /** | 99 | /** | ||
Show All 40 Lines |