Commit b82fd22e authored by Kevin Modzelewski's avatar Kevin Modzelewski

Enable -Wmismatched-tags

parent f337e148
......@@ -203,7 +203,7 @@ CLANG_DEPS := $(CLANGPP_EXE) $(abspath $(dir $(CLANGPP_EXE))/../../built_release
# settings to make clang and ccache play nicely:
CLANG_CCACHE_FLAGS := -Qunused-arguments
CLANG_EXTRA_FLAGS := -Wno-mismatched-tags -enable-tbaa -ferror-limit=$(ERROR_LIMIT) $(CLANG_CCACHE_FLAGS)
CLANG_EXTRA_FLAGS := -enable-tbaa -ferror-limit=$(ERROR_LIMIT) $(CLANG_CCACHE_FLAGS)
ifeq ($(COLOR),1)
CLANG_EXTRA_FLAGS += -fcolor-diagnostics
else
......
......@@ -128,7 +128,7 @@ public:
};
class ICSetupInfo;
class CompiledFunction;
struct CompiledFunction;
void registerCompiledPatchpoint(CompiledFunction* cf, uint8_t* start_addr, uint8_t* slowpath_start_addr,
uint8_t* continue_addr, uint8_t* slowpath_rtn_addr, const ICSetupInfo*,
StackInfo stack_info, std::unordered_set<int> live_outs);
......
......@@ -26,7 +26,7 @@ namespace pyston {
class TypeRecorder;
class ICInfo;
class ICSlotInfo;
struct ICSlotInfo;
class ICSlotRewrite;
class ICInvalidator;
......
......@@ -19,7 +19,6 @@ namespace pyston {
class AST_Module;
class BoxedModule;
class CompiledFunction;
void initCodegen();
void teardownCodegen();
......
......@@ -19,7 +19,7 @@
namespace pyston {
class CompiledFunction;
struct CompiledFunction;
class CLFunction;
class OSRExit;
......
......@@ -34,7 +34,7 @@ namespace pyston {
class CFGBlock;
class GCBuilder;
class PatchpointInfo;
struct PatchpointInfo;
class ScopeInfo;
class TypeAnalysis;
......
......@@ -27,7 +27,7 @@ class GCVisitor;
class Box;
class BoxedDict;
class LineInfo;
struct LineInfo;
Box* interpretFunction(llvm::Function* f, int nargs, Box* closure, Box* generator, Box* arg1, Box* arg2, Box* arg3,
Box** args);
......
......@@ -24,7 +24,7 @@ class Function;
namespace pyston {
class StackMap;
struct StackMap;
class OSREntryDescriptor {
private:
......
......@@ -25,7 +25,7 @@
namespace pyston {
class CompiledFunction;
struct CompiledFunction;
class CompilerType;
struct StackMap;
class TypeRecorder;
......
......@@ -121,7 +121,7 @@ class BoxedModule;
class BoxedFunction;
class ICGetattr;
class ICSlotInfo;
struct ICSlotInfo;
class CFG;
class AST;
......@@ -253,7 +253,7 @@ public:
};
typedef std::vector<CompiledFunction*> FunctionList;
class CallRewriteArgs;
struct CallRewriteArgs;
class CLFunction {
public:
int num_args;
......@@ -386,9 +386,9 @@ public:
class HiddenClass;
extern HiddenClass* root_hcls;
class SetattrRewriteArgs;
class GetattrRewriteArgs;
class DelattrRewriteArgs;
struct SetattrRewriteArgs;
struct GetattrRewriteArgs;
struct DelattrRewriteArgs;
struct HCAttrs {
public:
......
......@@ -103,7 +103,7 @@ constexpr const size_t sizes[] = {
};
#define NUM_BUCKETS (sizeof(sizes) / sizeof(sizes[0]))
class LargeObj;
struct LargeObj;
class Heap {
private:
Block* heads[NUM_BUCKETS];
......@@ -127,7 +127,7 @@ private:
}
~ThreadBlockCache();
};
friend class ThreadBlockCache;
friend struct ThreadBlockCache;
// TODO only use thread caches if we're in GRWL mode?
threading::PerThreadSet<ThreadBlockCache, Heap*> thread_caches;
......
......@@ -81,13 +81,13 @@ extern "C" bool isSubclass(BoxedClass* child, BoxedClass* parent);
extern "C" BoxedClosure* createClosure(BoxedClosure* parent_closure);
extern "C" Box* getiter(Box* o);
class SetattrRewriteArgs;
struct SetattrRewriteArgs;
void setattrInternal(Box* obj, const std::string& attr, Box* val, SetattrRewriteArgs* rewrite_args);
class BinopRewriteArgs;
struct BinopRewriteArgs;
extern "C" Box* binopInternal(Box* lhs, Box* rhs, int op_type, bool inplace, BinopRewriteArgs* rewrite_args);
class CallRewriteArgs;
struct CallRewriteArgs;
Box* typeCallInternal(BoxedFunction* f, CallRewriteArgs* rewrite_args, ArgPassSpec argspec, Box* arg1, Box* arg2,
Box* arg3, Box** args, const std::vector<const std::string*>* keyword_names);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment