Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some #includes #202

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions compiler/back_end/cpp/testcode/enum_case_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
// these tests are regarding the name of enum members, it is likely that if this
// test would fail, it may fail to compile.

#include <cstdint>
#include <array>

#include "gtest/gtest.h"
#include "runtime/cpp/emboss_text_util.h"
#include "testdata/enum_case.emb.h"

namespace emboss {
Expand Down
4 changes: 1 addition & 3 deletions compiler/back_end/cpp/testcode/importer2_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@

// Tests for using types that are imported from imports.

#include <stdint.h>

#include <vector>
#include <cstdint>

#include "gtest/gtest.h"
#include "testdata/importer2.emb.h"
Expand Down
1 change: 0 additions & 1 deletion compiler/back_end/cpp/testcode/no_enum_traits_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include <vector>

#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "testdata/no_enum_traits.emb.h"

Expand Down
2 changes: 2 additions & 0 deletions runtime/cpp/test/emboss_cpp_types_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <cstddef>

#include "runtime/cpp/emboss_cpp_types.h"

#include "gtest/gtest.h"
Expand Down
4 changes: 3 additions & 1 deletion runtime/cpp/test/emboss_memory_util_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@

#include <array>
#include <string>
#include <type_traits>
#include <vector>

#if __cplusplus >= 201703L
#include <cstddef> // std::byte
#include <string_view>
#endif // __cplusplus >= 201703L
#include <vector>

#include "gtest/gtest.h"
#include "runtime/cpp/emboss_memory_util.h"
Expand Down