Skip to content

Commit 3830905

Browse files
authored
Merge branch 'main' into semantic_info
2 parents 8490f30 + 20c323a commit 3830905

File tree

635 files changed

+185896
-319
lines changed

Some content is hidden

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

635 files changed

+185896
-319
lines changed

bolt/test/X86/dwarf4-ftypes-dwp-input-dwo-output.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# UNSUPPORTED: system-linux
21
; RUN: rm -rf %t
32
; RUN: mkdir %t
43
; RUN: cd %t

clang-tools-extra/clang-tidy/ClangTidyModule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class ClangTidyCheckFactories {
8585
/// them a prefixed name.
8686
class ClangTidyModule {
8787
public:
88-
virtual ~ClangTidyModule() {}
88+
virtual ~ClangTidyModule() = default;
8989

9090
/// Implement this function in order to register all \c CheckFactories
9191
/// belonging to this module.

clang-tools-extra/clang-tidy/ClangTidyOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class ClangTidyOptionsProvider {
171171
static const char OptionsSourceTypeCheckCommandLineOption[];
172172
static const char OptionsSourceTypeConfigCommandLineOption[];
173173

174-
virtual ~ClangTidyOptionsProvider() {}
174+
virtual ~ClangTidyOptionsProvider() = default;
175175

176176
/// Returns global options, which are independent of the file.
177177
virtual const ClangTidyGlobalOptions &getGlobalOptions() = 0;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ExpandModularHeadersPPCallbacks : public PPCallbacks {
4444
ExpandModularHeadersPPCallbacks(
4545
CompilerInstance *CI,
4646
IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem> OverlayFS);
47-
~ExpandModularHeadersPPCallbacks();
47+
~ExpandModularHeadersPPCallbacks() override;
4848

4949
/// Returns the preprocessor that provides callbacks for the whole
5050
/// translation unit, including the main file, textual headers, and modular

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void DurationAdditionCheck::registerMatchers(MatchFinder *Finder) {
2121
Finder->addMatcher(
2222
binaryOperator(hasOperatorName("+"),
2323
hasEitherOperand(expr(ignoringParenImpCasts(
24-
callExpr(callee(functionDecl(TimeConversionFunction())
24+
callExpr(callee(functionDecl(timeConversionFunction())
2525
.bind("function_decl")))
2626
.bind("call")))))
2727
.bind("binop"),

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

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

1818
void DurationComparisonCheck::registerMatchers(MatchFinder *Finder) {
1919
auto Matcher = expr(comparisonOperatorWithCallee(functionDecl(
20-
functionDecl(DurationConversionFunction())
20+
functionDecl(durationConversionFunction())
2121
.bind("function_decl"))))
2222
.bind("binop");
2323

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

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

2020
void DurationConversionCastCheck::registerMatchers(MatchFinder *Finder) {
2121
auto CallMatcher = ignoringImpCasts(callExpr(
22-
callee(functionDecl(DurationConversionFunction()).bind("func_decl")),
22+
callee(functionDecl(durationConversionFunction()).bind("func_decl")),
2323
hasArgument(0, expr().bind("arg"))));
2424

2525
Finder->addMatcher(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static bool insideMacroDefinition(const MatchFinder::MatchResult &Result,
2828

2929
void DurationFactoryFloatCheck::registerMatchers(MatchFinder *Finder) {
3030
Finder->addMatcher(
31-
callExpr(callee(functionDecl(DurationFactoryFunction())),
31+
callExpr(callee(functionDecl(durationFactoryFunction())),
3232
hasArgument(0, anyOf(cxxStaticCastExpr(hasDestinationType(
3333
realFloatingPointType())),
3434
cStyleCastExpr(hasDestinationType(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static std::optional<DurationScale> getNewScale(DurationScale OldScale,
112112
void DurationFactoryScaleCheck::registerMatchers(MatchFinder *Finder) {
113113
Finder->addMatcher(
114114
callExpr(
115-
callee(functionDecl(DurationFactoryFunction()).bind("call_decl")),
115+
callee(functionDecl(durationFactoryFunction()).bind("call_decl")),
116116
hasArgument(
117117
0,
118118
ignoringImpCasts(anyOf(

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ bool isInMacro(const ast_matchers::MatchFinder::MatchResult &Result,
9696
const Expr *E);
9797

9898
AST_MATCHER_FUNCTION(ast_matchers::internal::Matcher<FunctionDecl>,
99-
DurationConversionFunction) {
99+
durationConversionFunction) {
100100
using namespace clang::ast_matchers;
101101
return functionDecl(
102102
hasAnyName("::absl::ToDoubleHours", "::absl::ToDoubleMinutes",
@@ -108,15 +108,15 @@ AST_MATCHER_FUNCTION(ast_matchers::internal::Matcher<FunctionDecl>,
108108
}
109109

110110
AST_MATCHER_FUNCTION(ast_matchers::internal::Matcher<FunctionDecl>,
111-
DurationFactoryFunction) {
111+
durationFactoryFunction) {
112112
using namespace clang::ast_matchers;
113113
return functionDecl(hasAnyName("::absl::Nanoseconds", "::absl::Microseconds",
114114
"::absl::Milliseconds", "::absl::Seconds",
115115
"::absl::Minutes", "::absl::Hours"));
116116
}
117117

118118
AST_MATCHER_FUNCTION(ast_matchers::internal::Matcher<FunctionDecl>,
119-
TimeConversionFunction) {
119+
timeConversionFunction) {
120120
using namespace clang::ast_matchers;
121121
return functionDecl(hasAnyName(
122122
"::absl::ToUnixHours", "::absl::ToUnixMinutes", "::absl::ToUnixSeconds",
@@ -125,12 +125,12 @@ AST_MATCHER_FUNCTION(ast_matchers::internal::Matcher<FunctionDecl>,
125125

126126
AST_MATCHER_FUNCTION_P(ast_matchers::internal::Matcher<Stmt>,
127127
comparisonOperatorWithCallee,
128-
ast_matchers::internal::Matcher<Decl>, funcDecl) {
128+
ast_matchers::internal::Matcher<Decl>, FuncDecl) {
129129
using namespace clang::ast_matchers;
130130
return binaryOperator(
131131
anyOf(hasOperatorName(">"), hasOperatorName(">="), hasOperatorName("=="),
132132
hasOperatorName("<="), hasOperatorName("<")),
133-
hasEitherOperand(ignoringImpCasts(callExpr(callee(funcDecl)))));
133+
hasEitherOperand(ignoringImpCasts(callExpr(callee(FuncDecl)))));
134134
}
135135

136136
} // namespace clang::tidy::abseil

0 commit comments

Comments
 (0)