Changeset View
Changeset View
Standalone View
Standalone View
languages/clang/duchain/clangdiagnosticevaluator.h
Show All 16 Lines | |||||
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 | 21 | | |||
22 | #ifndef CLANGDIAGNOSTICEVALUATOR_H | 22 | #ifndef CLANGDIAGNOSTICEVALUATOR_H | ||
23 | #define CLANGDIAGNOSTICEVALUATOR_H | 23 | #define CLANGDIAGNOSTICEVALUATOR_H | ||
24 | 24 | | |||
25 | #include <duchain/clangduchainexport.h> | 25 | #include "clangprivateexport.h" | ||
26 | 26 | | |||
27 | #include <clang-c/Index.h> | 27 | #include <clang-c/Index.h> | ||
28 | 28 | | |||
29 | class ClangProblem; | 29 | class ClangProblem; | ||
30 | 30 | | |||
31 | namespace ClangDiagnosticEvaluator { | 31 | namespace ClangDiagnosticEvaluator { | ||
32 | KDEVCLANGDUCHAIN_EXPORT ClangProblem* createProblem(CXDiagnostic diagnostic, CXTranslationUnit unit); | 32 | KDEVCLANGPRIVATE_EXPORT ClangProblem* createProblem(CXDiagnostic diagnostic, CXTranslationUnit unit); | ||
33 | 33 | | |||
34 | enum DiagnosticType { | 34 | enum DiagnosticType { | ||
35 | Unknown, | 35 | Unknown, | ||
36 | UnknownDeclarationProblem, | 36 | UnknownDeclarationProblem, | ||
37 | IncludeFileNotFoundProblem, | 37 | IncludeFileNotFoundProblem, | ||
38 | ReplaceWithDotProblem, | 38 | ReplaceWithDotProblem, | ||
39 | ReplaceWithArrowProblem | 39 | ReplaceWithArrowProblem | ||
40 | }; | 40 | }; | ||
41 | 41 | | |||
42 | /** | 42 | /** | ||
43 | * @return Type of @p diagnostic | 43 | * @return Type of @p diagnostic | ||
44 | * @sa DiagnosticType | 44 | * @sa DiagnosticType | ||
45 | */ | 45 | */ | ||
46 | KDEVCLANGDUCHAIN_EXPORT DiagnosticType diagnosticType(CXDiagnostic diagnostic); | 46 | KDEVCLANGPRIVATE_EXPORT DiagnosticType diagnosticType(CXDiagnostic diagnostic); | ||
47 | } | 47 | } | ||
48 | 48 | | |||
49 | #endif // CLANGDIAGNOSTICEVALUATOR_H | 49 | #endif // CLANGDIAGNOSTICEVALUATOR_H |