Skip to content

Commit f2c2e92

Browse files
committed
Fix a typo (occured => occurred)
Reported: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005195
1 parent 9b5bb51 commit f2c2e92

File tree

19 files changed

+24
-24
lines changed

19 files changed

+24
-24
lines changed

clang/include/clang-c/Index.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3900,7 +3900,7 @@ enum CXTypeNullabilityKind {
39003900
/**
39013901
* Generally behaves like Nullable, except when used in a block parameter that
39023902
* was imported into a swift async method. There, swift will assume that the
3903-
* parameter can get null even if no error occured. _Nullable parameters are
3903+
* parameter can get null even if no error occurred. _Nullable parameters are
39043904
* assumed to only get null on error.
39053905
*/
39063906
CXTypeNullability_NullableResult = 4

clang/include/clang/Analysis/Analyses/CalledOnceCheck.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class CalledOnceCheckHandler {
7979
/// the path containing the call and not containing the call. This helps us
8080
/// to pinpoint a bad path for the user.
8181
/// \param Parameter -- parameter that should be called once.
82-
/// \param Function -- function declaration where the problem occured.
82+
/// \param Function -- function declaration where the problem occurred.
8383
/// \param Where -- the least common ancestor statement.
8484
/// \param Reason -- a reason describing the path without a call.
8585
/// \param IsCalledDirectly -- true, if parameter actually gets called on

clang/include/clang/Basic/AttrDocs.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3816,10 +3816,10 @@ completion handler in a Swift async method. For instance, here:
38163816
This method asynchronously calls ``completionHandler`` when the data is
38173817
available, or calls it with an error. ``_Nullable_result`` indicates to the
38183818
Swift importer that this is the uncommon case where ``result`` can get ``nil``
3819-
even if no error has occured, and will therefore import it as a Swift optional
3819+
even if no error has occurred, and will therefore import it as a Swift optional
38203820
type. Otherwise, if ``result`` was annotated with ``_Nullable``, the Swift
38213821
importer will assume that ``result`` will always be non-nil unless an error
3822-
occured.
3822+
occurred.
38233823
}];
38243824
}
38253825

clang/include/clang/Basic/Specifiers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ namespace clang {
324324
Unspecified,
325325
// Generally behaves like Nullable, except when used in a block parameter
326326
// that was imported into a swift async method. There, swift will assume
327-
// that the parameter can get null even if no error occured. _Nullable
327+
// that the parameter can get null even if no error occurred. _Nullable
328328
// parameters are assumed to only get null on error.
329329
NullableResult,
330330
};

