Skip to content

Commit 2fb076e

Browse files
authored
Merge pull request #1731 from r-lib/headers
Make rlang clangd-okay
2 parents 6f102ce + 44289ac commit 2fb076e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+496
-369
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ revdep/cloud.noindex
99
src/config.h
1010
docs/
1111
.vscode
12+
compile_commands.json
13+
.cache

src/Makevars

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ internal-files = \
5656
internal/fn.c \
5757
internal/globals.c \
5858
internal/hash.c \
59-
internal/init.c \
6059
internal/internal.c \
6160
internal/names.c \
6261
internal/nse-defuse.c \

src/internal/arg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <rlang.h>
2+
#include "globals.h"
23
#include "internal.h"
34
#include "nse-inject.h"
45
#include "utils.h"

src/internal/call.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include <rlang.h>
22
#include "internal.h"
33
#include "decl/call-decl.h"
4+
#include "utils.h"
5+
#include "vec.h"
46

57

68
r_obj* ffi_is_call(r_obj* x, r_obj* name, r_obj* ffi_n, r_obj* ns) {

src/internal/decl/.clangd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Diagnostics:
2+
Suppress: '*'

src/internal/decl/vec-decl.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ bool list_match(r_obj* const * v_x,
33
r_ssize n,
44
r_obj* value,
55
enum option_bool match);
6+
7+
r_obj* rlang_ns_get(const char* name);
8+
9+
// From rlang/vec.c
10+
void r_vec_poke_n(r_obj* x, r_ssize offset,
11+
r_obj* y, r_ssize from, r_ssize n);

src/internal/dots.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "internal.h"
55
#include "squash.h"
66
#include "utils.h"
7-
#include "vec.h"
87

98
enum dots_homonyms {
109
DOTS_HOMONYMS_keep = 0,

src/internal/dots.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#ifndef RLANG_INTERNAL_DOTS_H
22
#define RLANG_INTERNAL_DOTS_H
33

4+
#include <rlang.h>
5+
6+
bool is_splice_box(r_obj* x);
7+
r_obj* rlang_unbox(r_obj* x);
48

59
enum dots_collect {
610
DOTS_COLLECT_expr,

src/internal/env-binding.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include <rlang.h>
22
#include "internal.h"
3+
#include "env.h"
4+
#include "quo.h"
35

46
#include "decl/env-decl.h"
57

src/internal/eval-tidy.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#include <rlang.h>
2+
#include "env.h"
23
#include "internal.h"
4+
#include "quo.h"
5+
#include "utils.h"
36

47

58
static r_obj* quo_mask_flag_sym = NULL;

0 commit comments

Comments
 (0)