fix(clang): keep blanks out of dependency list
@@ -30,6 +30,7 @@ import java.util.Collections;
import java.util.List;
import org.apache.commons.io.FileUtils;
+import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -64,10 +65,12 @@ public class DependenyListFileParser {
final String[] deps = depsListString.split("\\s+");
final List<String> depsList = new ArrayList<>(deps.length);
for (final String includeFile : deps) {
+ if (StringUtils.isNotBlank(includeFile)) {
final String canonicalIncludeFile = toCanonical(includeFile);
logger.trace(String.format("\t%s", canonicalIncludeFile));
depsList.add(canonicalIncludeFile);
}
+ }
return depsList;
}
