forked from facebook/kuduraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iwyu: pass source root into fix_includes
fix_includes tries to identify the "main compilation unit header" for each file using some heuristics. For example, "foo-test.cc" is associated with "foo.h". This was previously broken due to the fact that the tool runs from the build/ directory instead of the source directory, so it saw the CC file as "../../src/kudu/.../foo.cc" while it saw the header file as "kudu/.../foo.h". This adds a --source_root parameter to fix_includes so that the source files can be relativized to this path prior to fixing. Change-Id: Iac9f0b47b9a3c8180e178ed59863d33840434433 Reviewed-on: http://gerrit.cloudera.org:8080/10159 Tested-by: Todd Lipcon <[email protected]> Reviewed-by: Alexey Serbin <[email protected]>
- Loading branch information
1 parent
a6280bc
commit 138284e
Showing
2 changed files
with
24 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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