diff --git a/cpp/include/ray/api.h b/cpp/include/ray/api.h index de97ce5dd..24ba96f84 100644 --- a/cpp/include/ray/api.h +++ b/cpp/include/ray/api.h @@ -233,10 +233,21 @@ inline ActorTaskCaller Ray::CallActorInternal(FuncType &actor_func, return ActorTaskCaller(runtime_, actor.ID(), ptr, buffer); } -#include -#include -#include +// TODO(barakmich): These includes are generated files that do not contain their +// relevant headers. Since they're only used here, they must appear in this +// particular order, which is a code smell and breaks lint. +// +// The generated files, and their generator, should be fixed. Until then, we can +// force the order by way of comments +// +// #1 #include +// #2 +#include +// #3 +#include +// #4 +#include } // namespace api } // namespace ray