Commit 88b0bc4d9571eddf84e16ea90da2a2d1de467a98

Authored by Christoph Bachhuber
Committed by Henry Schreiner
1 parent ffe5b29e

Add include_what_you_use to cpplint checks (#414)

* Add build/include_what_you_use to cpplint checks

* Fix all cpplint build/include_what_you_use issues
CPPLINT.cfg
... ... @@ -9,6 +9,6 @@ filter=-whitespace/blank_line # Unnecessarily strict with blank lines that othe
9 9 filter=-whitespace/parens,-whitespace/braces # Conflict with clang-format
10 10  
11 11 # Filters to be included in future
12   -filter=-whitespace/indent,-whitespace/comments,-readability/braces,-build/include_what_you_use
  12 +filter=-whitespace/indent,-whitespace/comments,-readability/braces
13 13 filter=-legal/copyright # Remove this line after Version 1.9
14 14  
... ...
include/CLI/App.hpp
... ... @@ -10,6 +10,7 @@
10 10 #include <iterator>
11 11 #include <memory>
12 12 #include <numeric>
  13 +#include <set>
13 14 #include <sstream>
14 15 #include <string>
15 16 #include <utility>
... ...
include/CLI/Config.hpp
... ... @@ -7,6 +7,8 @@
7 7 #include <fstream>
8 8 #include <iostream>
9 9 #include <string>
  10 +#include <utility>
  11 +#include <vector>
10 12  
11 13 #include "CLI/App.hpp"
12 14 #include "CLI/ConfigFwd.hpp"
... ...
include/CLI/ConfigFwd.hpp
... ... @@ -7,6 +7,7 @@
7 7 #include <fstream>
8 8 #include <iostream>
9 9 #include <string>
  10 +#include <vector>
10 11  
11 12 #include "CLI/Error.hpp"
12 13 #include "CLI/StringTools.hpp"
... ...
include/CLI/Error.hpp
... ... @@ -7,6 +7,7 @@
7 7 #include <stdexcept>
8 8 #include <string>
9 9 #include <utility>
  10 +#include <vector>
10 11  
11 12 // CLI library includes
12 13 #include "CLI/StringTools.hpp"
... ...
include/CLI/Formatter.hpp
... ... @@ -3,7 +3,9 @@
3 3 // Distributed under the 3-Clause BSD License. See accompanying
4 4 // file LICENSE or https://github.com/CLIUtils/CLI11 for details.
5 5  
  6 +#include <algorithm>
6 7 #include <string>
  8 +#include <vector>
7 9  
8 10 #include "CLI/App.hpp"
9 11 #include "CLI/FormatterFwd.hpp"
... ...
include/CLI/FormatterFwd.hpp
... ... @@ -6,6 +6,7 @@
6 6 #include <map>
7 7 #include <string>
8 8 #include <utility>
  9 +#include <vector>
9 10  
10 11 #include "CLI/StringTools.hpp"
11 12  
... ...
include/CLI/Split.hpp
... ... @@ -5,6 +5,7 @@
5 5  
6 6 #include <string>
7 7 #include <tuple>
  8 +#include <utility>
8 9 #include <vector>
9 10  
10 11 #include "CLI/Error.hpp"
... ...
include/CLI/TypeTools.hpp
... ... @@ -9,6 +9,7 @@
9 9 #include <memory>
10 10 #include <string>
11 11 #include <type_traits>
  12 +#include <utility>
12 13 #include <vector>
13 14  
14 15 namespace CLI {
... ...
include/CLI/Validators.hpp
... ... @@ -15,6 +15,8 @@
15 15 #include <map>
16 16 #include <memory>
17 17 #include <string>
  18 +#include <utility>
  19 +#include <vector>
18 20  
19 21 // [CLI11:verbatim]
20 22  
... ...