Skip to content

Commit b594527

Browse files
rebase
Created using spr 1.3.6
2 parents af9686f + d1a3b15 commit b594527

File tree

217 files changed

+6359
-2628
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+6359
-2628
lines changed

bolt/include/bolt/Core/MCPlusBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ class MCPlusBuilder {
405405

406406
bool equals(const MCExpr &A, const MCExpr &B, CompFuncTy Comp) const;
407407

408-
virtual bool equals(const MCTargetExpr &A, const MCTargetExpr &B,
408+
virtual bool equals(const MCSpecifierExpr &A, const MCSpecifierExpr &B,
409409
CompFuncTy Comp) const;
410410

411411
virtual bool isBranch(const MCInst &Inst) const {

bolt/lib/Core/HashUtilities.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ std::string hashExpr(BinaryContext &BC, const MCExpr &Expr) {
6767
.append(hashInteger(BinaryExpr.getOpcode()))
6868
.append(hashExpr(BC, *BinaryExpr.getRHS()));
6969
}
70+
case MCExpr::Specifier:
7071
case MCExpr::Target:
7172
return std::string();
7273
}

bolt/lib/Core/MCPlusBuilder.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,19 @@ bool MCPlusBuilder::equals(const MCExpr &A, const MCExpr &B,
114114
equals(*BinaryA.getRHS(), *BinaryB.getRHS(), Comp);
115115
}
116116

117-
case MCExpr::Target: {
118-
const auto &TargetExprA = cast<MCTargetExpr>(A);
119-
const auto &TargetExprB = cast<MCTargetExpr>(B);
117+
case MCExpr::Specifier: {
118+
const auto &TargetExprA = cast<MCSpecifierExpr>(A);
119+
const auto &TargetExprB = cast<MCSpecifierExpr>(B);
120120
return equals(TargetExprA, TargetExprB, Comp);
121121
}
122+
case MCExpr::Target:
123+
llvm_unreachable("Not implemented");
122124
}
123125

124126
llvm_unreachable("Invalid expression kind!");
125127
}
126128

127-
bool MCPlusBuilder::equals(const MCTargetExpr &A, const MCTargetExpr &B,
129+
bool MCPlusBuilder::equals(const MCSpecifierExpr &A, const MCSpecifierExpr &B,
128130
CompFuncTy Comp) const {
129131
llvm_unreachable("target-specific expressions are unsupported");
130132
}

bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
177177
return true;
178178
}
179179

180-
bool equals(const MCTargetExpr &A, const MCTargetExpr &B,
180+
bool equals(const MCSpecifierExpr &A, const MCSpecifierExpr &B,
181181
CompFuncTy Comp) const override {
182182
const auto &AArch64ExprA = cast<AArch64MCExpr>(A);
183183
const auto &AArch64ExprB = cast<AArch64MCExpr>(B);

bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class RISCVMCPlusBuilder : public MCPlusBuilder {
3131
public:
3232
using MCPlusBuilder::MCPlusBuilder;
3333

34-
bool equals(const MCTargetExpr &A, const MCTargetExpr &B,
34+
bool equals(const MCSpecifierExpr &A, const MCSpecifierExpr &B,
3535
CompFuncTy Comp) const override {
3636
const auto &RISCVExprA = cast<RISCVMCExpr>(A);
3737
const auto &RISCVExprB = cast<RISCVMCExpr>(B);

clang-tools-extra/clang-doc/HTMLMustacheGenerator.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,8 @@ static json::Value extractValue(const EnumInfo &I,
364364
Object Obj = Object();
365365
std::string EnumType = I.Scoped ? "enum class " : "enum ";
366366
EnumType += I.Name;
367-
bool HasComment = std::any_of(
368-
I.Members.begin(), I.Members.end(),
369-
[](const EnumValueInfo &M) { return !M.Description.empty(); });
367+
bool HasComment = llvm::any_of(
368+
I.Members, [](const EnumValueInfo &M) { return !M.Description.empty(); });
370369
Obj.insert({"EnumName", EnumType});
371370
Obj.insert({"HasComment", HasComment});
372371
Obj.insert({"ID", toHex(toStringRef(I.USR))});

clang-tools-extra/clang-move/Move.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ class DeclarationReporter {
4949
bool Templated = false; // Whether the declaration is templated.
5050
};
5151

52-
const std::vector<Declaration> getDeclarationList() const {
53-
return DeclarationList;
54-
}
52+
ArrayRef<Declaration> getDeclarationList() const { return DeclarationList; }
5553

5654
private:
5755
std::vector<Declaration> DeclarationList;

clang-tools-extra/clang-tidy/abseil/AbseilTidyModule.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,12 @@ class AbseilModule : public ClangTidyModule {
5959
CheckFactories.registerCheck<NoNamespaceCheck>("abseil-no-namespace");
6060
CheckFactories.registerCheck<RedundantStrcatCallsCheck>(
6161
"abseil-redundant-strcat-calls");
62-
CheckFactories.registerCheck<StrCatAppendCheck>(
63-
"abseil-str-cat-append");
62+
CheckFactories.registerCheck<StrCatAppendCheck>("abseil-str-cat-append");
6463
CheckFactories.registerCheck<StringFindStartswithCheck>(
6564
"abseil-string-find-startswith");
6665
CheckFactories.registerCheck<StringFindStrContainsCheck>(
6766
"abseil-string-find-str-contains");
68-
CheckFactories.registerCheck<TimeComparisonCheck>(
69-
"abseil-time-comparison");
67+
CheckFactories.registerCheck<TimeComparisonCheck>("abseil-time-comparison");
7068
CheckFactories.registerCheck<TimeSubtractionCheck>(
7169
"abseil-time-subtraction");
7270
CheckFactories.registerCheck<UpgradeDurationConversionsCheck>(

clang-tools-extra/clang-tidy/abseil/DurationDivisionCheck.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace clang::tidy::abseil {
1515

1616
// Find potential incorrect uses of integer division of absl::Duration objects.
1717
//
18-
// For the user-facing documentation see:
18+
// For the user-facing documentation see:
1919
// http://clang.llvm.org/extra/clang-tidy/checks/abseil/duration-division.html
2020

2121
class DurationDivisionCheck : public ClangTidyCheck {

clang-tools-extra/clang-tidy/abseil/NoInternalDependenciesCheck.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ void NoInternalDependenciesCheck::registerMatchers(MatchFinder *Finder) {
2727
this);
2828
}
2929

30-
void NoInternalDependenciesCheck::check(const MatchFinder::MatchResult &Result) {
30+
void NoInternalDependenciesCheck::check(
31+
const MatchFinder::MatchResult &Result) {
3132
const auto *InternalDependency =
3233
Result.Nodes.getNodeAs<NestedNameSpecifierLoc>("InternalDep");
3334

0 commit comments

Comments
 (0)