[clang-tools-extra] r330327 - [clang-tidy] Fix unused-variable warning.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 19 06:34:03 PDT 2018
Author: hokein
Date: Thu Apr 19 06:34:03 2018
New Revision: 330327
URL: http://llvm.org/viewvc/llvm-project?rev=330327&view=rev
Log:
[clang-tidy] Fix unused-variable warning.
Modified:
clang-tools-extra/trunk/clang-tidy/ClangTidyOptions.cpp
Modified: clang-tools-extra/trunk/clang-tidy/ClangTidyOptions.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/ClangTidyOptions.cpp?rev=330327&r1=330326&r2=330327&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/ClangTidyOptions.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/ClangTidyOptions.cpp Thu Apr 19 06:34:03 2018
@@ -230,7 +230,8 @@ FileOptionsProvider::getRawOptions(Strin
assert(FS && "FS must be set.");
llvm::SmallString<128> AbsoluteFilePath(FileName);
- if (std::error_code ec = FS->makeAbsolute(AbsoluteFilePath))
+
+ if (FS->makeAbsolute(AbsoluteFilePath))
return {};
std::vector<OptionsSource> RawOptions =
More information about the cfe-commits
mailing list