From 52b1b9f660c4e66bab1eae5fa3243a70be021365 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Wed, 11 Jul 2012 22:14:28 -0700 Subject: [PATCH] More forward decls instead of includes --- cpp/ycm/CandidateRepository.cpp | 1 + cpp/ycm/CandidateRepository.h | 4 ++-- cpp/ycm/IdentifierCompleter.cpp | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cpp/ycm/CandidateRepository.cpp b/cpp/ycm/CandidateRepository.cpp index 5498fd81..f22a1208 100644 --- a/cpp/ycm/CandidateRepository.cpp +++ b/cpp/ycm/CandidateRepository.cpp @@ -16,6 +16,7 @@ // along with YouCompleteMe. If not, see . #include "CandidateRepository.h" +#include "Candidate.h" #include "standard.h" #include "Utils.h" diff --git a/cpp/ycm/CandidateRepository.h b/cpp/ycm/CandidateRepository.h index c56be943..d643c0d3 100644 --- a/cpp/ycm/CandidateRepository.h +++ b/cpp/ycm/CandidateRepository.h @@ -18,8 +18,6 @@ #ifndef CANDIDATEREPOSITORY_H_K9OVCMHG #define CANDIDATEREPOSITORY_H_K9OVCMHG -#include "Candidate.h" - #include #include #include @@ -30,6 +28,8 @@ namespace YouCompleteMe { +class Candidate; + typedef boost::unordered_map< std::string, const Candidate* > CandidateHolder; diff --git a/cpp/ycm/IdentifierCompleter.cpp b/cpp/ycm/IdentifierCompleter.cpp index b0dc7044..a1ad4a81 100644 --- a/cpp/ycm/IdentifierCompleter.cpp +++ b/cpp/ycm/IdentifierCompleter.cpp @@ -18,6 +18,7 @@ #include "IdentifierCompleter.h" #include "standard.h" #include "CandidateRepository.h" +#include "Candidate.h" #include "Utils.h" #include