Replies: 1 comment 1 reply
-
@PHILO-HE useful to Gluten? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Propose to 1) adopt Include-What-You-Use (IWYU) for header files, and 2) link what-you-use in CMakeList.
Benefits
add_executable(velox_query_replayer TraceReplayerMain.cpp TraceReplayRunner.cpp)
Action Plans
We will first do IWYU for all source files, starting from the ones need minimal changes, might be
velox/common
. The header file order would follow the global-to-local in #7723. Also, use forward declaration, instead of including a header file, wherever possible.Then make changes to CMakeList.
Link-what-you-use in CMakeList
Each header, along its cpp file, is a micro library, and only link what uses according to IWYU in source file. See examples blow.
We would provide Python scripts to
Although Velox uses
velox_add_library
andvelox_link_libraries
, we could adapt to that.Note that we might have cyclic dependencies need to break, so expect some code breakdown, and we will discuss the design before we proceed.
Beta Was this translation helpful? Give feedback.
All reactions