Skip to content

Commit

Permalink
Automatic code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 373063761
  • Loading branch information
Googler authored and copybara-github committed May 11, 2021
1 parent 339700e commit 7caa01f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ class IncludeScannerHelper {
}

/**
* Finds {@code source} in the given {@includePaths} as if it were #included as {@include}.
* Finds {@code source} in the given {@code includePaths} as if it were #included as {@code
* include}.
*
* @return the index in {@includePaths} a #include_next directive should start searching from,
* or -1 if the source file was not found.
* @return the index in {@code includePaths} a #include_next directive should start searching
* from, or -1 if the source file was not found.
*/
private static int findContextPathPos(PathFragment include, Artifact source,
List<PathFragment> includePaths) {
private static int findContextPathPos(
PathFragment include, Artifact source, List<PathFragment> includePaths) {
for (int i = 0; i < includePaths.size(); ++i) {
PathFragment execPath = includePaths.get(i);
if (execPath.getRelative(include).equals(source.getExecPath())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ private static int skipParentheses(byte[] chars, int pos, int end) {
return pos;
}

@Override
/** See javadoc for {@link IncludeParser#getFileType()} */
@Override
protected GrepIncludesFileType getFileType() {
return GrepIncludesFileType.SWIG;
}
Expand Down

0 comments on commit 7caa01f

Please sign in to comment.