clang/include/clang/CrossTU/CrossTranslationUnit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class CrossTranslationUnitContext {
291291
/// \param DisplayCTUProgress Display a message about loading new ASTs.
292292
///
293293
/// \return An Expected instance which contains the ASTUnit pointer or the
294-
/// error occured during the load.
294+
/// error occurred during the load.
295295
llvm::Expected<ASTUnit *> getASTUnitForFunction(StringRef FunctionName,
296296
StringRef CrossTUDir,
297297
StringRef IndexName,

clang/include/clang/Format/Format.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4062,7 +4062,7 @@ bool getPredefinedStyle(StringRef Name, FormatStyle::LanguageKind Language,
40624062
/// document, are retained in \p Style.
40634063
///
40644064
/// If AllowUnknownOptions is true, no errors are emitted if unknown
4065-
/// format options are occured.
4065+
/// format options are occurred.
40664066
///
40674067
/// If set all diagnostics are emitted through the DiagHandler.
40684068
std::error_code

clang/include/clang/Sema/Sema.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6960,7 +6960,7 @@ class Sema final {
69606960
/// \brief Check whether the given non-dependent constraint expression is
69616961
/// satisfied. Returns false and updates Satisfaction with the satisfaction
69626962
/// verdict if successful, emits a diagnostic and returns true if an error
6963-
/// occured and satisfaction could not be determined.
6963+
/// occurred and satisfaction could not be determined.
69646964
///
69656965
/// \returns true if an error occurred, false otherwise.
69666966
bool CheckConstraintSatisfaction(const Expr *ConstraintExpr,
@@ -6969,7 +6969,7 @@ class Sema final {
69696969
/// Check whether the given function decl's trailing requires clause is
69706970
/// satisfied, if any. Returns false and updates Satisfaction with the
69716971
/// satisfaction verdict if successful, emits a diagnostic and returns true if
6972-
/// an error occured and satisfaction could not be determined.
6972+
/// an error occurred and satisfaction could not be determined.
69736973
///
69746974
/// \returns true if an error occurred, false otherwise.
69756975
bool CheckFunctionConstraints(const FunctionDecl *FD,
@@ -7915,7 +7915,7 @@ class Sema final {
79157915
/// contain the converted forms of the template arguments as written.
79167916
/// Otherwise, \p TemplateArgs will not be modified.
79177917
///
7918-
/// \param ConstraintsNotSatisfied If provided, and an error occured, will
7918+
/// \param ConstraintsNotSatisfied If provided, and an error occurred, will
79197919
/// receive true if the cause for the error is the associated constraints of
79207920
/// the template not being satisfied by the template arguments.
79217921
///

clang/lib/Sema/SemaOpenMP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5391,7 +5391,7 @@ static CapturedStmt *buildDistanceFunc(Sema &Actions, QualType LogicalTy,
53915391
// the step size, rounding-up the effective upper bound ensures that the
53925392
// last iteration is included.
53935393
// Note that the rounding-up may cause an overflow in a temporry that
5394-
// could be avoided, but would have occured in a C-style for-loop as well.
5394+
// could be avoided, but would have occurred in a C-style for-loop as well.
53955395
Expr *Divisor = BuildVarRef(NewStep);
53965396
if (Rel == BO_GE || Rel == BO_GT)
53975397
Divisor =

clang/lib/StaticAnalyzer/Core/RegionStore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,7 @@ Optional<SVal> RegionStoreManager::getConstantValFromConstArrayInitializer(
17891789
SmallVector<uint64_t, 2> Extents = getConstantArrayExtents(CAT);
17901790

17911791
// The number of offsets should equal to the numbers of extents,
1792-
// otherwise wrong type punning occured. For instance:
1792+
// otherwise wrong type punning occurred. For instance:
17931793
// int arr[1][2][3];
17941794
// auto ptr = (int(*)[42])arr;
17951795
// auto x = ptr[4][2]; // UB

clang/lib/StaticAnalyzer/Core/TextDiagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class TextDiagnostics : public PathDiagnosticConsumer {
129129

130130
Rewriter Rewrite(SM, LO);
131131
if (!applyAllReplacements(Repls, Rewrite)) {
132-
llvm::errs() << "An error occured during applying fix-it.\n";
132+
llvm::errs() << "An error occurred during applying fix-it.\n";
133133
}
134134

135135
Rewrite.overwriteChangedFiles();

clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ static Error UnbundleArchive() {
12901290
} // End of processing of all bundle entries of this child of input archive.
12911291
} // End of while over children of input archive.
12921292

1293-
assert(!ArchiveErr && "Error occured while reading archive!");
1293+
assert(!ArchiveErr && "Error occurred while reading archive!");
12941294

12951295
/// Write out an archive for each target
12961296
for (auto &Target : TargetNames) {

llvm/include/llvm/ADT/IntrusiveRefCntPtr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ template <class Derived> class RefCountedBase {
8484
#ifndef NDEBUG
8585
~RefCountedBase() {
8686
assert(RefCount == 0 &&
87-
"Destruction occured when there are still references to this.");
87+
"Destruction occurred when there are still references to this.");
8888
}
8989
#else
9090
// Default the destructor in release builds, A trivial destructor may enable
@@ -115,7 +115,7 @@ template <class Derived> class ThreadSafeRefCountedBase {
115115
#ifndef NDEBUG
116116
~ThreadSafeRefCountedBase() {
117117
assert(RefCount == 0 &&
118-
"Destruction occured when there are still references to this.");
118+
"Destruction occurred when there are still references to this.");
119119
}
120120
#else
121121
// Default the destructor in release builds, A trivial destructor may enable

llvm/include/llvm/CodeGen/ISDOpcodes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ enum NodeType {
294294
/// subtraction. These nodes take three operands: The first two are normal lhs
295295
/// and rhs to the add or sub, and the third is a boolean indicating if there
296296
/// is an incoming carry. They produce two results: the normal result of the
297-
/// add or sub, and a boolean that indicates if an overflow occured (*not*
297+
/// add or sub, and a boolean that indicates if an overflow occurred (*not*
298298
/// flag, because it may be a store to memory, etc.). If the type of the
299299
/// boolean is not i1 then the high bits conform to getBooleanContents.
300300
SADDO_CARRY,

llvm/include/llvm/Support/MathExtras.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ extern const float huge_valf;
906906

907907

908908
/// Add two signed integers, computing the two's complement truncated result,
909-
/// returning true if overflow occured.
909+
/// returning true if overflow occurred.
910910
template <typename T>
911911
std::enable_if_t<std::is_signed<T>::value, T> AddOverflow(T X, T Y, T &Result) {
912912
#if __has_builtin(__builtin_add_overflow)

llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ void DWARFUnit::extractDIEsToVector(
407407
assert((Parents.back() == UINT32_MAX || Parents.back() <= Dies.size()) &&
408408
"Wrong parent index");
409409

410-
// Extract die. Stop if any error occured.
410+
// Extract die. Stop if any error occurred.
411411
if (!DIE.extractFast(*this, &DIEOffset, DebugInfoData, NextCUOffset,
412412
Parents.back()))
413413
break;

llvm/lib/TableGen/TGLexer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,15 +337,15 @@ class TGLexer {
337337
//
338338
// The method returns true upon reaching the first non-whitespace symbol
339339
// or EOF, CurPtr is set to point to this symbol. The method returns false,
340-
// if an error occured during skipping of a C-style comment.
340+
// if an error occurred during skipping of a C-style comment.
341341
bool prepSkipLineBegin();
342342

343343
// Skip any whitespaces or comments after a preprocessing directive.
344344
// The method returns true upon reaching either end of the line
345345
// or end of the file. If there is a multiline C-style comment
346346
// after the preprocessing directive, the method skips
347347
// the comment, so the final CurPtr may point to one of the next lines.
348-
// The method returns false, if an error occured during skipping
348+
// The method returns false, if an error occurred during skipping
349349
// C- or C++-style comment, or a non-whitespace symbol appears
350350
// after the preprocessing directive.
351351
//

llvm/lib/Transforms/IPO/Attributor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ Attributor::getAssumedSimplified(const IRPosition &IRP,
991991
for (auto &CB : SimplificationCallbacks.lookup(IRP))
992992
return CB(IRP, AA, UsedAssumedInformation);
993993

994-
// If no high-level/outside simplification occured, use AAValueSimplify.
994+
// If no high-level/outside simplification occurred, use AAValueSimplify.
995995
const auto &ValueSimplifyAA =
996996
getOrCreateAAFor<AAValueSimplify>(IRP, AA, DepClassTy::NONE);
997997
Optional<Value *> SimplifiedV =

llvm/test/Transforms/LowerConstantIntrinsics/stale-worklist-phi.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; RUN: opt -lower-constant-intrinsics -S < %s | FileCheck %s
22

3-
; This is a reproducer for a heap-use-after-free bug that occured due to trying
3+
; This is a reproducer for a heap-use-after-free bug that occurred due to trying
44
; to process a PHI node that was removed in a preceding worklist iteration. The
55
; conditional branch in %cont2.i will be replaced with an unconditional branch
66
; to %cont4.i. As a result of that, the PHI node in %handler.type_mismatch3.i

llvm/utils/reduce_pipeline_test/fake_opt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
if args.output:
6868
shutil.copy(args.input, args.output)
6969

70-
# Crash if all 'crash_seq' passes occured in right order.
70+
# Crash if all 'crash_seq' passes occurred in right order.
7171
if len(crash_seq) == 0:
7272
print('crash')
7373
os.kill(os.getpid(), signal.SIGKILL)

0 commit comments

Comments
 (0)