Skip to content

Commit

Permalink
Some #include tweaks for clangd
Browse files Browse the repository at this point in the history
Bug: #506
  • Loading branch information
ohodson committed Jun 26, 2023
1 parent ed0be10 commit 376c2f8
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions src/workerd/io/worker.c++
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// https://opensource.org/licenses/Apache-2.0

#include <cstdint>
#include <kj/string.h>
#include <workerd/io/worker.h>
#include <workerd/io/promise-wrapper.h>
#include "actor-cache.h"
Expand Down
4 changes: 2 additions & 2 deletions src/workerd/jsg/function.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
//
// Handles wrapping a C++ function so that it can be called from JavaScript, and vice versa.

#include "wrappable.h"
#include "resource.h" // for ArgumentIndexes
#include <kj/function.h>
#include "resource.h" // for ArgumentIndexes
#include "wrappable.h"

namespace workerd::jsg {

Expand Down
1 change: 1 addition & 0 deletions src/workerd/jsg/iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#pragma once

#include "jsg.h"
#include "struct.h"
#include <concepts>
#include <deque>

Expand Down
5 changes: 2 additions & 3 deletions src/workerd/jsg/promise.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

#pragma once

#include <kj/async.h>
#include "jsg.h"
#include "util.h"
#include "wrappable.h"
#include "jsg.h"
#include "web-idl.h"
#include <kj/async.h>

namespace workerd::jsg {

Expand Down
6 changes: 3 additions & 3 deletions src/workerd/jsg/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
// can call back to the class's methods. This differs from, say, a struct type, which will be deeply
// converted into a JS object when passed into JS.

#include "util.h"
#include "wrappable.h"
#include "jsg.h"
#include <kj/tuple.h>
#include <kj/debug.h>
#include <type_traits>
#include <kj/map.h>
#include "util.h"
#include "wrappable.h"
#include "jsg.h"
#include <typeindex>

namespace std {
Expand Down
3 changes: 2 additions & 1 deletion src/workerd/jsg/rtti.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
// Can be used to generate typescript type, dynamically invoke methods, fuzz, check backward
// compatibility etc.

#include <kj/map.h>
#include <capnp/message.h>
#include <workerd/jsg/jsg.h>
#include <workerd/jsg/rtti.capnp.h>
#include <kj/map.h>

namespace workerd::jsg::rtti {

Expand Down
1 change: 0 additions & 1 deletion src/workerd/jsg/value.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#include "util.h"
#include "wrappable.h"
#include "jsg.h"
#include "web-idl.h"
#include <kj/time.h>
#include <kj/debug.h>
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/jsg/web-idl.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
namespace workerd::jsg {
class UsvString;
class UsvStringPtr;
} // namespace workerd::cjfs
} // namespace workerd::jsg

namespace workerd::jsg::webidl {

Expand Down

0 comments on commit 376c2f8

Please sign in to comment.