2012-07-22 18:19:28 -04:00
|
|
|
// Copyright (C) 2011, 2012 Strahinja Val Markovic <val@markovic.io>
|
|
|
|
//
|
|
|
|
// This file is part of YouCompleteMe.
|
|
|
|
//
|
|
|
|
// YouCompleteMe is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// YouCompleteMe is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with YouCompleteMe. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
#ifndef CLANGUTILS_H_9MVHQLJS
|
|
|
|
#define CLANGUTILS_H_9MVHQLJS
|
|
|
|
|
2012-08-02 01:09:31 -04:00
|
|
|
#include "Diagnostic.h"
|
|
|
|
#include "CompletionData.h"
|
|
|
|
#include "UnsavedFile.h"
|
|
|
|
|
2012-07-22 18:19:28 -04:00
|
|
|
#include <vector>
|
2012-08-02 01:09:31 -04:00
|
|
|
#include <clang-c/Index.h>
|
2012-07-22 18:19:28 -04:00
|
|
|
|
|
|
|
namespace YouCompleteMe
|
|
|
|
{
|
|
|
|
|
2012-09-06 15:09:32 -04:00
|
|
|
std::string CXStringToString( CXString text );
|
|
|
|
|
2012-08-02 01:09:31 -04:00
|
|
|
std::vector< CompletionData > ToCompletionDataVector(
|
|
|
|
CXCodeCompleteResults *results );
|
2012-07-22 18:19:28 -04:00
|
|
|
|
2012-08-02 01:09:31 -04:00
|
|
|
std::vector< CXUnsavedFile > ToCXUnsavedFiles(
|
|
|
|
const std::vector< UnsavedFile > &unsaved_files );
|
2012-07-22 18:19:28 -04:00
|
|
|
|
2012-08-02 01:09:31 -04:00
|
|
|
Diagnostic CXDiagnosticToDiagnostic( CXDiagnostic cxdiagnostic );
|
2012-07-22 18:19:28 -04:00
|
|
|
|
|
|
|
} // namespace YouCompleteMe
|
|
|
|
|
|
|
|
#endif /* end of include guard: CLANGUTILS_H_9MVHQLJS */
|
|
|
|
|