Skip to content

Commit

Permalink
Add optional includes.
Browse files Browse the repository at this point in the history
  • Loading branch information
fruffy committed Mar 27, 2023
1 parent ba4256c commit b9cefa3
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions backends/dpdk/control-plane/bfruntime_arch_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ limitations under the License.
#define DPDK_CONTROL_PLANE_BFRUNTIME_ARCH_HANDLER_H_

#include <iostream>
#include <optional>
#include <set>
#include <unordered_map>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions backends/graphs/graphs.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ limitations under the License.
#endif

#include <map>
#include <optional>
#include <utility> // std::pair
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions backends/p4tools/common/core/solver.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef BACKENDS_P4TOOLS_COMMON_CORE_SOLVER_H_
#define BACKENDS_P4TOOLS_COMMON_CORE_SOLVER_H_

#include <optional>
#include <vector>

#include "backends/p4tools/common/lib/formulae.h"
Expand Down
1 change: 1 addition & 0 deletions control-plane/bfruntime.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ limitations under the License.
#include <iosfwd>
#include <iterator>
#include <limits>
#include <optional>
#include <ostream>
#include <regex>
#include <sstream>
Expand Down
1 change: 1 addition & 0 deletions control-plane/bytestrings.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
#ifndef CONTROL_PLANE_BYTESTRINGS_H_
#define CONTROL_PLANE_BYTESTRINGS_H_

#include <optional>
#include <string>

#include "lib/big_int_util.h"
Expand Down
1 change: 1 addition & 0 deletions control-plane/p4RuntimeArchHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#include <optional>
#include <sstream> // for std::ostringstream

#include "frontends/common/resolveReferences/referenceMap.h"
Expand Down
1 change: 1 addition & 0 deletions control-plane/p4RuntimeArchHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
#ifndef CONTROL_PLANE_P4RUNTIMEARCHHANDLER_H_
#define CONTROL_PLANE_P4RUNTIMEARCHHANDLER_H_

#include <optional>
#include <set>

#pragma GCC diagnostic push
Expand Down
1 change: 1 addition & 0 deletions control-plane/p4RuntimeArchStandard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ limitations under the License.

#include "p4RuntimeArchStandard.h"

#include <optional>
#include <set>
#include <unordered_map>

Expand Down
2 changes: 2 additions & 0 deletions control-plane/p4RuntimeSerializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ limitations under the License.
#include "p4/v1/p4runtime.pb.h"
#pragma GCC diagnostic pop

#include <optional>

#include <boost/algorithm/string.hpp>
#include <boost/range/adaptor/reversed.hpp>

Expand Down
1 change: 1 addition & 0 deletions frontends/common/applyOptionsPragmas.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
#ifndef FRONTENDS_COMMON_APPLYOPTIONSPRAGMAS_H_
#define FRONTENDS_COMMON_APPLYOPTIONSPRAGMAS_H_

#include <optional>
#include <vector>

#include "ir/ir.h"
Expand Down
1 change: 1 addition & 0 deletions frontends/common/parseInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ limitations under the License.

#include <cstdio>
#include <iostream>
#include <optional>
#include <sstream>

#include "frontends/p4/fromv1.0/converters.h"
Expand Down
2 changes: 2 additions & 0 deletions frontends/p4/externInstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ limitations under the License.
#ifndef _FRONTENDS_P4_EXTERNINSTANCE_H_
#define _FRONTENDS_P4_EXTERNINSTANCE_H_

#include <optional>

#include "frontends/p4/parameterSubstitution.h"
#include "lib/cstring.h"

Expand Down
1 change: 1 addition & 0 deletions frontends/p4/typeChecking/typeConstraints.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
#ifndef _TYPECHECKING_TYPECONSTRAINTS_H_
#define _TYPECHECKING_TYPECONSTRAINTS_H_

#include <optional>
#include <sstream>

#include <boost/algorithm/string.hpp>
Expand Down
1 change: 1 addition & 0 deletions ir/json_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ limitations under the License.
#define _IR_JSON_GENERATOR_H_

#include <cassert>
#include <optional>
#include <string>
#include <unordered_set>

Expand Down
1 change: 1 addition & 0 deletions ir/json_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ limitations under the License.
#include <assert.h>

#include <map>
#include <optional>
#include <string>
#include <unordered_map>
#include <utility>
Expand Down
1 change: 1 addition & 0 deletions test/gtest/complex_bitwise.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <boost/algorithm/string/replace.hpp>
#include <optional>

#include "gtest/gtest.h"
#include "ir/ir.h"
Expand Down
1 change: 1 addition & 0 deletions test/gtest/diagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
#include <vector>

#include <boost/algorithm/string/replace.hpp>
#include <optional>

#include "gtest/gtest.h"

Expand Down
1 change: 1 addition & 0 deletions test/gtest/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ limitations under the License.

#include <string>

#include <optional>

#include "frontends/common/options.h"
#include "frontends/p4/parseAnnotations.h"
Expand Down
1 change: 1 addition & 0 deletions test/gtest/p4runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ limitations under the License.
#include <vector>

#include <boost/algorithm/string/replace.hpp>
#include <optional>

#include "control-plane/p4/config/v1/p4info.pb.h"
#include "control-plane/p4/config/v1/p4types.pb.h"
Expand Down

0 comments on commit b9cefa3

Please sign in to comment.