Skip to content

Commit 4a208c9

Browse files
authored
Merge branch 'main' into fixme-dag-not-sub-generalize
2 parents f0e2a65 + 414f028 commit 4a208c9

File tree

594 files changed

+12706
-7240
lines changed

Some content is hidden

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

594 files changed

+12706
-7240
lines changed

bolt/lib/Core/BinaryContext.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,15 @@ Expected<std::unique_ptr<BinaryContext>> BinaryContext::createBinaryContext(
207207
Twine("BOLT-ERROR: ", Error));
208208

209209
std::unique_ptr<const MCRegisterInfo> MRI(
210-
TheTarget->createMCRegInfo(TripleName));
210+
TheTarget->createMCRegInfo(TheTriple));
211211
if (!MRI)
212212
return createStringError(
213213
make_error_code(std::errc::not_supported),
214214
Twine("BOLT-ERROR: no register info for target ", TripleName));
215215

216216
// Set up disassembler.
217217
std::unique_ptr<MCAsmInfo> AsmInfo(
218-
TheTarget->createMCAsmInfo(*MRI, TripleName, MCTargetOptions()));
218+
TheTarget->createMCAsmInfo(*MRI, TheTriple, MCTargetOptions()));
219219
if (!AsmInfo)
220220
return createStringError(
221221
make_error_code(std::errc::not_supported),
@@ -227,7 +227,7 @@ Expected<std::unique_ptr<BinaryContext>> BinaryContext::createBinaryContext(
227227
AsmInfo->setAllowAtInName(true);
228228

229229
std::unique_ptr<const MCSubtargetInfo> STI(
230-
TheTarget->createMCSubtargetInfo(TripleName, "", FeaturesStr));
230+
TheTarget->createMCSubtargetInfo(TheTriple, "", FeaturesStr));
231231
if (!STI)
232232
return createStringError(
233233
make_error_code(std::errc::not_supported),

clang-tools-extra/clang-tidy/.clang-tidy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Checks: >
2222
readability-*,
2323
-readability-avoid-nested-conditional-operator,
2424
-readability-braces-around-statements,
25-
-readability-container-contains,
2625
-readability-convert-member-functions-to-static,
2726
-readability-else-after-return,
2827
-readability-function-cognitive-complexity,

clang-tools-extra/clang-tidy/ClangTidyCheck.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ ClangTidyCheck::OptionsView::get(StringRef LocalName) const {
6262
return std::nullopt;
6363
}
6464

65-
static const llvm::StringSet<> DeprecatedGlobalOptions{
66-
"StrictMode",
67-
"IgnoreMacros",
68-
};
69-
7065
static ClangTidyOptions::OptionMap::const_iterator
7166
findPriorityOption(const ClangTidyOptions::OptionMap &Options,
7267
StringRef NamePrefix, StringRef LocalName,
@@ -78,13 +73,6 @@ findPriorityOption(const ClangTidyOptions::OptionMap &Options,
7873
}
7974
auto IterLocal = Options.find((NamePrefix + LocalName).str());
8075
auto IterGlobal = Options.find(LocalName);
81-
// FIXME: temporary solution for deprecation warnings, should be removed
82-
// after 22.x. Warn configuration deps on deprecation global options.
83-
if (IterLocal == Options.end() && IterGlobal != Options.end() &&
84-
DeprecatedGlobalOptions.contains(LocalName))
85-
Context->configurationDiag(
86-
"global option '%0' is deprecated, please use '%1%0' instead.")
87-
<< LocalName << NamePrefix;
8876
if (IterLocal == Options.end())
8977
return IterGlobal;
9078
if (IterGlobal == Options.end())

clang-tools-extra/clang-tidy/ExpandModularHeadersPPCallbacks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ExpandModularHeadersPPCallbacks::FileRecorder {
3535
const SrcMgr::ContentCache &ContentCache,
3636
llvm::vfs::InMemoryFileSystem &InMemoryFs) {
3737
// Return if we are not interested in the contents of this file.
38-
if (!FilesToRecord.count(File))
38+
if (!FilesToRecord.contains(File))
3939
return;
4040

4141
// FIXME: Why is this happening? We might be losing contents here.

clang-tools-extra/clang-tidy/NoLintDirectiveHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ bool NoLintDirectiveHandler::Impl::diagHasNoLint(
349349
return false;
350350

351351
// Do we have cached NOLINT block locations for this file?
352-
if (Cache.count(*FileName) == 0)
352+
if (!Cache.contains(*FileName))
353353
// Warning: heavy operation - need to read entire file.
354354
generateCache(SrcMgr, *FileName, File, *Buffer, NoLintErrors);
355355

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void UpgradeDurationConversionsCheck::check(
126126

127127
if (!match(isInTemplateInstantiation(), *OuterExpr, *Result.Context)
128128
.empty()) {
129-
if (MatchedTemplateLocations.count(Loc) == 0) {
129+
if (!MatchedTemplateLocations.contains(Loc)) {
130130
// For each location matched in a template instantiation, we check if the
131131
// location can also be found in `MatchedTemplateLocations`. If it is not
132132
// found, that means the expression did not create a match without the

clang-tools-extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ AST_MATCHER(Decl, isFromStdNamespaceOrSystemHeader) {
3232
ArgumentCommentCheck::ArgumentCommentCheck(StringRef Name,
3333
ClangTidyContext *Context)
3434
: ClangTidyCheck(Name, Context),
35-
StrictMode(Options.getLocalOrGlobal("StrictMode", false)),
35+
StrictMode(Options.get("StrictMode", false)),
3636
IgnoreSingleArgument(Options.get("IgnoreSingleArgument", false)),
3737
CommentBoolLiterals(Options.get("CommentBoolLiterals", false)),
3838
CommentIntegerLiterals(Options.get("CommentIntegerLiterals", false)),

clang-tools-extra/clang-tidy/bugprone/LambdaFunctionNameCheck.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ AST_MATCHER(CXXMethodDecl, isInLambda) { return Node.getParent()->isLambda(); }
6464
LambdaFunctionNameCheck::LambdaFunctionNameCheck(StringRef Name,
6565
ClangTidyContext *Context)
6666
: ClangTidyCheck(Name, Context),
67-
IgnoreMacros(
68-
Options.getLocalOrGlobal("IgnoreMacros", DefaultIgnoreMacros)) {}
67+
IgnoreMacros(Options.get("IgnoreMacros", DefaultIgnoreMacros)) {}
6968

7069
void LambdaFunctionNameCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
7170
Options.store(Opts, "IgnoreMacros", IgnoreMacros);

clang-tools-extra/clang-tidy/bugprone/SignalHandlerCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ bool SignalHandlerCheck::isStandardFunctionAsyncSafe(
525525
if (!FD->isInStdNamespace() && !FD->isGlobal())
526526
return false;
527527

528-
if (ConformingFunctions.count(II->getName()))
528+
if (ConformingFunctions.contains(II->getName()))
529529
return true;
530530

531531
return false;

clang-tools-extra/clang-tidy/bugprone/SuspiciousEnumUsageCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static bool isPossiblyBitMask(const EnumDecl *EnumDec) {
106106
SuspiciousEnumUsageCheck::SuspiciousEnumUsageCheck(StringRef Name,
107107
ClangTidyContext *Context)
108108
: ClangTidyCheck(Name, Context),
109-
StrictMode(Options.getLocalOrGlobal("StrictMode", false)) {}
109+
StrictMode(Options.get("StrictMode", false)) {}
110110

111111
void SuspiciousEnumUsageCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
112112
Options.store(Opts, "StrictMode", StrictMode);

0 commit comments

Comments
 (0)