[NFC] Fix some typos (#98791)

This commit is contained in:
c8ef
2024-07-14 19:28:11 +08:00
committed by GitHub
parent c8dc21d77f
commit 3f222f3bc6
12 changed files with 16 additions and 14 deletions

View File

@@ -5819,7 +5819,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
}
// If toolchain choose to use MCAsmParser for inline asm don't pass the
// option to disable integrated-as explictly.
// option to disable integrated-as explicitly.
if (!TC.useIntegratedAs() && !TC.parseInlineAsmUsingAsmParser())
CmdArgs.push_back("-no-integrated-as");

View File

@@ -2373,7 +2373,7 @@ QualType Sema::BuildExtVectorType(QualType T, Expr *ArraySize,
// on bitvectors, and we have no well-defined ABI for bitvectors, so vectors
// of bool aren't allowed.
//
// We explictly allow bool elements in ext_vector_type for C/C++.
// We explicitly allow bool elements in ext_vector_type for C/C++.
bool IsNoBoolVecLang = getLangOpts().OpenCL || getLangOpts().OpenCLCPlusPlus;
if ((!T->isDependentType() && !T->isIntegerType() &&
!T->isRealFloatingType()) ||

View File

@@ -313,7 +313,8 @@ namespace cwg2083 { // cwg2083: partial
int &r = a.x; // #cwg2083-r
struct B {
void f() {
// FIXME: We emit more errors than we should be. They are explictly marked below.
// FIXME: We emit more errors than we should be. They are explicitly
// marked below.
a.x;
// expected-warning@-1 {{expression result unused}}
// expected-error@-2 {{reference to local variable 'a' declared in enclosing function 'cwg2083::discarded_lval'}} FIXME

View File

@@ -9,7 +9,7 @@
// RUN: %clang_cc1 -fsanitize=address -emit-llvm -o - -triple x86_64-apple-macosx10.15 %s \
// RUN: | FileCheck %s --check-prefixes=CHECK-GLOBAL-DTOR
// Explictly ask for global dtor
// Explicitly ask for global dtor
// RUN: %clang_cc1 -fsanitize=address \
// RUN: -fsanitize-address-destructor=global -emit-llvm -o - \
// RUN: -triple x86_64-apple-macosx10.15 %s | \
@@ -18,7 +18,7 @@
// CHECK-GLOBAL-DTOR: llvm.global_dtor{{.+}}asan.module_dtor
// CHECK-GLOBAL-DTOR: define internal void @asan.module_dtor
// Explictly ask for no dtors
// Explicitly ask for no dtors
// RUN: %clang_cc1 -fsanitize=address \
// RUN: -fsanitize-address-destructor=none -emit-llvm -o - \
// RUN: -triple x86_64-apple-macosx10.15 %s | \

View File

@@ -111,7 +111,8 @@ __device__ void dev_fun(int *out) {
// Check ODR-use of host variables in namespace is not allowed.
*out = X::host_var; // dev-error {{reference to __host__ variable 'host_var' in __device__ function}}
// Check ODR-use of static host varables in class or file scope is not allowed.
// Check ODR-use of static host variables in class or file scope is not
// allowed.
*out = A::host_var; // dev-error {{reference to __host__ variable 'host_var' in __device__ function}}
*out = static_host_var; // dev-error {{reference to __host__ variable 'static_host_var' in __device__ function}}

View File

@@ -891,13 +891,13 @@ struct S {
};
void func() {
// Explictly defaulted constructor.
// Explicitly defaulted constructor.
S<Foo, 1> s1;
S<Bar, 1> s2;
// User provided constructor.
S<Foo, 2> s3;
S<Bar, 2> s4;
// Consteval explictly defaulted constructor.
// Consteval explicitly defaulted constructor.
S<Foo, 3> s5; // expected-error {{call to consteval function 'multiple_default_constructors::S<multiple_default_constructors::Foo, 3>::S' is not a constant expression}} \
expected-note {{in call to 'S()'}}
S<Bar, 3> s6;

View File

@@ -1,7 +1,7 @@
// RUN: %clangxx -g -O0 %s -o %t
// Check that trying to dlopen() the ASan dylib fails.
// We explictly set `abort_on_error=0` because
// We explicitly set `abort_on_error=0` because
// - By default the lit config sets this but we don't want this
// test to implicitly depend on this.
// - It avoids requiring `--crash` to be passed to `not`.

View File

@@ -497,7 +497,7 @@ private:
/// Types of operands to CFI instructions
/// In DWARF, this type is implicitly tied to a CFI instruction opcode and
/// thus this type doesn't need to be explictly written to the file (this is
/// thus this type doesn't need to be explicitly written to the file (this is
/// not a DWARF encoding). The relationship of instrs to operand types can
/// be obtained from getOperandTypes() and is only used to simplify
/// instruction printing.

View File

@@ -1369,7 +1369,7 @@ Expected<StringRef> XCOFFSymbolRef::getName() const {
return getObject()->getStringTableEntry(getSymbol64()->Offset);
}
// Explictly instantiate template classes.
// Explicitly instantiate template classes.
template struct XCOFFSectionHeader<XCOFFSectionHeader32>;
template struct XCOFFSectionHeader<XCOFFSectionHeader64>;

View File

@@ -169,7 +169,7 @@ void XtensaInstrInfo::loadImmediate(MachineBasicBlock &MBB,
BuildMI(MBB, MBBI, DL, get(Xtensa::MOVI), *Reg).addImm(Low);
BuildMI(MBB, MBBI, DL, get(Xtensa::ADDMI), *Reg).addReg(*Reg).addImm(High);
} else if (Value >= -4294967296LL && Value <= 4294967295LL) {
// 32 bit arbirary constant
// 32 bit arbitrary constant
MachineConstantPool *MCP = MBB.getParent()->getConstantPool();
uint64_t UVal = ((uint64_t)Value) & 0xFFFFFFFFLL;
const Constant *CVal = ConstantInt::get(

View File

@@ -369,7 +369,7 @@ void ProcessSwitchInst(SwitchInst *SI,
const unsigned NumSimpleCases = Clusterify(Cases, SI);
IntegerType *IT = cast<IntegerType>(SI->getCondition()->getType());
const unsigned BitWidth = IT->getBitWidth();
// Explictly use higher precision to prevent unsigned overflow where
// Explicitly use higher precision to prevent unsigned overflow where
// `UnsignedMax - 0 + 1 == 0`
APInt UnsignedZero(BitWidth + 1, 0);
APInt UnsignedMax = APInt::getMaxValue(BitWidth);

View File

@@ -42,7 +42,7 @@ mlir::getReassociationIndicesForCollapse(ArrayRef<int64_t> sourceShape,
while (sourceDim < sourceShape.size()) {
unsigned targetDim = reassociationMap.size();
// If we have mapped all the target dimensions stop and handle the remaining
// tail of size-1 dimensions explictly.
// tail of size-1 dimensions explicitly.
if (targetDim == targetShape.size())
break;