More forward decls instead of includes

This commit is contained in:
Strahinja Val Markovic 2012-07-11 22:14:28 -07:00
parent dad2fc31bb
commit 52b1b9f660
3 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,7 @@
// along with YouCompleteMe. If not, see <http://www.gnu.org/licenses/>. // along with YouCompleteMe. If not, see <http://www.gnu.org/licenses/>.
#include "CandidateRepository.h" #include "CandidateRepository.h"
#include "Candidate.h"
#include "standard.h" #include "standard.h"
#include "Utils.h" #include "Utils.h"

View File

@ -18,8 +18,6 @@
#ifndef CANDIDATEREPOSITORY_H_K9OVCMHG #ifndef CANDIDATEREPOSITORY_H_K9OVCMHG
#define CANDIDATEREPOSITORY_H_K9OVCMHG #define CANDIDATEREPOSITORY_H_K9OVCMHG
#include "Candidate.h"
#include <boost/utility.hpp> #include <boost/utility.hpp>
#include <boost/unordered_map.hpp> #include <boost/unordered_map.hpp>
#include <boost/thread/mutex.hpp> #include <boost/thread/mutex.hpp>
@ -30,6 +28,8 @@
namespace YouCompleteMe namespace YouCompleteMe
{ {
class Candidate;
typedef boost::unordered_map< std::string, const Candidate* > typedef boost::unordered_map< std::string, const Candidate* >
CandidateHolder; CandidateHolder;

View File

@ -18,6 +18,7 @@
#include "IdentifierCompleter.h" #include "IdentifierCompleter.h"
#include "standard.h" #include "standard.h"
#include "CandidateRepository.h" #include "CandidateRepository.h"
#include "Candidate.h"
#include "Utils.h" #include "Utils.h"
#include <boost/bind.hpp> #include <boost/bind.hpp>