src/drt/src/global.h is very generic; rename#10611
Merged
maliberty merged 1 commit intoJun 8, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request renames the header file 'global.h' to 'drt-global.h' and updates its inclusion across various source and header files in the 'drt' tool. The review feedback suggests renaming 'global.cpp' to 'drt-global.cpp' for consistency and ensuring that any references in 'CMakeLists.txt' are updated to prevent build failures.
| "src/frRegionQuery.h", | ||
| "src/gc/FlexGC.h", | ||
| "src/global.h", | ||
| "src/drt-global.h", |
Contributor
| #include "db/obj/frMPin.h" | ||
| #include "db/obj/frMarker.h" | ||
| #include "db/obj/frMaster.h" | ||
| #include "drt-global.h" |
Contributor
`src/drt/src/global.h` is often used witout any prefix at all (so just included as "global.h"), which is conflicing if there happens to be e.g. `@abc` in the include path (which also has a `"global.h"`. It also makes the current cyclic dependencies to fix a bit more confusing. Rename to `drt-global.h` to have an unambiguous name. Signed-off-by: Henner Zeller <h.zeller@acm.org>
5844d13 to
60accdb
Compare
maliberty
approved these changes
Jun 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
src/drt/src/global.his often used witout any prefix at all (so just included as "global.h"), which is conflicing if there happens to be e.g.@abcin the include path (which also has a"global.h". It also makes the current cyclic dependencies to fix a bit more confusing.Rename to
drt-global.hto have an unambiguous name.