Commit 5edfdda
misc: Move folly/Hash.h include from Type.h to Type.cpp (#16670)
Summary:
`Type.h` is one of the most widely included headers in the Velox codebase (200+ downstream files). It included `folly/Hash.h`, which expands to preprocessed lines, but `folly::Hash{}` is only used in `Type.cpp`. This PR moves the include to `Type.cpp` where it actually belongs, following the include-what-you-use (IWYU) principle.
Only 3 other files in the codebase directly include `folly/Hash.h`, so this eliminates ~76K preprocessed lines from ~205 translation units.
## Test plan
- Full debug build passes (no compilation errors) on CI
Pull Request resolved: #16670
Differential Revision: D95972466
Pulled By: peterenescu
fbshipit-source-id: 6ea7eefd297387fd7f5f4534f66416085635a9a81 parent 731d8fb commit 5edfdda
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
0 commit comments