[clang][deps] NFC: Extract function
authorJan Svoboda <jan_svoboda@apple.com>
Fri, 26 Nov 2021 12:39:25 +0000 (13:39 +0100)
committerJan Svoboda <jan_svoboda@apple.com>
Fri, 26 Nov 2021 13:01:24 +0000 (14:01 +0100)
commit97e504cff956b7120da9bd932644b00a853ee68a
treef289d6b8778ed1927a8c4adf221af51f9738904d
parentd35f1190949963f7b22bd687ed0e27e8636f505d
[clang][deps] NFC: Extract function

This commits extracts a couple of nested conditions into a separate function with early returns, making the control flow easier to understand.
clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h
clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp