Commit dc93bf69 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[cleanup] add diagnostics to ignore warning triggered by clang include in v7.0

parent 2a52daa1
......@@ -25,6 +25,10 @@
// Implementation of the ACSL++ lexer.
//
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#endif
#include <sstream>
#include <climits>
#include <string>
......@@ -39,6 +43,9 @@
#include "clang/Sema/Lookup.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Lex/MacroArgs.h"
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include "ACSLLexer.h"
#include "intermediate_format.h"
......
......@@ -25,6 +25,10 @@
// Implementation of the ACSL++ parser.
//
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#endif
#include "clang/Basic/Version.h"
#include "llvm/ADT/SmallString.h"
#include "clang/AST/ASTContext.h"
......@@ -34,6 +38,9 @@
#include "clang/Sema/Lookup.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Lex/MacroArgs.h"
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include "ACSLParser.h"
......
......@@ -25,6 +25,10 @@
// Definition of a translator clang -> intermediate_format (-> cabs -> cil).
//
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#endif
#include "clang/AST/ASTContext.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/APValue.h"
......@@ -43,6 +47,10 @@
#include <sstream>
#include <cstddef>
#include <list>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include "ClangVisitor.h"
void
......
......@@ -36,10 +36,17 @@
#include <set>
#include <map>
#include <functional>
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#endif
#include "clang/Basic/Version.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/DeclTemplate.h"
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
extern "C" {
#include "intermediate_format.h"
......
......@@ -25,6 +25,10 @@
// Definition of a translator clang -> intermediate_format (-> cabs -> cil).
//
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#endif
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/ASTConsumer.h"
......@@ -48,6 +52,9 @@
#include <sstream>
#include <cstddef>
#include <list>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include "ClangVisitor.h"
......
......@@ -52,7 +52,8 @@ OBJS=\
DEPS=$(OBJS:.o=.d)
CXXFLAGS?=$(CLANG_CXXFLAGS)
CXXFLAGS+=-Wno-enum-compare -DCLANG_BIN_DIR=\"$(CLANG_BIN_DIR)\" -Wall
CXXFLAGS+=-DCLANG_BIN_DIR=\"$(CLANG_BIN_DIR)\" \
-Wall -Wno-comment -Wno-enum-compare
CFLAGS?=$(CLANG_CFLAGS)
CFLAGS+=-Wno-enum-compare
......
......@@ -28,8 +28,16 @@
#ifndef Table_RTTIH
#define Table_RTTIH
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#endif
#include <list>
#include "clang/AST/DeclCXX.h"
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include "Clang_utils.h"
extern "C" {
......
......@@ -28,7 +28,15 @@
#ifndef Visit_TableH
#define Visit_TableH
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#endif
#include "clang/AST/DeclCXX.h"
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include "Clang_utils.h"
extern "C" {
......
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