File tree Expand file tree Collapse file tree 8 files changed +38
-0
lines changed
templates/ext/rbs_extension Expand file tree Collapse file tree 8 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 88#ifndef RBS_EXTENSION_AST_TRANSLATION_H
99#define RBS_EXTENSION_AST_TRANSLATION_H
1010
11+ #include "compat.h"
12+
13+ SUPPRESS_RUBY_HEADER_DIAGNOSTICS_BEGIN
1114#include "ruby.h"
1215#include "ruby/encoding.h"
16+ SUPPRESS_RUBY_HEADER_DIAGNOSTICS_END
1317
1418#include "rbs/ast.h"
1519#include "rbs/location.h"
Original file line number Diff line number Diff line change 88#ifndef RBS__CONSTANTS_H
99#define RBS__CONSTANTS_H
1010
11+ #include "compat.h"
12+
13+ SUPPRESS_RUBY_HEADER_DIAGNOSTICS_BEGIN
1114#include "ruby.h"
15+ SUPPRESS_RUBY_HEADER_DIAGNOSTICS_END
1216
1317extern VALUE RBS ;
1418
Original file line number Diff line number Diff line change 1+ #ifdef __clang__
2+ #define SUPPRESS_RUBY_HEADER_DIAGNOSTICS_BEGIN \
3+ _Pragma("clang diagnostic push") \
4+ _Pragma("clang diagnostic ignored \"-Wc2x-extensions\"")
5+ #define SUPPRESS_RUBY_HEADER_DIAGNOSTICS_END \
6+ _Pragma("clang diagnostic pop")
7+ #else
8+ #define SUPPRESS_RUBY_HEADER_DIAGNOSTICS_BEGIN
9+ #define SUPPRESS_RUBY_HEADER_DIAGNOSTICS_END
10+ #endif
Original file line number Diff line number Diff line change 11#ifndef RBS_LOCATION_H
22#define RBS_LOCATION_H
33
4+ #include "compat.h"
5+
6+ SUPPRESS_RUBY_HEADER_DIAGNOSTICS_BEGIN
47#include "ruby.h"
8+ SUPPRESS_RUBY_HEADER_DIAGNOSTICS_END
9+
510#include "rbs.h"
611
712/**
Original file line number Diff line number Diff line change 11#include <stdbool.h>
2+ #include "compat.h"
23
4+ SUPPRESS_RUBY_HEADER_DIAGNOSTICS_BEGIN
35#include "ruby.h"
46#include "ruby/re.h"
57#include "ruby/encoding.h"
8+ SUPPRESS_RUBY_HEADER_DIAGNOSTICS_END
69
710#include "class_constants.h"
811#include "rbs.h"
Original file line number Diff line number Diff line change 11#ifndef RBS__RBS_STRING_BRIDGING_H
22#define RBS__RBS_STRING_BRIDGING_H
33
4+ #include "compat.h"
5+
6+ SUPPRESS_RUBY_HEADER_DIAGNOSTICS_BEGIN
47#include "ruby.h"
58#include "ruby/encoding.h"
9+ SUPPRESS_RUBY_HEADER_DIAGNOSTICS_END
610
711#include "rbs/string.h"
812
Original file line number Diff line number Diff line change 11#ifndef RBS_EXTENSION_AST_TRANSLATION_H
22#define RBS_EXTENSION_AST_TRANSLATION_H
33
4+ #include "compat.h"
5+
6+ SUPPRESS_RUBY_HEADER_DIAGNOSTICS_BEGIN
47#include "ruby.h"
58#include "ruby/encoding.h"
9+ SUPPRESS_RUBY_HEADER_DIAGNOSTICS_END
610
711#include "rbs/ast.h"
812#include "rbs/location.h"
Original file line number Diff line number Diff line change 11#ifndef RBS__CONSTANTS_H
22#define RBS__CONSTANTS_H
33
4+ #include "compat.h"
5+
6+ SUPPRESS_RUBY_HEADER_DIAGNOSTICS_BEGIN
47#include "ruby.h"
8+ SUPPRESS_RUBY_HEADER_DIAGNOSTICS_END
59
610extern VALUE RBS;
711
You can’t perform that action at this time.
0 commit comments