forked from OSchip/llvm-project
[clang] Spell correct variable
fix Trailling -> Trailing (two ll-> one l) Differential Revision: https://reviews.llvm.org/D101753
This commit is contained in:
parent
daca6edb31
commit
ab7316f1c6
|
@ -2425,12 +2425,12 @@ class CXXConstructorDecl final
|
|||
: ExplicitSpecKind::ResolvedFalse);
|
||||
}
|
||||
|
||||
enum TraillingAllocKind {
|
||||
enum TrailingAllocKind {
|
||||
TAKInheritsConstructor = 1,
|
||||
TAKHasTailExplicit = 1 << 1,
|
||||
};
|
||||
|
||||
uint64_t getTraillingAllocKind() const {
|
||||
uint64_t getTrailingAllocKind() const {
|
||||
return numTrailingObjects(OverloadToken<InheritedConstructor>()) |
|
||||
(numTrailingObjects(OverloadToken<ExplicitSpecifier>()) << 1);
|
||||
}
|
||||
|
|
|
@ -2600,19 +2600,19 @@ void CXXConstructorDecl::anchor() {}
|
|||
CXXConstructorDecl *CXXConstructorDecl::CreateDeserialized(ASTContext &C,
|
||||
unsigned ID,
|
||||
uint64_t AllocKind) {
|
||||
bool hasTraillingExplicit = static_cast<bool>(AllocKind & TAKHasTailExplicit);
|
||||
bool hasTrailingExplicit = static_cast<bool>(AllocKind & TAKHasTailExplicit);
|
||||
bool isInheritingConstructor =
|
||||
static_cast<bool>(AllocKind & TAKInheritsConstructor);
|
||||
unsigned Extra =
|
||||
additionalSizeToAlloc<InheritedConstructor, ExplicitSpecifier>(
|
||||
isInheritingConstructor, hasTraillingExplicit);
|
||||
isInheritingConstructor, hasTrailingExplicit);
|
||||
auto *Result = new (C, ID, Extra) CXXConstructorDecl(
|
||||
C, nullptr, SourceLocation(), DeclarationNameInfo(), QualType(), nullptr,
|
||||
ExplicitSpecifier(), false, false, ConstexprSpecKind::Unspecified,
|
||||
InheritedConstructor(), nullptr);
|
||||
Result->setInheritingConstructor(isInheritingConstructor);
|
||||
Result->CXXConstructorDeclBits.HasTrailingExplicitSpecifier =
|
||||
hasTraillingExplicit;
|
||||
hasTrailingExplicit;
|
||||
Result->setExplicitSpecifier(ExplicitSpecifier());
|
||||
return Result;
|
||||
}
|
||||
|
|
|
@ -1389,7 +1389,7 @@ void ASTDeclWriter::VisitCXXMethodDecl(CXXMethodDecl *D) {
|
|||
}
|
||||
|
||||
void ASTDeclWriter::VisitCXXConstructorDecl(CXXConstructorDecl *D) {
|
||||
Record.push_back(D->getTraillingAllocKind());
|
||||
Record.push_back(D->getTrailingAllocKind());
|
||||
addExplicitSpecifier(D->getExplicitSpecifier(), Record);
|
||||
if (auto Inherited = D->getInheritedConstructor()) {
|
||||
Record.AddDeclRef(Inherited.getShadowDecl());
|
||||
|
|
|
@ -84,7 +84,7 @@ E<void> e = 1;
|
|||
|
||||
}
|
||||
|
||||
namespace trailling_object {
|
||||
namespace trailing_object {
|
||||
|
||||
template<bool b>
|
||||
struct B {
|
||||
|
|
Loading…
Reference in New Issue