1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 12:40:35 +00:00

Clean includes

This commit is contained in:
Carles Fernandez 2018-02-24 00:53:55 +01:00
parent 702257e678
commit 77c4ea9b25
8 changed files with 80 additions and 44 deletions

View File

@ -20,10 +20,11 @@
#include <config.h> #include <config.h>
#endif #endif
#include <volk_gnsssdr/constants.h> #include <volk_gnsssdr/constants.h> // for volk_gnsssdr_available_machines, volk_gnsssdr_c_compiler ...
#include "volk_gnsssdr/volk_gnsssdr.h" #include <iostream> // for operator<<, endl, cout, ostream
#include <iostream> #include <string> // for string
#include "volk_gnsssdr_option_helpers.h" #include "volk_gnsssdr/volk_gnsssdr.h" // for volk_gnsssdr_get_alignment, volk_gnsssdr_get_machine
#include "volk_gnsssdr_option_helpers.h" // for option_list, option_t
void print_alignment() void print_alignment()
{ {

View File

@ -17,8 +17,14 @@
*/ */
#include "volk_gnsssdr_option_helpers.h" #include "volk_gnsssdr_option_helpers.h"
#include <climits> // IWYU pragma: keep
#include <cstdlib> // IWYU pragma: keep
#include <cstring> // IWYU pragma: keep
#include <exception> // for exception
#include <iostream> // for operator<<, endl, basic_ostream, cout, ostream
#include <utility> // for pair
#include <iostream>
/* /*
* Option type * Option type

View File

@ -19,9 +19,13 @@
#ifndef VOLK_VOLK_OPTION_HELPERS_H #ifndef VOLK_VOLK_OPTION_HELPERS_H
#define VOLK_VOLK_OPTION_HELPERS_H #define VOLK_VOLK_OPTION_HELPERS_H
#include <climits>
#include <cstring>
#include <map>
#include <string> #include <string>
#include <vector> #include <vector>
typedef enum typedef enum
{ {
VOID_CALLBACK, VOID_CALLBACK,

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2010-2015 (see AUTHORS file for a list of contributors) /* Copyright (C) 2010-2018 (see AUTHORS file for a list of contributors)
* *
* This file is part of GNSS-SDR. * This file is part of GNSS-SDR.
* *
@ -16,19 +16,24 @@
* along with GNSS-SDR. If not, see <http://www.gnu.org/licenses/>. * along with GNSS-SDR. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qa_utils.h"
#include "kernel_tests.h" #include <sys/stat.h> // for stat
#include "volk_gnsssdr_option_helpers.h" #include <cstddef> // for size_t
#include <iostream> // for operator<<, basic_ostream
#include <fstream> // IWYU pragma: keep
#include <map> // for map, map<>::iterator
#include <utility> // for pair
#include <vector> // for vector, vector<>::const_...
#include <boost/filesystem/operations.hpp> // for create_directories, exists
#include <boost/filesystem/path.hpp> // for path, operator<<
#include <boost/filesystem/path_traits.hpp> // for filesystem
#include <volk_gnsssdr/volk_gnsssdr_prefs.h> // for volk_gnsssdr_get_config_path
#include "kernel_tests.h" // for init_test_list
#include "qa_utils.h" // for volk_gnsssdr_test_results_t
#include "volk_gnsssdr/volk_gnsssdr_complex.h" // for lv_32fc_t
#include "volk_gnsssdr_option_helpers.h" // for option_list, option_t
#include "volk_gnsssdr_profile.h" #include "volk_gnsssdr_profile.h"
#include <volk_gnsssdr/volk_gnsssdr.h>
#include <volk_gnsssdr/volk_gnsssdr_prefs.h>
#include <vector>
#include <boost/filesystem.hpp>
#include <iostream>
#include <fstream>
#include <sys/stat.h>
namespace fs = boost::filesystem; namespace fs = boost::filesystem;
@ -222,7 +227,7 @@ void write_results(const std::vector<volk_gnsssdr_test_results_t> *results, bool
const fs::path config_path(path); const fs::path config_path(path);
// Until we can update the config on a kernel by kernel basis // Until we can update the config on a kernel by kernel basis
// do not overwrite volk_gnsssdr_config when using a regex. // do not overwrite volk_gnsssdr_config when using a regex.
if (not fs::exists(config_path.branch_path())) if (! fs::exists(config_path.branch_path()))
{ {
std::cout << "Creating " << config_path.branch_path() << " ..." << std::endl; std::cout << "Creating " << config_path.branch_path() << " ..." << std::endl;
fs::create_directories(config_path.branch_path()); fs::create_directories(config_path.branch_path());

View File

@ -27,6 +27,12 @@
* ------------------------------------------------------------------------- * -------------------------------------------------------------------------
*/ */
#include <cstdbool> // for bool
#include <iosfwd> // for ofstream
#include <string> // for string
#include <vector> // for vector
class volk_test_results_t;
void read_results(std::vector<volk_gnsssdr_test_results_t> *results); void read_results(std::vector<volk_gnsssdr_test_results_t> *results);

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2010-2015 (see AUTHORS file for a list of contributors) /* Copyright (C) 2010-2018 (see AUTHORS file for a list of contributors)
* *
* This file is part of GNSS-SDR. * This file is part of GNSS-SDR.
* *
@ -17,13 +17,25 @@
*/ */
#include "qa_utils.h" #include "qa_utils.h"
#include <chrono> #include <cassert> // for assert
#include <random> #include <chrono> // for system_clock, duration,...
#include <boost/foreach.hpp> #include <cmath> // for sqrt, fabs, abs
#include <boost/tokenizer.hpp> #include <cstdint> // for uint16_t, uint64_t,int16_t, int32_t
#include <boost/lexical_cast.hpp> #include <cstring> // for memcpy, memset
#include <volk_gnsssdr/volk_gnsssdr_cpu.h> #include <fstream> // for operator<<
#include <volk_gnsssdr/volk_gnsssdr_malloc.h> #include <iostream> // for cout, cerr
#include <limits> // for numeric_limits
#include <map> // for map
#include <random> // for random_device, default_random_engine, uniform_real_distribution
#include <vector> // for vector
#include <boost/foreach.hpp> // for auto_any_base
#include <boost/lexical_cast.hpp> // for lexical_cast
#include <boost/token_functions.hpp> // for char_separator
#include <boost/token_iterator.hpp> // for token_iterator
#include <boost/tokenizer.hpp> // for tokenizer
#include <volk_gnsssdr/volk_gnsssdr.h> // for volk_gnsssdr_func_desc_t
#include <volk_gnsssdr/volk_gnsssdr_malloc.h> // for volk_gnsssdr_free, volk_gnsssdr_malloc
float uniform() { float uniform() {
std::random_device r; std::random_device r;

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2010-2015 (see AUTHORS file for a list of contributors) /* Copyright (C) 2010-2018 (see AUTHORS file for a list of contributors)
* *
* This file is part of GNSS-SDR. * This file is part of GNSS-SDR.
* *
@ -23,13 +23,14 @@
#define _DARWIN_C_SOURCE #define _DARWIN_C_SOURCE
#endif #endif
#include <string> #include <cstdbool> // for bool, false
#include <iostream> #include <cstdlib> // for NULL
#include <fstream> #include <map> // for map
#include <vector> #include <string> // for string, basic_string
#include <map> #include <vector> // for vector
#include <volk_gnsssdr/volk_gnsssdr.h> #include <volk_gnsssdr/volk_gnsssdr.h> // for volk_gnsssdr_func_desc_t
#include <volk_gnsssdr/volk_gnsssdr_common.h> #include "volk_gnsssdr/volk_gnsssdr_complex.h" // for lv_32fc_t
/************************************************ /************************************************
* VOLK QA type definitions * * VOLK QA type definitions *

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2010-2015 (see AUTHORS file for a list of contributors) * Copyright (C) 2010-2018 (see AUTHORS file for a list of contributors)
* *
* This file is part of GNSS-SDR. * This file is part of GNSS-SDR.
* *
@ -18,15 +18,16 @@
*/ */
#include "qa_utils.h" #include <cstdbool> // for bool, false, true
#include "kernel_tests.h" #include <iostream> // for operator<<, basic_ostream, endl, char...
#include <fstream> // IWYU pragma: keep
#include <volk_gnsssdr/volk_gnsssdr.h> #include <map> // for map, map<>::iterator, _Rb_tree_iterator
#include <string> // for string, operator<<
#include <vector> #include <utility> // for pair
#include <utility> #include <vector> // for vector
#include <iostream> #include "kernel_tests.h" // for init_test_list
#include <fstream> #include "qa_utils.h" // for volk_gnsssdr_test_case_t, volk_gnsssdr_test_results_t
#include "volk_gnsssdr/volk_gnsssdr_complex.h" // for lv_32fc_t
void print_qa_xml(std::vector<volk_gnsssdr_test_results_t> results, unsigned int nfails); void print_qa_xml(std::vector<volk_gnsssdr_test_results_t> results, unsigned int nfails);