VideoCore: Run include-what-you-use and fix most includes.

This commit is contained in:
Emmanuel Gil Peyrot 2016-04-30 16:34:51 +01:00
parent 387d935a54
commit 691a42fe98
45 changed files with 234 additions and 86 deletions

View file

@ -186,5 +186,5 @@ private:
#pragma pack()
#if (__GNUC__ >= 5) || defined(__clang__) || defined(_MSC_VER)
static_assert(std::is_trivially_copyable<BitField<0, 1, u32>>::value, "BitField must be trivially copyable");
static_assert(std::is_trivially_copyable<BitField<0, 1, unsigned>>::value, "BitField must be trivially copyable");
#endif

View file

@ -7,6 +7,7 @@
#include <intrin.h>
#endif
#include <initializer_list>
#include <new>
#include <type_traits>
#include "common/common_types.h"
@ -186,4 +187,4 @@ public:
typedef Common::BitSet<u8> BitSet8;
typedef Common::BitSet<u16> BitSet16;
typedef Common::BitSet<u32> BitSet32;
typedef Common::BitSet<u64> BitSet64;
typedef Common::BitSet<u64> BitSet64;

View file

@ -4,8 +4,10 @@
#pragma once
#include "common_types.h"
#include "memory_util.h"
#include <cstddef>
#include "common/common_types.h"
#include "common/memory_util.h"
// Everything that needs to generate code should inherit from this.
// You get memory management for free, plus, you can use all emitter functions without

View file

@ -4,6 +4,10 @@
#pragma once
#if !defined(ARCHITECTURE_x86_64) && !defined(_M_ARM)
#include <cstdlib> // for exit
#endif
#include "common_types.h"
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))

View file

@ -7,9 +7,9 @@
#include <array>
#include <fstream>
#include <functional>
#include <cstddef>
#include <cstdio>
#include <string>
#include <type_traits>
#include <vector>
#include "common/common_types.h"

View file

@ -17,6 +17,8 @@
#pragma once
#include <cstddef>
#include "common/assert.h"
#include "common/bit_set.h"
#include "common/common_types.h"