Skip to content

Commit 059615e

Browse files
Merge branch 'main' into inline-asm
2 parents ad9f8eb + f73e163 commit 059615e

File tree

616 files changed

+13187
-6123
lines changed

Some content is hidden

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

616 files changed

+13187
-6123
lines changed

.github/new-prs-labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ flang:frontend:
4848
- flang/Evaluate/**/*
4949
- flang/Semantics/**/*
5050

51+
libclc:
52+
- libclc/**
53+
5154
HLSL:
5255
- clang/*HLSL*/**/*
5356
- clang/**/*HLSL*
@@ -717,6 +720,8 @@ mlgo:
717720
- llvm/lib/Analysis/IR2Vec.cpp
718721
- llvm/lib/Analysis/models/**
719722
- llvm/test/Analysis/IR2Vec/**
723+
- llvm/tools/llvm-ir2vec/**
724+
- llvm/docs/CommandGuide/llvm-ir2vec.rst
720725

721726
tools:llvm-exegesis:
722727
- llvm/tools/llvm-exegesis/**

.github/workflows/build-ci-container-windows.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ on:
1111
- .github/workflows/build-ci-container-windows.yml
1212
- '.github/workflows/containers/github-action-ci-windows/**'
1313
pull_request:
14-
branches:
15-
- main
1614
paths:
1715
- .github/workflows/build-ci-container-windows.yml
1816
- '.github/workflows/containers/github-action-ci-windows/**'

.github/workflows/build-ci-container.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ on:
1111
- .github/workflows/build-ci-container.yml
1212
- '.github/workflows/containers/github-action-ci/**'
1313
pull_request:
14-
branches:
15-
- main
1614
paths:
1715
- .github/workflows/build-ci-container.yml
1816
- '.github/workflows/containers/github-action-ci/**'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static void replaceMoveWithForward(const UnresolvedLookupExpr *Callee,
4545
// We still conservatively put a "std::" in front of the forward because
4646
// we don't know whether the code also had a "using std::forward;".
4747
Diag << FixItHint::CreateReplacement(CallRange, "std::" + ForwardName);
48-
} else if (const NamespaceDecl *Namespace = NNS->getAsNamespace()) {
48+
} else if (const NamespaceBaseDecl *Namespace = NNS->getAsNamespace()) {
4949
if (Namespace->getName() == "std") {
5050
if (!NNS->getPrefix()) {
5151
// Called as "std::move".

clang-tools-extra/clang-tidy/misc/UnusedAliasDeclsCheck.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ void UnusedAliasDeclsCheck::check(const MatchFinder::MatchResult &Result) {
3636

3737
if (const auto *NestedName =
3838
Result.Nodes.getNodeAs<NestedNameSpecifier>("nns")) {
39-
if (const auto *AliasDecl = NestedName->getAsNamespaceAlias()) {
39+
if (const auto *AliasDecl = dyn_cast_if_present<NamespaceAliasDecl>(
40+
NestedName->getAsNamespace())) {
4041
FoundDecls[AliasDecl] = CharSourceRange();
4142
}
4243
}

clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,8 @@ class RenamerClangTidyVisitor
282282

283283
bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc Loc) {
284284
if (const NestedNameSpecifier *Spec = Loc.getNestedNameSpecifier()) {
285-
if (const NamespaceDecl *Decl = Spec->getAsNamespace())
285+
if (const auto *Decl =
286+
dyn_cast_if_present<NamespaceDecl>(Spec->getAsNamespace()))
286287
Check->addUsage(Decl, Loc.getLocalSourceRange(), SM);
287288
}
288289

clang-tools-extra/clangd/AST.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -666,12 +666,14 @@ std::string getQualification(ASTContext &Context,
666666
return getQualification(
667667
Context, DestContext, ND->getDeclContext(),
668668
[&](NestedNameSpecifier *NNS) {
669-
if (NNS->getKind() != NestedNameSpecifier::Namespace)
669+
const NamespaceDecl *NS =
670+
dyn_cast_if_present<NamespaceDecl>(NNS->getAsNamespace());
671+
if (!NS)
670672
return false;
671-
const auto *CanonNSD = NNS->getAsNamespace()->getCanonicalDecl();
673+
NS = NS->getCanonicalDecl();
672674
return llvm::any_of(VisibleNamespaceDecls,
673-
[CanonNSD](const NamespaceDecl *NSD) {
674-
return NSD->getCanonicalDecl() == CanonNSD;
675+
[NS](const NamespaceDecl *NSD) {
676+
return NSD->getCanonicalDecl() == NS;
675677
});
676678
});
677679
}

clang-tools-extra/clangd/CodeComplete.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,6 @@ bool allowIndex(CodeCompletionContext &CC) {
14701470
switch (NameSpec->getKind()) {
14711471
case NestedNameSpecifier::Global:
14721472
case NestedNameSpecifier::Namespace:
1473-
case NestedNameSpecifier::NamespaceAlias:
14741473
return true;
14751474
case NestedNameSpecifier::Super:
14761475
case NestedNameSpecifier::TypeSpec:

clang-tools-extra/clangd/DumpAST.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ class DumpVisitor : public RecursiveASTVisitor<DumpVisitor> {
158158
NNS_KIND(TypeSpec);
159159
NNS_KIND(Global);
160160
NNS_KIND(Super);
161-
NNS_KIND(NamespaceAlias);
162161
#undef NNS_KIND
163162
}
164163
llvm_unreachable("Unhandled SpecifierKind enum");
@@ -281,8 +280,6 @@ class DumpVisitor : public RecursiveASTVisitor<DumpVisitor> {
281280
return NNS.getAsIdentifier()->getName().str() + "::";
282281
case NestedNameSpecifier::Namespace:
283282
return NNS.getAsNamespace()->getNameAsString() + "::";
284-
case NestedNameSpecifier::NamespaceAlias:
285-
return NNS.getAsNamespaceAlias()->getNameAsString() + "::";
286283
default:
287284
return "";
288285
}

clang-tools-extra/clangd/FindTarget.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,6 @@ struct TargetFinder {
491491
case NestedNameSpecifier::Namespace:
492492
add(NNS->getAsNamespace(), Flags);
493493
return;
494-
case NestedNameSpecifier::NamespaceAlias:
495-
add(NNS->getAsNamespaceAlias(), Flags);
496-
return;
497494
case NestedNameSpecifier::Identifier:
498495
if (Resolver) {
499496
add(Resolver->resolveNestedNameSpecifierToType(NNS), Flags);

0 commit comments

Comments
 (0)