misc header cleanup

This commit is contained in:
Jacob Dufault 2017-03-25 13:24:42 -07:00
parent 695048baa7
commit 5d922a1e90
7 changed files with 16 additions and 14 deletions

View File

@ -1,13 +1,14 @@
#include "buffer.h" #include "buffer.h"
#include "platform.h"
#include "utils.h"
#include <doctest/doctest.h>
#include <cstdlib> #include <cstdlib>
#include <mutex> #include <mutex>
#include <thread> #include <thread>
#include "platform.h"
#include "utils.h"
#include "../third_party/doctest/doctest/doctest.h"
namespace { namespace {
struct ScopedLockLocal : public ScopedLock { struct ScopedLockLocal : public ScopedLock {

View File

@ -4,6 +4,10 @@
#include <thread> #include <thread>
#include <vector> #include <vector>
#include <doctest/doctest.h>
#include <rapidjson/istreamwrapper.h>
#include <rapidjson/ostreamwrapper.h>
// TODO: cleanup includes // TODO: cleanup includes
#include "compilation_database_loader.h" #include "compilation_database_loader.h"
#include "indexer.h" #include "indexer.h"
@ -14,11 +18,7 @@
#include "threaded_queue.h" #include "threaded_queue.h"
#include "typed_bidi_message_queue.h" #include "typed_bidi_message_queue.h"
#include "../third_party/doctest/doctest/doctest.h" // TODO: move to platform
#include <rapidjson/istreamwrapper.h>
#include <rapidjson/ostreamwrapper.h>
#ifdef _WIN32 #ifdef _WIN32
#include <io.h> #include <io.h>
#include <fcntl.h> #include <fcntl.h>

View File

@ -1,2 +1,2 @@
#define DOCTEST_CONFIG_IMPLEMENT #define DOCTEST_CONFIG_IMPLEMENT
#include "../third_party/doctest/doctest/doctest.h" #include <doctest/doctest.h>

View File

@ -5,10 +5,11 @@
#include <iostream> #include <iostream>
#include <thread> #include <thread>
#include <doctest/doctest.h>
#include "platform.h" #include "platform.h"
#include "resizable_buffer.h" #include "resizable_buffer.h"
#include "utils.h" #include "utils.h"
#include "../third_party/doctest/doctest/doctest.h"
// TODO: figure out a logging solution // TODO: figure out a logging solution
//#define MESSAGE_QUEUE_LOG //#define MESSAGE_QUEUE_LOG

View File

@ -2,7 +2,7 @@
#include <thread> #include <thread>
#include "../third_party/doctest/doctest/doctest.h" #include <doctest/doctest.h>
PlatformMutex::~PlatformMutex() = default; PlatformMutex::~PlatformMutex() = default;

View File

@ -1,6 +1,6 @@
#include "resizable_buffer.h" #include "resizable_buffer.h"
#include "../third_party/doctest/doctest/doctest.h" #include <doctest/doctest.h>
#include <cassert> #include <cassert>
#include <cstdint> #include <cstdint>

View File

@ -4,7 +4,7 @@
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>
#include "../third_party/tinydir.h" #include <tinydir.h>
static std::vector<std::string> GetFilesInFolderHelper(std::string folder, bool recursive, std::string output_prefix) { static std::vector<std::string> GetFilesInFolderHelper(std::string folder, bool recursive, std::string output_prefix) {
std::vector<std::string> result; std::vector<std::string> result;