Changeset View
Changeset View
Standalone View
Standalone View
languages/clang/duchain/duchainutils.h
Show All 15 Lines | |||||
16 | * | 16 | * | ||
17 | * You should have received a copy of the GNU General Public License | 17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef DUCHAINUTILS_H | 21 | #ifndef DUCHAINUTILS_H | ||
22 | #define DUCHAINUTILS_H | 22 | #define DUCHAINUTILS_H | ||
23 | 23 | | |||
24 | #include <duchain/clangduchainexport.h> | 24 | #include "clangprivateexport.h" | ||
25 | 25 | | |||
26 | #include "duchain/parsesession.h" | 26 | #include "duchain/parsesession.h" | ||
27 | 27 | | |||
28 | namespace KTextEditor { | 28 | namespace KTextEditor { | ||
29 | class Range; | 29 | class Range; | ||
30 | } | 30 | } | ||
31 | 31 | | |||
32 | namespace KDevelop { | 32 | namespace KDevelop { | ||
33 | class Declaration; | 33 | class Declaration; | ||
34 | } | 34 | } | ||
35 | 35 | | |||
36 | namespace ClangIntegration { | 36 | namespace ClangIntegration { | ||
37 | namespace DUChainUtils | 37 | namespace DUChainUtils | ||
38 | { | 38 | { | ||
39 | 39 | | |||
40 | KDEVCLANGDUCHAIN_EXPORT KTextEditor::Range functionSignatureRange(const KDevelop::Declaration* decl); | 40 | KDEVCLANGPRIVATE_EXPORT KTextEditor::Range functionSignatureRange(const KDevelop::Declaration* decl); | ||
41 | 41 | | |||
42 | KDEVCLANGDUCHAIN_EXPORT void registerDUChainItems(); | 42 | KDEVCLANGPRIVATE_EXPORT void registerDUChainItems(); | ||
43 | KDEVCLANGDUCHAIN_EXPORT void unregisterDUChainItems(); | 43 | KDEVCLANGPRIVATE_EXPORT void unregisterDUChainItems(); | ||
44 | 44 | | |||
45 | /** | 45 | /** | ||
46 | * Finds attached parse session data (aka AST) to the @p file | 46 | * Finds attached parse session data (aka AST) to the @p file | ||
47 | * | 47 | * | ||
48 | * If no session data found, then @p tuFile asked for the attached session data | 48 | * If no session data found, then @p tuFile asked for the attached session data | ||
49 | */ | 49 | */ | ||
50 | ParseSessionData::Ptr findParseSessionData(const KDevelop::IndexedString &file, const KDevelop::IndexedString &tufile); | 50 | KDEVCLANGPRIVATE_EXPORT ParseSessionData::Ptr findParseSessionData(const KDevelop::IndexedString &file, const KDevelop::IndexedString &tufile); | ||
51 | 51 | | |||
52 | }; | 52 | }; | ||
53 | 53 | | |||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | #endif // DUCHAINUTILS_H | 56 | #endif // DUCHAINUTILS_H |