r374439 - [ScanDeps] clang-format, 80 cols.
Michael J. Spencer via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 10 13:19:02 PDT 2019
Author: mspencer
Date: Thu Oct 10 13:19:02 2019
New Revision: 374439
URL: http://llvm.org/viewvc/llvm-project?rev=374439&view=rev
Log:
[ScanDeps] clang-format, 80 cols.
Modified:
cfe/trunk/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
Modified: cfe/trunk/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp?rev=374439&r1=374438&r2=374439&view=diff
==============================================================================
--- cfe/trunk/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp (original)
+++ cfe/trunk/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp Thu Oct 10 13:19:02 2019
@@ -123,8 +123,9 @@ DependencyScanningFilesystemSharedCache:
}
llvm::ErrorOr<const CachedFileSystemEntry *>
-DependencyScanningWorkerFilesystem::getOrCreateFileSystemEntry(const StringRef Filename) {
- if (const CachedFileSystemEntry* Entry = getCachedEntry(Filename)) {
+DependencyScanningWorkerFilesystem::getOrCreateFileSystemEntry(
+ const StringRef Filename) {
+ if (const CachedFileSystemEntry *Entry = getCachedEntry(Filename)) {
return Entry;
}
@@ -164,7 +165,8 @@ llvm::ErrorOr<llvm::vfs::Status>
DependencyScanningWorkerFilesystem::status(const Twine &Path) {
SmallString<256> OwnedFilename;
StringRef Filename = Path.toStringRef(OwnedFilename);
- const llvm::ErrorOr<const CachedFileSystemEntry *> Result = getOrCreateFileSystemEntry(Filename);
+ const llvm::ErrorOr<const CachedFileSystemEntry *> Result =
+ getOrCreateFileSystemEntry(Filename);
if (!Result)
return Result.getError();
return (*Result)->getStatus();
@@ -224,7 +226,8 @@ DependencyScanningWorkerFilesystem::open
SmallString<256> OwnedFilename;
StringRef Filename = Path.toStringRef(OwnedFilename);
- const llvm::ErrorOr<const CachedFileSystemEntry *> Result = getOrCreateFileSystemEntry(Filename);
+ const llvm::ErrorOr<const CachedFileSystemEntry *> Result =
+ getOrCreateFileSystemEntry(Filename);
if (!Result)
return Result.getError();
return createFile(Result.get(), PPSkipMappings);
More information about the cfe-commits
mailing list