Skip to content

Commit d508cd6

Browse files
committed
rebase
Created using spr 1.3.6
2 parents 3e8ae64 + 04799bb commit d508cd6

File tree

169 files changed

+3087
-1035
lines changed

Some content is hidden

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

169 files changed

+3087
-1035
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

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/zircon/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ set(LLVM_LINK_COMPONENTS
44
)
55

66
add_clang_library(clangTidyZirconModule STATIC
7-
TemporaryObjectsCheck.cpp
87
ZirconTidyModule.cpp
98

109
LINK_LIBS
1110
clangTidy
11+
clangTidyFuchsiaModule
1212
clangTidyUtils
1313

1414
DEPENDS

clang-tools-extra/clang-tidy/zircon/ZirconTidyModule.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
#include "../ClangTidy.h"
1010
#include "../ClangTidyModule.h"
1111
#include "../ClangTidyModuleRegistry.h"
12-
#include "TemporaryObjectsCheck.h"
13-
14-
using namespace clang::ast_matchers;
12+
#include "../fuchsia/TemporaryObjectsCheck.h"
1513

1614
namespace clang::tidy {
1715
namespace zircon {
@@ -20,14 +18,14 @@ namespace zircon {
2018
class ZirconModule : public ClangTidyModule {
2119
public:
2220
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override {
23-
CheckFactories.registerCheck<TemporaryObjectsCheck>(
21+
CheckFactories.registerCheck<fuchsia::TemporaryObjectsCheck>(
2422
"zircon-temporary-objects");
2523
}
2624
};
2725

2826
// Register the ZirconTidyModule using this statically initialized variable.
2927
static ClangTidyModuleRegistry::Add<ZirconModule>
30-
X("zircon-module", "Adds Zircon kernel checks.");
28+
X("zircon-module", "Adds Zircon kernel checks (deprecated in LLVM 24).");
3129
} // namespace zircon
3230

3331
// This anchor is used to force the linker to link in the generated object file

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ Major New Features
4949
Potentially Breaking Changes
5050
----------------------------
5151

52+
- Deprecated the :program:`clang-tidy` ``zircon`` module. All checks have been
53+
moved to the ``fuchsia`` module instead. The ``zircon`` module will be removed
54+
in the 24th release.
55+
5256
- Removed :program:`clang-tidy`'s global options `IgnoreMacros` and
5357
`StrictMode`, which were documented as deprecated since
5458
:program:`clang-tidy-20`. Users should use the check-specific options of the
@@ -163,6 +167,10 @@ Improvements to clang-tidy
163167
scripts by adding the `-hide-progress` option to suppress progress and
164168
informational messages.
165169

170+
- Deprecated the :program:`clang-tidy` ``zircon`` module. All checks have been
171+
moved to the ``fuchsia`` module instead. The ``zircon`` module will be removed
172+
in the 24th release.
173+
166174
New checks
167175
^^^^^^^^^^
168176

0 commit comments

Comments
 (0)