Skip to content

Commit fa11365

Browse files
committed
Clean up language and grammar.
Based on a patch by [email protected]! PR19806 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209215 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent a511c92 commit fa11365

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

bindings/python/clang/cindex.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3404,8 +3404,8 @@ def set_compatibility_check(check_status):
34043404
python bindings can disable the compatibility check. This will cause
34053405
the python bindings to load, even though they are written for a newer
34063406
version of libclang. Failures now arise if unsupported or incompatible
3407-
features are accessed. The user is required to test himself if the
3408-
features he is using are available and compatible between different
3407+
features are accessed. The user is required to test themselves if the
3408+
features they are using are available and compatible between different
34093409
libclang versions.
34103410
"""
34113411
if Config.loaded:

docs/SanitizerSpecialCaseList.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ certain source-level entities to:
2424
thread stack, bypassing the frame boundaries);
2525
* ignore a known problem.
2626

27-
To achieve this, user may create a file listing the entities he wants to
27+
To achieve this, user may create a file listing the entities they want to
2828
ignore, and pass it to clang at compile-time using
2929
``-fsanitize-blacklist`` flag. See :doc:`UsersManual` for details.
3030

include/clang/Basic/DiagnosticCommentKinds.td

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let Component = "Comment" in {
1111
let CategoryName = "Documentation Issue" in {
1212

1313
// HTML parsing errors. These are under -Wdocumentation to make sure the user
14-
// knows that we didn't parse something as he might expect.
14+
// knows that we didn't parse something as they might expect.
1515

1616
def warn_doc_html_start_tag_expected_quoted_string : Warning<
1717
"expected quoted string after equals sign">,

lib/ARCMigrate/TransRetainReleaseDealloc.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class RetainReleaseDeallocRemover :
7070
// An unused autorelease is badness. If we remove it the receiver
7171
// will likely die immediately while previously it was kept alive
7272
// by the autorelease pool. This is bad practice in general, leave it
73-
// and emit an error to force the user to restructure his code.
73+
// and emit an error to force the user to restructure their code.
7474
Pass.TA.reportError("it is not safe to remove an unused 'autorelease' "
7575
"message; its receiver may be destroyed immediately",
7676
E->getLocStart(), E->getSourceRange());

lib/CodeGen/CGExpr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ void CodeGenFunction::EmitStoreThroughGlobalRegLValue(RValue Src, LValue Dst) {
16101610
Builder.CreateCall2(F, RegName, Value);
16111611
}
16121612

1613-
// setObjCGCLValueClass - sets class of he lvalue for the purpose of
1613+
// setObjCGCLValueClass - sets class of the lvalue for the purpose of
16141614
// generating write-barries API. It is currently a global, ivar,
16151615
// or neither.
16161616
static void setObjCGCLValueClass(const ASTContext &Ctx, const Expr *E,

lib/Sema/SemaObjCProperty.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,7 @@ void Sema::DiagnoseUnimplementedProperties(Scope *S, ObjCImplDecl* IMPDecl,
16771677
// Lazily construct a set of all the properties in the @interface
16781678
// of the class, without looking at the superclass. We cannot
16791679
// use the call to CollectImmediateProperties() above as that
1680-
// utilizes information fromt he super class's properties as well
1680+
// utilizes information from the super class's properties as well
16811681
// as scans the adopted protocols. This work only triggers for protocols
16821682
// with the attribute, which is very rare, and only occurs when
16831683
// analyzing the @implementation.

lib/StaticAnalyzer/Checkers/CheckSizeofPointer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void WalkAST::VisitUnaryExprOrTypeTraitExpr(UnaryExprOrTypeTraitExpr *E) {
4747
if (E->getKind() != UETT_SizeOf)
4848
return;
4949

50-
// If an explicit type is used in the code, usually the coder knows what he is
50+
// If an explicit type is used in the code, usually the coder knows what they are
5151
// doing.
5252
if (E->isArgumentType())
5353
return;

test/Analysis/misc-ps-region-store.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1362,5 +1362,5 @@ int rdar11125868() {
13621362
int rdar11125868_positive() {
13631363
int integersStackArray[1];
13641364
int *integers = integersStackArray;
1365-
return integers[0] == 0; // expected-warning {{he left operand of '==' is a}}
1365+
return integers[0] == 0; // expected-warning {{the left operand of '==' is a}}
13661366
}

test/CXX/except/except.spec/p11.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %clang_cc1 -std=c++11 -fexceptions -fcxx-exceptions -fsyntax-only -verify %s
22
// expected-no-diagnostics
33

4-
// This is the "let the user shoot himself in the foot" clause.
4+
// This is the "let the user shoot themselves in the foot" clause.
55
void f() noexcept {
66
throw 0; // no-error
77
}

0 commit comments

Comments
 (0)