2014-01-13 14:08:43 -05:00
|
|
|
// Copyright (C) 2011, 2012 Google Inc.
|
2012-07-22 18:19:28 -04:00
|
|
|
//
|
|
|
|
// 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 <clang-c/Index.h>
|
2014-01-04 23:44:13 -05:00
|
|
|
#include <string>
|
2012-07-22 18:19:28 -04:00
|
|
|
|
2013-01-19 23:03:32 -05:00
|
|
|
namespace YouCompleteMe {
|
2012-07-22 18:19:28 -04:00
|
|
|
|
2012-09-06 15:09:32 -04:00
|
|
|
std::string CXStringToString( CXString text );
|
|
|
|
|
2013-03-31 23:38:29 -04:00
|
|
|
bool CursorIsValid( CXCursor cursor );
|
|
|
|
|
|
|
|
bool CursorIsReference( CXCursor cursor );
|
|
|
|
|
|
|
|
bool CursorIsDeclaration( CXCursor cursor );
|
|
|
|
|
|
|
|
std::string CXFileToFilepath( CXFile file );
|
|
|
|
|
2013-01-26 14:44:42 -05:00
|
|
|
std::string ClangVersion();
|
|
|
|
|
2012-07-22 18:19:28 -04:00
|
|
|
} // namespace YouCompleteMe
|
|
|
|
|
|
|
|
#endif /* end of include guard: CLANGUTILS_H_9MVHQLJS */
|
|
|
|
|