diff options
author | Alexander Kornienko <alexfh@google.com> | 2018-04-06 15:14:32 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2018-04-06 15:14:32 +0000 |
commit | 2a8c18d99118827ff752cc8952a2096f33715f31 (patch) | |
tree | 5fbe7871948cb2c241487ca9ee86159891d67b64 /clang/lib/Parse/ParseDecl.cpp | |
parent | ad768585ff488cf01588b2d0caa1f95260031cdc (diff) | |
download | llvm-2a8c18d99118827ff752cc8952a2096f33715f31.zip llvm-2a8c18d99118827ff752cc8952a2096f33715f31.tar.gz llvm-2a8c18d99118827ff752cc8952a2096f33715f31.tar.bz2 |
Fix typos in clang
Found via codespell -q 3 -I ../clang-whitelist.txt
Where whitelist consists of:
archtype
cas
classs
checkk
compres
definit
frome
iff
inteval
ith
lod
methode
nd
optin
ot
pres
statics
te
thru
Patch by luzpaz! (This is a subset of D44188 that applies cleanly with a few
files that have dubious fixes reverted.)
Differential revision: https://reviews.llvm.org/D44188
llvm-svn: 329399
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 0e02acd..8ce4c9a 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -2468,7 +2468,7 @@ bool Parser::ParseImplicitInt(DeclSpec &DS, CXXScopeSpec *SS, SourceLocation Loc = Tok.getLocation(); // If we see an identifier that is not a type name, we normally would - // parse it as the identifer being declared. However, when a typename + // parse it as the identifier being declared. However, when a typename // is typo'd or the definition is not included, this will incorrectly // parse the typename as the identifier name and fall over misparsing // later parts of the diagnostic. @@ -5124,7 +5124,7 @@ void Parser::ParseTypeQualifierListOpt( getLangOpts()); break; case tok::kw___uptr: - // GNU libc headers in C mode use '__uptr' as an identifer which conflicts + // GNU libc headers in C mode use '__uptr' as an identifier which conflicts // with the MS modifier keyword. if ((AttrReqs & AR_DeclspecAttributesParsed) && !getLangOpts().CPlusPlus && IdentifierRequired && DS.isEmpty() && NextToken().is(tok::semi)) { |