Skip to content

Commit d4a5a51

Browse files
authored
Merge branch 'main' into llvmdll-misc-5
2 parents 6b86ff0 + e391301 commit d4a5a51

File tree

171 files changed

+14963
-2562
lines changed

Some content is hidden

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

171 files changed

+14963
-2562
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ add_clang_library(clangTidyReadabilityModule STATIC
5858
UniqueptrDeleteReleaseCheck.cpp
5959
UppercaseLiteralSuffixCheck.cpp
6060
UseAnyOfAllOfCheck.cpp
61-
UseNumericLimitsCheck.cpp
6261
UseStdMinMaxCheck.cpp
6362

6463
LINK_LIBS

clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
#include "UniqueptrDeleteReleaseCheck.h"
6262
#include "UppercaseLiteralSuffixCheck.h"
6363
#include "UseAnyOfAllOfCheck.h"
64-
#include "UseNumericLimitsCheck.h"
6564
#include "UseStdMinMaxCheck.h"
6665

6766
namespace clang::tidy {
@@ -174,8 +173,6 @@ class ReadabilityModule : public ClangTidyModule {
174173
"readability-uppercase-literal-suffix");
175174
CheckFactories.registerCheck<UseAnyOfAllOfCheck>(
176175
"readability-use-anyofallof");
177-
CheckFactories.registerCheck<UseNumericLimitsCheck>(
178-
"readability-use-numeric-limits");
179176
CheckFactories.registerCheck<UseStdMinMaxCheck>(
180177
"readability-use-std-min-max");
181178
}

clang-tools-extra/clang-tidy/readability/UseNumericLimitsCheck.cpp

Lines changed: 0 additions & 160 deletions
This file was deleted.

clang-tools-extra/clang-tidy/readability/UseNumericLimitsCheck.h

Lines changed: 0 additions & 38 deletions
This file was deleted.

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,6 @@ New checks
154154
Finds potentially erroneous calls to ``reset`` method on smart pointers when
155155
the pointee type also has a ``reset`` method.
156156

157-
- New :doc:`readability-use-numeric-limits
158-
<clang-tidy/checks/readability/use-numeric-limits>` check.
159-
160-
Finds certain integer literals and suggests replacing them with equivalent
161-
``std::numeric_limits`` calls.
162-
163157
New check aliases
164158
^^^^^^^^^^^^^^^^^
165159

clang-tools-extra/docs/clang-tidy/checks/list.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,6 @@ Clang-Tidy Checks
409409
:doc:`readability-uniqueptr-delete-release <readability/uniqueptr-delete-release>`, "Yes"
410410
:doc:`readability-uppercase-literal-suffix <readability/uppercase-literal-suffix>`, "Yes"
411411
:doc:`readability-use-anyofallof <readability/use-anyofallof>`,
412-
:doc:`readability-use-numeric-limits <readability/use-numeric-limits>`, "Yes"
413412
:doc:`readability-use-std-min-max <readability/use-std-min-max>`, "Yes"
414413
:doc:`zircon-temporary-objects <zircon/temporary-objects>`,
415414

clang-tools-extra/docs/clang-tidy/checks/readability/use-numeric-limits.rst

Lines changed: 0 additions & 31 deletions
This file was deleted.

clang-tools-extra/test/clang-tidy/checkers/readability/use-numeric-limits.cpp

Lines changed: 0 additions & 100 deletions
This file was deleted.

clang/include/clang/AST/ASTContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
814814

815815
llvm::StringRef backupStr(llvm::StringRef S) const {
816816
char *Buf = new (*this) char[S.size()];
817-
std::copy(S.begin(), S.end(), Buf);
817+
llvm::copy(S, Buf);
818818
return llvm::StringRef(Buf, S.size());
819819
}
820820

clang/include/clang/AST/Decl.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,11 @@ class VarDecl : public DeclaratorDecl, public Redeclarable<VarDecl> {
13521352
return const_cast<VarDecl *>(this)->getInitializingDeclaration();
13531353
}
13541354

1355+
/// Checks whether this declaration has an initializer with side effects,
1356+
/// without triggering deserialization if the initializer is not yet
1357+
/// deserialized.
1358+
bool hasInitWithSideEffects() const;
1359+
13551360
/// Determine whether this variable's value might be usable in a
13561361
/// constant expression, according to the relevant language standard.
13571362
/// This only checks properties of the declaration, and does not check

0 commit comments

Comments
 (0)