diff --git a/include/remill/Arch/Arch.h b/include/remill/Arch/Arch.h index 74ee5ca58..c16159961 100644 --- a/include/remill/Arch/Arch.h +++ b/include/remill/Arch/Arch.h @@ -17,12 +17,20 @@ #pragma once // clang-format off -#include "remill/BC/Compat/CTypes.h" +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wsign-conversion" +#pragma clang diagnostic ignored "-Wconversion" +#pragma clang diagnostic ignored "-Wold-style-cast" +#pragma clang diagnostic ignored "-Wdocumentation" +#pragma clang diagnostic ignored "-Wswitch-enum" +#include +#include + #include #include #include #include -#include +#pragma clang diagnostic pop // clang-format on #include diff --git a/include/remill/BC/Annotate.h b/include/remill/BC/Annotate.h index 575c89972..39b3e4b20 100644 --- a/include/remill/BC/Annotate.h +++ b/include/remill/BC/Annotate.h @@ -16,9 +16,16 @@ #pragma once +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wsign-conversion" +#pragma clang diagnostic ignored "-Wconversion" +#pragma clang diagnostic ignored "-Wold-style-cast" +#pragma clang diagnostic ignored "-Wdocumentation" +#pragma clang diagnostic ignored "-Wswitch-enum" #include #include #include +#pragma clang diagnostic pop #include #include diff --git a/include/remill/BC/Optimizer.h b/include/remill/BC/Optimizer.h index 0a5a2e6ac..2906fd9b1 100644 --- a/include/remill/BC/Optimizer.h +++ b/include/remill/BC/Optimizer.h @@ -16,7 +16,14 @@ #pragma once +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wsign-conversion" +#pragma clang diagnostic ignored "-Wconversion" +#pragma clang diagnostic ignored "-Wold-style-cast" +#pragma clang diagnostic ignored "-Wdocumentation" +#pragma clang diagnostic ignored "-Wswitch-enum" #include +#pragma clang diagnostic pop #include #include diff --git a/include/remill/BC/Util.h b/include/remill/BC/Util.h index 41bf783a3..2127da727 100644 --- a/include/remill/BC/Util.h +++ b/include/remill/BC/Util.h @@ -17,11 +17,17 @@ #pragma once // clang-format off -#include "remill/BC/Compat/CTypes.h" +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wsign-conversion" +#pragma clang diagnostic ignored "-Wconversion" +#pragma clang diagnostic ignored "-Wold-style-cast" +#pragma clang diagnostic ignored "-Wdocumentation" +#pragma clang diagnostic ignored "-Wswitch-enum" +#include #include #include #include - +#pragma clang diagnostic pop // clang-format on #include @@ -31,7 +37,7 @@ #include #include -#include "remill/BC/ABI.h" +#include namespace llvm { class Argument; diff --git a/include/remill/BC/Version.h b/include/remill/BC/Version.h index 231af6d68..0b20adaa9 100644 --- a/include/remill/BC/Version.h +++ b/include/remill/BC/Version.h @@ -16,7 +16,14 @@ #pragma once +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wsign-conversion" +#pragma clang diagnostic ignored "-Wconversion" +#pragma clang diagnostic ignored "-Wold-style-cast" +#pragma clang diagnostic ignored "-Wdocumentation" +#pragma clang diagnostic ignored "-Wswitch-enum" #include +#pragma clang diagnostic pop #define LLVM_VERSION(major, minor) ((major * 100) + minor)