You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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)
: Cleanup velox/tool/trace/CMakeLists.txt #11406Action Plans
We will first do IWYU for all source files, starting from the ones need minimal changes, might be velox/common.
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