Skip to content

Commit aa6a57e

Browse files
authored
Merge branch 'main' into mlir-python-stat
2 parents ce2b2ce + bf34b2e commit aa6a57e

File tree

331 files changed

+8019
-2962
lines changed

Some content is hidden

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

331 files changed

+8019
-2962
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build CI Container
1+
name: Build CI Tooling Containers
22

33
permissions:
44
contents: read
@@ -101,7 +101,7 @@ jobs:
101101
}
102102
103103
podman login -u ${{ github.actor }} -p $GITHUB_TOKEN ghcr.io
104-
for f in $(find . -iname *.tar); do
104+
for f in $(find . -iname '*.tar'); do
105105
image_name=$(podman load -q -i $f | sed 's/Loaded image: //g')
106106
push_container $image_name
107107

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
}
104104
105105
podman login -u ${{ github.actor }} -p $GITHUB_TOKEN ghcr.io
106-
for f in $(find . -iname *.tar); do
106+
for f in $(find . -iname '*.tar'); do
107107
image_name=$(podman load -q -i $f | sed 's/Loaded image: //g')
108108
push_container $image_name
109109

.github/workflows/release-asset-audit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ def _get_uploaders(release_version):
5454
"tru",
5555
"tstellar",
5656
"github-actions[bot]",
57+
"c-rhodes",
58+
"dyung",
5759
]
5860
)
5961

bolt/test/perf2bolt/AArch64/perf2bolt-spe.test

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ RUN: %clang %cflags %p/../../Inputs/asm_foo.s %p/../../Inputs/asm_main.c -o %t.e
66

77
RUN: perf record -e cycles -q -o %t.perf.data -- %t.exe 2> /dev/null
88

9-
RUN: (perf2bolt -p %t.perf.data -o %t.perf.boltdata --spe %t.exe 2> /dev/null; exit 0) | FileCheck %s --check-prefix=CHECK-SPE-LBR
9+
RUN: perf2bolt -p %t.perf.data -o %t.perf.boltdata --spe %t.exe | FileCheck %s --check-prefix=CHECK-SPE-LBR
1010

1111
CHECK-SPE-LBR: PERF2BOLT: parse SPE branch events in LBR-format
12-

bolt/utils/docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:24.04 AS builder
1+
FROM docker.io/library/ubuntu:24.04 AS builder
22

33
ARG DEBIAN_FRONTEND=noninteractive
44
ENV TZ=UTC
@@ -25,6 +25,6 @@ RUN mkdir build && \
2525
ninja check-bolt && \
2626
ninja install-llvm-bolt install-merge-fdata install-bolt_rt
2727

28-
FROM ubuntu:24.04
28+
FROM docker.io/library/ubuntu:24.04
2929

3030
COPY --from=builder /home/bolt/install /usr/local

clang-tools-extra/clang-tidy/fuchsia/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ add_clang_library(clangTidyFuchsiaModule STATIC
1010
MultipleInheritanceCheck.cpp
1111
OverloadedOperatorCheck.cpp
1212
StaticallyConstructedObjectsCheck.cpp
13+
TemporaryObjectsCheck.cpp
1314
TrailingReturnCheck.cpp
1415
VirtualInheritanceCheck.cpp
1516

clang-tools-extra/clang-tidy/fuchsia/FuchsiaTidyModule.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "MultipleInheritanceCheck.h"
1616
#include "OverloadedOperatorCheck.h"
1717
#include "StaticallyConstructedObjectsCheck.h"
18+
#include "TemporaryObjectsCheck.h"
1819
#include "TrailingReturnCheck.h"
1920
#include "VirtualInheritanceCheck.h"
2021

@@ -39,6 +40,8 @@ class FuchsiaModule : public ClangTidyModule {
3940
"fuchsia-overloaded-operator");
4041
CheckFactories.registerCheck<StaticallyConstructedObjectsCheck>(
4142
"fuchsia-statically-constructed-objects");
43+
CheckFactories.registerCheck<TemporaryObjectsCheck>(
44+
"fuchsia-temporary-objects");
4245
CheckFactories.registerCheck<TrailingReturnCheck>(
4346
"fuchsia-trailing-return");
4447
CheckFactories.registerCheck<VirtualInheritanceCheck>(

clang-tools-extra/clang-tidy/zircon/TemporaryObjectsCheck.cpp renamed to clang-tools-extra/clang-tidy/fuchsia/TemporaryObjectsCheck.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
using namespace clang::ast_matchers;
1717

18-
namespace clang::tidy::zircon {
18+
namespace clang::tidy::fuchsia {
1919

2020
namespace {
2121

@@ -55,4 +55,4 @@ void TemporaryObjectsCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
5555
Options.store(Opts, "Names", utils::options::serializeStringList(Names));
5656
}
5757

58-
} // namespace clang::tidy::zircon
58+
} // namespace clang::tidy::fuchsia

clang-tools-extra/clang-tidy/zircon/TemporaryObjectsCheck.h renamed to clang-tools-extra/clang-tidy/fuchsia/TemporaryObjectsCheck.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ZIRCON_TEMPORARYOBJECTSCHECK_H
10-
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ZIRCON_TEMPORARYOBJECTSCHECK_H
9+
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_FUCHSIA_TEMPORARYOBJECTSCHECK_H
10+
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_FUCHSIA_TEMPORARYOBJECTSCHECK_H
1111

1212
#include "../ClangTidyCheck.h"
1313
#include "../utils/OptionsUtils.h"
1414

15-
namespace clang::tidy::zircon {
15+
namespace clang::tidy::fuchsia {
1616

1717
/// Construction of specific temporary objects in the Zircon kernel is
1818
/// discouraged.
1919
///
2020
/// For the user-facing documentation see:
21-
/// https://clang.llvm.org/extra/clang-tidy/checks/zircon/temporary-objects.html
21+
/// https://clang.llvm.org/extra/clang-tidy/checks/fuchsia/temporary-objects.html
2222
class TemporaryObjectsCheck : public ClangTidyCheck {
2323
public:
2424
TemporaryObjectsCheck(StringRef Name, ClangTidyContext *Context)
@@ -35,6 +35,6 @@ class TemporaryObjectsCheck : public ClangTidyCheck {
3535
std::vector<StringRef> Names;
3636
};
3737

38-
} // namespace clang::tidy::zircon
38+
} // namespace clang::tidy::fuchsia
3939

40-
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ZIRCON_TEMPORARYOBJECTSCHECK_H
40+
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_FUCHSIA_TEMPORARYOBJECTSCHECK_H

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ void ConstCorrectnessCheck::check(const MatchFinder::MatchResult &Result) {
249249
CheckValue();
250250
if (WarnPointersAsPointers) {
251251
if (const auto *PT = dyn_cast<PointerType>(VT)) {
252-
if (!PT->getPointeeType().isConstQualified())
252+
if (!PT->getPointeeType().isConstQualified() &&
253+
!PT->getPointeeType()->isFunctionType())
253254
CheckPointee();
254255
}
255256
if (const auto *AT = dyn_cast<ArrayType>(VT)) {

0 commit comments

Comments
 (0)