File indexing completed on 2024-05-12 04:39:11
0001 /* 0002 SPDX-FileCopyrightText: 2014 Kevin Funk <kfunk@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #ifndef CLANGDIAGNOSTICEVALUATOR_H 0008 #define CLANGDIAGNOSTICEVALUATOR_H 0009 0010 #include "clangprivateexport.h" 0011 0012 #include <clang-c/Index.h> 0013 0014 class ClangProblem; 0015 0016 namespace ClangDiagnosticEvaluator { 0017 KDEVCLANGPRIVATE_EXPORT ClangProblem* createProblem(CXDiagnostic diagnostic, CXTranslationUnit unit); 0018 0019 enum DiagnosticType { 0020 Unknown, 0021 UnknownDeclarationProblem, 0022 IncludeFileNotFoundProblem, 0023 ReplaceWithDotProblem, 0024 ReplaceWithArrowProblem 0025 }; 0026 0027 /** 0028 * @return Type of @p diagnostic 0029 * @sa DiagnosticType 0030 */ 0031 KDEVCLANGPRIVATE_EXPORT DiagnosticType diagnosticType(CXDiagnostic diagnostic); 0032 } 0033 0034 #endif // CLANGDIAGNOSTICEVALUATOR_H