Guest User

Untitled

a guest
Feb 25th, 2018
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.91 KB | None | 0 0
  1. From 6b71e34253038b278faf348c2d70a274707df4aa Mon Sep 17 00:00:00 2001
  2. From: Andrej Rode <mail@andrejro.de>
  3. Date: Tue, 13 Feb 2018 22:34:22 +0100
  4. Subject: [PATCH] iwyu run
  5.  
  6. ---
  7. apps/volk-config-info.cc | 11 +++++++----
  8. apps/volk_option_helpers.cc | 4 +++-
  9. apps/volk_profile.cc | 28 +++++++++++++++-------------
  10. apps/volk_profile.h | 7 +++++++
  11. lib/qa_utils.cc | 42 ++++++++++++++++++++++--------------------
  12. lib/qa_utils.h | 17 ++++++++++-------
  13. lib/testqa.cc | 19 ++++++++++---------
  14. 7 files changed, 74 insertions(+), 54 deletions(-)
  15.  
  16. diff --git a/apps/volk-config-info.cc b/apps/volk-config-info.cc
  17. index 74d6311..6c2d67f 100644
  18. --- a/apps/volk-config-info.cc
  19. +++ b/apps/volk-config-info.cc
  20. @@ -24,10 +24,13 @@
  21. #include <config.h>
  22. #endif
  23.  
  24. -#include <volk/constants.h>
  25. -#include "volk/volk.h"
  26. -#include <iostream>
  27. -#include "volk_option_helpers.h"
  28. +#include <features.h> // for _POSIX_C_SOURCE, _XOPEN_SOURCE
  29. +#include <volk/constants.h> // for volk_available_machines, volk_c_com...
  30. +#include <iostream> // for operator<<, endl, cout, ostream
  31. +#include <string> // for string
  32. +
  33. +#include "volk/volk.h" // for volk_get_alignment, volk_get_machine
  34. +#include "volk_option_helpers.h" // for option_list, option_t
  35.  
  36. void print_alignment()
  37. {
  38. diff --git a/apps/volk_option_helpers.cc b/apps/volk_option_helpers.cc
  39. index c938d90..a941d65 100644
  40. --- a/apps/volk_option_helpers.cc
  41. +++ b/apps/volk_option_helpers.cc
  42. @@ -4,7 +4,9 @@
  43.  
  44. #include "volk_option_helpers.h"
  45.  
  46. -#include <iostream>
  47. +#include <bits/exception.h> // for exception
  48. +#include <iostream> // for operator<<, endl, basic_ostream, cout
  49. +#include <utility> // for pair
  50.  
  51. /*
  52. * Option type
  53. diff --git a/apps/volk_profile.cc b/apps/volk_profile.cc
  54. index 6c64569..de66d2d 100644
  55. --- a/apps/volk_profile.cc
  56. +++ b/apps/volk_profile.cc
  57. @@ -20,21 +20,23 @@
  58. * Boston, MA 02110-1301, USA.
  59. */
  60.  
  61. -#include "qa_utils.h"
  62. -#include "kernel_tests.h"
  63. -#include "volk_option_helpers.h"
  64. +#include <boost/filesystem/operations.hpp> // for create_directories, exists
  65. +#include <boost/filesystem/path.hpp> // for path, operator<<
  66. +#include <boost/filesystem/path_traits.hpp> // for filesystem
  67. +#include <stddef.h> // for size_t
  68. +#include <sys/stat.h> // for stat
  69. +#include <volk/volk_prefs.h> // for volk_get_config_path
  70. +#include <iostream> // for operator<<, basic_ostream
  71. +#include <map> // for map, map<>::iterator
  72. +#include <utility> // for pair
  73. +#include <vector> // for vector, vector<>::const_...
  74. +
  75. +#include "kernel_tests.h" // for init_test_list
  76. +#include "qa_utils.h" // for volk_test_results_t, vol...
  77. +#include "volk/volk_complex.h" // for lv_32fc_t
  78. +#include "volk_option_helpers.h" // for option_list, option_t
  79. #include "volk_profile.h"
  80.  
  81. -#include <volk/volk.h>
  82. -#include <volk/volk_prefs.h>
  83. -
  84. -#include <vector>
  85. -#include <boost/filesystem.hpp>
  86. -#include <iostream>
  87. -#include <fstream>
  88. -#include <sys/stat.h>
  89. -#include <sys/types.h>
  90. -
  91.  
  92. namespace fs = boost::filesystem;
  93.  
  94. diff --git a/apps/volk_profile.h b/apps/volk_profile.h
  95. index 6e717a9..51629ab 100644
  96. --- a/apps/volk_profile.h
  97. +++ b/apps/volk_profile.h
  98. @@ -1,5 +1,12 @@
  99.  
  100.  
  101. +#include <stdbool.h> // for bool
  102. +#include <iosfwd> // for ofstream
  103. +#include <string> // for string
  104. +#include <vector> // for vector
  105. +
  106. +class volk_test_results_t;
  107. +
  108. void read_results(std::vector<volk_test_results_t> *results);
  109. void read_results(std::vector<volk_test_results_t> *results, std::string path);
  110. void write_results(const std::vector<volk_test_results_t> *results, bool update_result);
  111. diff --git a/lib/qa_utils.cc b/lib/qa_utils.cc
  112. index ab8f47a..c654627 100644
  113. --- a/lib/qa_utils.cc
  114. +++ b/lib/qa_utils.cc
  115. @@ -1,25 +1,27 @@
  116. #include "qa_utils.h"
  117.  
  118. -#include <boost/foreach.hpp>
  119. -#include <boost/tokenizer.hpp>
  120. -#include <boost/lexical_cast.hpp>
  121. -#include <boost/typeof/typeof.hpp>
  122. -#include <boost/type_traits.hpp>
  123. -
  124. -#include <iostream>
  125. -#include <cstring>
  126. -#include <fstream>
  127. -#include <vector>
  128. -#include <map>
  129. -#include <list>
  130. -#include <ctime>
  131. -#include <cmath>
  132. -#include <limits>
  133. -
  134. -#include <volk/volk.h>
  135. -#include <volk/volk_cpu.h>
  136. -#include <volk/volk_common.h>
  137. -#include <volk/volk_malloc.h>
  138. +#include <assert.h> // for assert
  139. +#include <bits/stdint-intn.h> // for int16_t, int32_t
  140. +#include <bits/stdint-uintn.h> // for uint16_t, uint64_t
  141. +#include <bits/types/clock_t.h> // for clock_t
  142. +#include <boost/foreach.hpp> // for auto_any_base
  143. +#include <boost/lexical_cast.hpp> // for lexical_cast
  144. +#include <boost/lexical_cast/bad_lexical_cast.hpp> // for bad_lexical_cast
  145. +#include <boost/token_functions.hpp> // for char_separator
  146. +#include <boost/token_iterator.hpp> // for token_iterator
  147. +#include <boost/tokenizer.hpp> // for tokenizer
  148. +#include <sys/time.h> // for CLOCKS_PER_SEC
  149. +#include <sys/types.h> // for int8_t
  150. +#include <volk/volk.h> // for volk_func_desc_t
  151. +#include <volk/volk_malloc.h> // for volk_free, volk_m...
  152. +#include <cmath> // for sqrt, fabs, abs
  153. +#include <cstring> // for memcpy, memset
  154. +#include <ctime> // for clock
  155. +#include <fstream> // for operator<<, basic...
  156. +#include <iostream> // for cout, cerr
  157. +#include <limits> // for numeric_limits
  158. +#include <map> // for map, map<>::mappe...
  159. +#include <vector> // for vector, _Bit_refe...
  160.  
  161. float uniform() {
  162. return 2.0f * ((float) rand() / RAND_MAX - 0.5f); // uniformly (-1, 1)
  163. diff --git a/lib/qa_utils.h b/lib/qa_utils.h
  164. index 3dbc9d5..09924f6 100644
  165. --- a/lib/qa_utils.h
  166. +++ b/lib/qa_utils.h
  167. @@ -1,14 +1,17 @@
  168. #ifndef VOLK_QA_UTILS_H
  169. #define VOLK_QA_UTILS_H
  170.  
  171. -#include <cstdlib>
  172. -#include <string>
  173. -#include <iostream>
  174. -#include <fstream>
  175. -#include <vector>
  176. -#include <map>
  177. -#include <volk/volk.h>
  178. +#include <stdbool.h> // for bool, false
  179. +#include <volk/volk.h> // for volk_func_desc_t
  180. #include <volk/volk_common.h>
  181. +#include <cstdlib> // for NULL
  182. +#include <fstream>
  183. +#include <iostream>
  184. +#include <map> // for map
  185. +#include <string> // for string, basic_string
  186. +#include <vector> // for vector
  187. +
  188. +#include "volk/volk_complex.h" // for lv_32fc_t
  189.  
  190. /************************************************
  191. * VOLK QA type definitions *
  192. diff --git a/lib/testqa.cc b/lib/testqa.cc
  193. index d014a53..183d8db 100644
  194. --- a/lib/testqa.cc
  195. +++ b/lib/testqa.cc
  196. @@ -20,15 +20,16 @@
  197. * Boston, MA 02110-1301, USA.
  198. */
  199.  
  200. -#include "qa_utils.h"
  201. -#include "kernel_tests.h"
  202. -
  203. -#include <volk/volk.h>
  204. -
  205. -#include <vector>
  206. -#include <utility>
  207. -#include <iostream>
  208. -#include <fstream>
  209. +#include <stdbool.h> // for bool, false, true
  210. +#include <iostream> // for operator<<, basic_ostream, endl, char...
  211. +#include <map> // for map, map<>::iterator, _Rb_tree_iterator
  212. +#include <string> // for string, operator<<
  213. +#include <utility> // for pair
  214. +#include <vector> // for vector
  215. +
  216. +#include "kernel_tests.h" // for init_test_list
  217. +#include "qa_utils.h" // for volk_test_case_t, volk_test_results_t
  218. +#include "volk/volk_complex.h" // for lv_32fc_t
  219.  
  220. void print_qa_xml(std::vector<volk_test_results_t> results, unsigned int nfails);
  221.  
  222. --
  223. 2.16.1
Add Comment
Please, Sign In to add comment