[clang-tools-extra] bcda877 - Fix a compile error to get bots back to green.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 17 06:56:13 PST 2020
Author: Aaron Ballman
Date: 2020-01-17T09:56:04-05:00
New Revision: bcda877b43093459dc52747d35abe0019f8e22e0
URL: https://github.com/llvm/llvm-project/commit/bcda877b43093459dc52747d35abe0019f8e22e0
DIFF: https://github.com/llvm/llvm-project/commit/bcda877b43093459dc52747d35abe0019f8e22e0.diff
LOG: Fix a compile error to get bots back to green.
Fixes http://lab.llvm.org:8011/builders/clang-x64-windows-msvc/builds/13716
Added:
Modified:
clang-tools-extra/clang-tidy/bugprone/ReservedIdentifierCheck.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/bugprone/ReservedIdentifierCheck.cpp b/clang-tools-extra/clang-tidy/bugprone/ReservedIdentifierCheck.cpp
index 699f46dd2722..4f49aea1c9ba 100644
--- a/clang-tools-extra/clang-tidy/bugprone/ReservedIdentifierCheck.cpp
+++ b/clang-tools-extra/clang-tidy/bugprone/ReservedIdentifierCheck.cpp
@@ -130,12 +130,12 @@ getFailureInfoImpl(StringRef Name, bool IsInGlobalNamespace,
.getValueOr(Name);
};
if (auto Fixup = getDoubleUnderscoreFixup(InProgressFixup(), LangOpts))
- AppendFailure(DoubleUnderscoreTag, *std::move(Fixup));
+ AppendFailure(DoubleUnderscoreTag, std::move(*Fixup));
if (auto Fixup = getUnderscoreCapitalFixup(InProgressFixup()))
- AppendFailure(UnderscoreCapitalTag, *std::move(Fixup));
+ AppendFailure(UnderscoreCapitalTag, std::move(*Fixup));
if (auto Fixup = getUnderscoreGlobalNamespaceFixup(InProgressFixup(),
IsInGlobalNamespace))
- AppendFailure(GlobalUnderscoreTag, *std::move(Fixup));
+ AppendFailure(GlobalUnderscoreTag, std::move(*Fixup));
return Info;
}
More information about the cfe-commits
mailing list