blob: 89d3f62661475d34aa650a652db119ef05e7075c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/**
* \file
* \brief Wrapper around Clang Indexing Public C Interface header.
*
* This file is distributed under the GNU General Public License. See
* COPYING for details.
*/
#ifndef IRONY_MODE_SERVER_SUPPORT_CINDEXVERSION_H_
#define IRONY_MODE_SERVER_SUPPORT_CINDEXVERSION_H_
#include <clang-c/Index.h>
/// Use <tt>\#if CINDEX_VERSION_VERSION > 10047</tt> to test for
/// CINDEX_VERSION_MAJOR = 1 and CINDEX_VERSION_MINOR = 47.
#ifndef CINDEX_VERSION
#define CINDEX_VERSION 0 // pre-clang 3.2 support
#endif
#if CINDEX_VERSION >= 6
#define HAS_BRIEF_COMMENTS_IN_COMPLETION 1
#else
#define HAS_BRIEF_COMMENTS_IN_COMPLETION 0
#endif
#if CINDEX_VERSION >= 6
#define HAS_COMPILATION_DATABASE 1
#include <clang-c/CXCompilationDatabase.h>
#else
#define HAS_COMPILATION_DATABASE 0
#endif
#endif /* !IRONY_MODE_SERVER_SUPPORT_CINDEXVERSION_H_ */
|