Skip to content

Commit b7ecf1c

Browse files
kiszkAaronBallman
authored andcommitted
NFC: Fix trivial typos in comments
1 parent ca8b20c commit b7ecf1c

File tree

68 files changed

+80
-80
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+80
-80
lines changed

clang-tools-extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ bool mergeAndDeduplicate(const TUReplacements &TUs, const TUDiagnostics &TUDs,
207207
// FIXME: This will report conflicts by pair using a file+offset format
208208
// which is not so much human readable.
209209
// A first improvement could be to translate offset to line+col. For
210-
// this and without loosing error message some modifications arround
210+
// this and without loosing error message some modifications around
211211
// `tooling::ReplacementError` are need (access to
212212
// `getReplacementErrString`).
213213
// A better strategy could be to add a pretty printer methods for

clang-tools-extra/clang-doc/BitcodeReader.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ClangDocBitcodeReader {
6161
// or block to be read.
6262
Cursor skipUntilRecordOrBlock(unsigned &BlockOrRecordID);
6363

64-
// Helper function to set up the approriate type of Info.
64+
// Helper function to set up the appropriate type of Info.
6565
llvm::Expected<std::unique_ptr<Info>> readBlockToInfo(unsigned ID);
6666

6767
llvm::BitstreamCursor &Stream;

clang-tools-extra/clang-doc/Representation.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ struct Reference {
135135
bool mergeable(const Reference &Other);
136136
void merge(Reference &&I);
137137

138-
SymbolID USR = SymbolID(); // Unique identifer for referenced decl
138+
SymbolID USR = SymbolID(); // Unique identifier for referenced decl
139139
SmallString<16> Name; // Name of type (possibly unresolved).
140140
InfoType RefType = InfoType::IT_default; // Indicates the type of this
141141
// Reference (namespace, record,

clang-tools-extra/clang-doc/Serialize.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ populateParentNamespaces(llvm::SmallVector<Reference, 4> &Namespaces,
3232
// A function to extract the appropriate relative path for a given info's
3333
// documentation. The path returned is a composite of the parent namespaces.
3434
//
35-
// Example: Given the below, the diretory path for class C info will be
35+
// Example: Given the below, the directory path for class C info will be
3636
// <root>/A/B
3737
//
3838
// namespace A {

clang-tools-extra/clang-doc/tool/ClangDocMain.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// This tool for generating C and C++ documenation from source code
9+
// This tool for generating C and C++ documentation from source code
1010
// and comments. Generally, it runs a LibTooling FrontendAction on source files,
1111
// mapping each declaration in those files to its USR and serializing relevant
1212
// information into LLVM bitcode. It then runs a pass over the collected

clang-tools-extra/clang-include-fixer/IncludeFixerContext.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ std::string createQualifiedNameForReplacement(
2626
llvm::StringRef RawSymbolName,
2727
llvm::StringRef SymbolScopedQualifiersName,
2828
const find_all_symbols::SymbolInfo &MatchedSymbol) {
29-
// No need to add missing qualifiers if SymbolIndentifer has a global scope
29+
// No need to add missing qualifiers if SymbolIdentifier has a global scope
3030
// operator "::".
3131
if (RawSymbolName.startswith("::"))
3232
return RawSymbolName;

clang-tools-extra/clang-include-fixer/tool/clang-include-fixer.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ buffer as only argument."
110110
nil)
111111

112112
(defun clang-include-fixer--make-process (callback args)
113-
"Start a new clang-incude-fixer process using `make-process'.
113+
"Start a new clang-include-fixer process using `make-process'.
114114
CALLBACK is called after the process finishes successfully; it is
115115
called with a single argument, the buffer where standard output
116116
has been inserted. ARGS is a list of additional command line
@@ -129,7 +129,7 @@ arguments. Return the new process object."
129129
:stderr stderr)))
130130

131131
(defun clang-include-fixer--start-process (callback args)
132-
"Start a new clang-incude-fixer process using `start-file-process'.
132+
"Start a new clang-include-fixer process using `start-file-process'.
133133
CALLBACK is called after the process finishes successfully; it is
134134
called with a single argument, the buffer where standard output
135135
has been inserted. ARGS is a list of additional command line

clang-tools-extra/clang-move/tool/ClangMove.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- ClangMove.cpp - move defintion to new file --------------*- C++ -*-===//
1+
//===-- ClangMove.cpp - move definition to new file -------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

clang-tools-extra/clang-tidy/abseil/FasterStrsplitDelimiterCheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void FasterStrsplitDelimiterCheck::registerMatchers(MatchFinder *Finder) {
6565
expr(ignoringParenCasts(stringLiteral(lengthIsOne()).bind("Literal")));
6666

6767
// Binds to a string_view (either absl or std) that was passed by value and
68-
// contructed from string literal.
68+
// constructed from string literal.
6969
auto StringViewArg = ignoringElidableConstructorCall(ignoringImpCasts(
7070
cxxConstructExpr(hasType(recordDecl(hasName("::absl::string_view"))),
7171
hasArgument(0, ignoringParenImpCasts(SingleChar)))));

clang-tools-extra/clang-tidy/abseil/TimeSubtractionCheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ void TimeSubtractionCheck::check(const MatchFinder::MatchResult &Result) {
168168
!InsideMacroDefinition(Result, MaybeCallArg->getSourceRange())) {
169169
// Handle the case where the matched expression is inside a call which
170170
// converts it from the inverse to a Duration. In this case, we replace
171-
// the outer with just the subtraction expresison, which gives the right
171+
// the outer with just the subtraction expression, which gives the right
172172
// type and scale, taking care again about parenthesis.
173173
bool NeedParens = parensRequired(Result, MaybeCallArg);
174174

clang-tools-extra/clang-tidy/bugprone/ForwardDeclarationNamespaceCheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void ForwardDeclarationNamespaceCheck::check(
6363
const auto *Decl = Result.Nodes.getNodeAs<FriendDecl>("friend_decl");
6464
assert(Decl && "Decl is neither record_decl nor friend decl!");
6565

66-
// Classes used in friend delarations are not marked referenced in AST,
66+
// Classes used in friend declarations are not marked referenced in AST,
6767
// so we need to check classes used in friend declarations manually to
6868
// reduce the rate of false positive.
6969
// For example, in

clang-tools-extra/clang-tidy/bugprone/StringLiteralWithEmbeddedNulCheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ AST_MATCHER(StringLiteral, containsNul) {
2727

2828
void StringLiteralWithEmbeddedNulCheck::registerMatchers(MatchFinder *Finder) {
2929
// Match a string that contains embedded NUL character. Extra-checks are
30-
// applied in |check| to find incorectly escaped characters.
30+
// applied in |check| to find incorrectly escaped characters.
3131
Finder->addMatcher(stringLiteral(containsNul()).bind("strlit"), this);
3232

3333
// The remaining checks only apply to C++.

clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ AST_MATCHER(CXXRecordDecl, hasDefaultConstructor) {
3131
}
3232

3333
// Iterate over all the fields in a record type, both direct and indirect (e.g.
34-
// if the record contains an anonmyous struct).
34+
// if the record contains an anonymous struct).
3535
template <typename T, typename Func>
3636
void forEachField(const RecordDecl &Record, const T &Fields, Func &&Fn) {
3737
for (const FieldDecl *F : Fields) {
@@ -424,7 +424,7 @@ void ProTypeMemberInitCheck::checkMissingMemberInitializer(
424424
}
425425

426426
// Collect all fields in order, both direct fields and indirect fields from
427-
// anonmyous record types.
427+
// anonymous record types.
428428
SmallVector<const FieldDecl *, 16> OrderedFields;
429429
forEachField(ClassDecl, ClassDecl.fields(),
430430
[&](const FieldDecl *F) { OrderedFields.push_back(F); });

clang-tools-extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void SlicingCheck::registerMatchers(MatchFinder *Finder) {
4545
const auto IsWithinDerivedCtor =
4646
hasParent(cxxConstructorDecl(ofClass(equalsBoundNode("DerivedDecl"))));
4747

48-
// Assignement slicing: "a = b;" and "a = std::move(b);" variants.
48+
// Assignment slicing: "a = b;" and "a = std::move(b);" variants.
4949
const auto SlicesObjectInAssignment =
5050
callExpr(callee(cxxMethodDecl(anyOf(isCopyAssignmentOperator(),
5151
isMoveAssignmentOperator()),

clang-tools-extra/clang-tidy/google/GlobalNamesInHeadersCheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void GlobalNamesInHeadersCheck::check(const MatchFinder::MatchResult &Result) {
6161

6262
if (const auto *UsingDirective = dyn_cast<UsingDirectiveDecl>(D)) {
6363
if (UsingDirective->getNominatedNamespace()->isAnonymousNamespace()) {
64-
// Anynoumous namespaces inject a using directive into the AST to import
64+
// Anonymous namespaces inject a using directive into the AST to import
6565
// the names into the containing namespace.
6666
// We should not have them in headers, but there is another warning for
6767
// that.

clang-tools-extra/clang-tidy/google/IntegerTypesCheck.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace runtime {
2424
/// Finds uses of `short`, `long` and `long long` and suggest replacing them
2525
/// with `u?intXX(_t)?`.
2626
///
27-
/// Correspondig cpplint.py check: 'runtime/int'.
27+
/// Corresponding cpplint.py check: 'runtime/int'.
2828
class IntegerTypesCheck : public ClangTidyCheck {
2929
public:
3030
IntegerTypesCheck(StringRef Name, ClangTidyContext *Context);

clang-tools-extra/clang-tidy/modernize/AvoidCArraysCheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace tidy {
4343
namespace modernize {
4444

4545
void AvoidCArraysCheck::registerMatchers(MatchFinder *Finder) {
46-
// std::array<> is avaliable since C++11.
46+
// std::array<> is available since C++11.
4747
if (!getLangOpts().CPlusPlus11)
4848
return;
4949

clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ bool MakeSmartPtrCheck::replaceNew(DiagnosticBuilder &Diag,
376376
// struct S { S(std::initializer_list<int>); };
377377
// struct S2 { S2(S, int); };
378378
// smart_ptr<S>(new S{1, 2, 3}); // C++11 direct list-initialization
379-
// smart_ptr<S>(new S{}); // use initializer-list consturctor
379+
// smart_ptr<S>(new S{}); // use initializer-list constructor
380380
// smart_ptr<S2>()new S2{ {1,2}, 3 }; // have a list-initialized arg
381381
// The above cases have to be replaced with:
382382
// std::make_smart_ptr<S>(std::initializer_list<int>({1, 2, 3}));

clang-tools-extra/clang-tidy/modernize/UseAutoCheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ void UseAutoCheck::replaceIterators(const DeclStmt *D, ASTContext *Context) {
359359
}
360360

361361
if (const auto *NestedConstruct = dyn_cast<CXXConstructExpr>(E)) {
362-
// If we ran into an implicit conversion contructor, can't convert.
362+
// If we ran into an implicit conversion constructor, can't convert.
363363
//
364364
// FIXME: The following only checks if the constructor can be used
365365
// implicitly, not if it actually was. Cases where the converting

clang-tools-extra/clang-tidy/modernize/UseNullptrCheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ AST_MATCHER(Type, sugaredNullptrType) {
3333
/// Create a matcher that finds implicit casts as well as the head of a
3434
/// sequence of zero or more nested explicit casts that have an implicit cast
3535
/// to null within.
36-
/// Finding sequences of explict casts is necessary so that an entire sequence
36+
/// Finding sequences of explicit casts is necessary so that an entire sequence
3737
/// can be replaced instead of just the inner-most implicit cast.
3838
StatementMatcher makeCastSequenceMatcher() {
3939
StatementMatcher ImplicitCastToNull = implicitCastExpr(

clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace performance {
1919
///
2020
/// Associative containers implements some of the algorithms as methods which
2121
/// should be preferred to the algorithms in the algorithm header. The methods
22-
/// can take advanatage of the order of the elements.
22+
/// can take advantage of the order of the elements.
2323
class InefficientAlgorithmCheck : public ClangTidyCheck {
2424
public:
2525
InefficientAlgorithmCheck(StringRef Name, ClangTidyContext *Context)

clang-tools-extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void InefficientVectorOperationCheck::registerMatchers(MatchFinder *Finder) {
165165

166166
// A method's name starts with "add_" might not mean it's an add field
167167
// call; it could be the getter for a proto field of which the name starts
168-
// with "add_". So we exlude const methods.
168+
// with "add_". So we exclude const methods.
169169
const auto AddFieldMethodDecl =
170170
cxxMethodDecl(matchesName("::add_"), unless(isConst()));
171171
AddMatcher(ProtoDecl, ProtoVarDeclName, ProtoVarDeclStmtName,

clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class IdentifierNamingCheck : public ClangTidyCheck {
8484
};
8585

8686
/// Holds an identifier name check failure, tracking the kind of the
87-
/// identifer, its possible fixup and the starting locations of all the
87+
/// identifier, its possible fixup and the starting locations of all the
8888
/// identifier usages.
8989
struct NamingCheckFailure {
9090
std::string KindName;

clang-tools-extra/clang-tidy/readability/InconsistentDeclarationParameterNameCheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ bool checkIfFixItHintIsApplicable(
7373
if (!ParameterSourceDeclaration->isThisDeclarationADefinition())
7474
return false;
7575

76-
// Assumption: if parameter is not referenced in function defintion body, it
76+
// Assumption: if parameter is not referenced in function definition body, it
7777
// may indicate that it's outdated, so don't touch it.
7878
if (!SourceParam->isReferenced())
7979
return false;

clang-tools-extra/clang-tidy/utils/ExceptionAnalyzer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace utils {
2424
class ExceptionAnalyzer {
2525
public:
2626
enum class State : std::int8_t {
27-
Throwing = 0, ///< The function can definitly throw given an AST.
27+
Throwing = 0, ///< The function can definitely throw given an AST.
2828
NotThrowing = 1, ///< This function can not throw, given an AST.
2929
Unknown = 2, ///< This can happen for extern functions without available
3030
///< definition.

clang-tools-extra/clang-tidy/utils/NamespaceAliaser.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ NamespaceAliaser::createAlias(ASTContext &Context, const Stmt &Statement,
3838
return None;
3939

4040
// FIXME: Doesn't consider the order of declarations.
41-
// If we accidentially pick an alias defined later in the function,
41+
// If we accidentally pick an alias defined later in the function,
4242
// the output won't compile.
4343
// FIXME: Also doesn't consider file or class-scope aliases.
4444

clang-tools-extra/clangd/AST.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ llvm::Optional<SymbolID> getSymbolID(const llvm::StringRef MacroName,
7979
const SourceManager &SM);
8080

8181
/// Returns a QualType as string. The result doesn't contain unwritten scopes
82-
/// like annoymous/inline namespace.
82+
/// like anonymous/inline namespace.
8383
std::string printType(const QualType QT, const DeclContext &CurContext);
8484

8585
/// Indicates if \p D is a template instantiation implicitly generated by the

clang-tools-extra/clangd/ClangdLSPServer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class ClangdLSPServer : private DiagnosticsConsumer {
212212
bool UseDirBasedCDB; // FIXME: make this a capability.
213213
llvm::Optional<Path> CompileCommandsDir; // FIXME: merge with capability?
214214
std::unique_ptr<GlobalCompilationDatabase> BaseCDB;
215-
// CDB is BaseCDB plus any comands overridden via LSP extensions.
215+
// CDB is BaseCDB plus any commands overridden via LSP extensions.
216216
llvm::Optional<OverlayCDB> CDB;
217217
ClangdServer::Options ClangdServerOpts;
218218
llvm::Optional<OffsetEncoding> NegotiatedOffsetEncoding;

clang-tools-extra/clangd/CodeComplete.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ class CodeCompleteFlow {
15101510
}
15111511

15121512
// Merges Sema and Index results where possible, to form CompletionCandidates.
1513-
// \p Identifiers is raw idenfiers that can also be completion candidates.
1513+
// \p Identifiers is raw identifiers that can also be completion candidates.
15141514
// Identifiers are not merged with results from index or sema.
15151515
// Groups overloads if desired, to form CompletionCandidate::Bundles. The
15161516
// bundles are scored and top results are returned, best to worst.

clang-tools-extra/clangd/Context.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class Context {
8383
public:
8484
/// Same as Context::empty(), please use Context::empty() instead.
8585
/// Constructor is defined to workaround a bug in MSVC's version of STL.
86-
/// (arguments of std::future<> must be default-construcitble in MSVC).
86+
/// (arguments of std::future<> must be default-constructible in MSVC).
8787
Context() = default;
8888

8989
/// Copy operations for this class are deleted, use an explicit clone() method

clang-tools-extra/clangd/FindTarget.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ llvm::SmallVector<ReferenceLoc, 2> refInDecl(const Decl *D) {
485485
}
486486

487487
void VisitUsingDecl(const UsingDecl *D) {
488-
// "using ns::identifer;" is a non-declaration reference.
488+
// "using ns::identifier;" is a non-declaration reference.
489489
Refs.push_back(
490490
ReferenceLoc{D->getQualifierLoc(), D->getLocation(), /*IsDecl=*/false,
491491
explicitReferenceTargets(DynTypedNode::create(*D),

clang-tools-extra/clangd/Hover.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ llvm::Optional<std::string> printExprValue(const Expr *E,
295295
llvm::Optional<std::string> printExprValue(const SelectionTree::Node *N,
296296
const ASTContext &Ctx) {
297297
for (; N; N = N->Parent) {
298-
// Try to evaluate the first evaluable enclosing expression.
298+
// Try to evaluate the first evaluatable enclosing expression.
299299
if (const Expr *E = N->ASTNode.get<Expr>()) {
300300
if (auto Val = printExprValue(E, Ctx))
301301
return Val;

clang-tools-extra/clangd/IncludeFixer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ std::vector<Fix> IncludeFixer::fix(DiagnosticsEngine::Level DiagLevel,
9595
case diag::err_no_member: // Could be no member in namespace.
9696
case diag::err_no_member_suggest:
9797
if (LastUnresolvedName) {
98-
// Try to fix unresolved name caused by missing declaraion.
98+
// Try to fix unresolved name caused by missing declaration.
9999
// E.g.
100100
// clang::SourceManager SM;
101101
// ~~~~~~~~~~~~~
@@ -161,7 +161,7 @@ std::vector<Fix> IncludeFixer::fixesForSymbols(const SymbolSlab &Syms) const {
161161
};
162162

163163
std::vector<Fix> Fixes;
164-
// Deduplicate fixes by include headers. This doesn't distiguish symbols in
164+
// Deduplicate fixes by include headers. This doesn't distinguish symbols in
165165
// different scopes from the same header, but this case should be rare and is
166166
// thus ignored.
167167
llvm::StringSet<> InsertedHeaders;

clang-tools-extra/clangd/ParsedAST.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class ParsedAST {
8888

8989
const std::vector<Diag> &getDiagnostics() const;
9090

91-
/// Returns the esitmated size of the AST and the accessory structures, in
91+
/// Returns the estimated size of the AST and the accessory structures, in
9292
/// bytes. Does not include the size of the preamble.
9393
std::size_t getUsedBytes() const;
9494
const IncludeStructure &getIncludeStructure() const;

clang-tools-extra/clangd/Protocol.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ llvm::json::Value toJSON(const Diagnostic &);
681681

682682
/// A LSP-specific comparator used to find diagnostic in a container like
683683
/// std:map.
684-
/// We only use the required fields of Diagnostic to do the comparsion to avoid
684+
/// We only use the required fields of Diagnostic to do the comparison to avoid
685685
/// any regression issues from LSP clients (e.g. VScode), see
686686
/// https://git.io/vbr29
687687
struct LSPDiagnosticCompare {

clang-tools-extra/clangd/SemanticHighlighting.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ std::vector<SemanticHighlightingInformation>
8383
toSemanticHighlightingInformation(llvm::ArrayRef<LineHighlightings> Tokens);
8484

8585
/// Return a line-by-line diff between two highlightings.
86-
/// - if the tokens on a line are the same in both hightlightings, this line is
86+
/// - if the tokens on a line are the same in both highlightings, this line is
8787
/// omitted.
8888
/// - if a line exists in New but not in Old, the tokens on this line are
8989
/// emitted.

clang-tools-extra/clangd/TUScheduler.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ struct InputsAndAST {
3939
struct InputsAndPreamble {
4040
llvm::StringRef Contents;
4141
const tooling::CompileCommand &Command;
42-
// This can be nullptr if no preamble is availble.
42+
// This can be nullptr if no preamble is available.
4343
const PreambleData *Preamble;
4444
};
4545

clang-tools-extra/clangd/Trace.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace clangd {
2727
namespace trace {
2828

2929
/// A consumer of trace events. The events are produced by Spans and trace::log.
30-
/// Implmentations of this interface must be thread-safe.
30+
/// Implementations of this interface must be thread-safe.
3131
class EventTracer {
3232
public:
3333
virtual ~EventTracer() = default;

clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export function activate(context: vscode.ExtensionContext) {
9494
{ scheme: 'file', language: 'objective-cpp'}
9595
],
9696
synchronize: !syncFileEvents ? undefined : {
97-
// FIXME: send sync file events when clangd provides implemenatations.
97+
// FIXME: send sync file events when clangd provides implementations.
9898
},
9999
initializationOptions: { clangdFileStatus: true },
100100
// Do not switch to output window when clangd returns output

clang-tools-extra/clangd/index/CanonicalIncludes.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- CanonicalIncludes.h - remap #inclue headers--------------*- C++ -*-===//
1+
//===-- CanonicalIncludes.h - remap #include headers-------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

0 commit comments

Comments
 (0)