This revision fixes typos where there are 2 consecutive words which are duplicated.
There should be no code changes in this revision (only changes to comments and docs).
Do let me know if there are any undesirable changes in this revision. Thanks.
LastPragmaKeepInMainFileLine =
SM.getLineNumber(SM.getMainFileID(), Offset) - 1;
} else {
- // Memorize headers that that have export pragmas in them. Include Cleaner
+ // Memorize headers that have export pragmas in them. Include Cleaner
// does not support them properly yet, so they will be not marked as
// unused.
// FIXME: Once IncludeCleaner supports export pragmas, remove this.
bool fromJSON(const llvm::json::Value &Params, SemanticTokensDeltaParams &R,
llvm::json::Path);
-/// Describes a a replacement of a contiguous range of semanticTokens.
+/// Describes a replacement of a contiguous range of semanticTokens.
struct SemanticTokensEdit {
// LSP specifies `start` and `deleteCount` which are relative to the array
// encoding of the previous tokens.
// Implausible if upperbound(Tok) < First.
if (auto Offset = LastAffectedToken(Tok.location()))
return *Offset < First;
- // A prefix of the expanded tokens may be from an an implicit
+ // A prefix of the expanded tokens may be from an implicit
// inclusion (e.g. preamble patch, or command-line -include).
return true;
});
/// threads, remove()s mostly from the main thread, and get() from ASTWorker.
/// Writes are rare and reads are cheap, so we don't expect much contention.
class TUScheduler::HeaderIncluderCache {
- // We should be be a little careful how we store the include graph of open
+ // We should be a little careful how we store the include graph of open
// files, as each can have a large number of transitive headers.
// This representation is O(unique transitive source files).
llvm::BumpPtrAllocator Arena;
/// Returns the overridden include for symbol with \p QualifiedName, or "".
llvm::StringRef mapSymbol(llvm::StringRef QualifiedName) const;
- /// Returns the overridden include for for files in \p Header, or "".
+ /// Returns the overridden include for files in \p Header, or "".
llvm::StringRef mapHeader(FileEntryRef Header) const;
/// Adds mapping for system headers and some special symbols (e.g. STL symbols
// When children are sorted by the estimateSize(), sync() calls are more
// effective. Each sync() starts with the first child and makes sure all
// children point to the same element. If any child is "above" the previous
- // ones, the algorithm resets and and advances the children to the next
+ // ones, the algorithm resets and advances the children to the next
// highest element starting from the front. When child iterators in the
// beginning have smaller estimated size, the sync() will have less restarts
// and become more effective.
this->Next = CurrentReporter;
CurrentReporter = this;
// Don't reorder subsequent operations: whatever comes after might crash and
- // we want the the crash handler to see the reporter values we just set.
+ // we want the crash handler to see the reporter values we just set.
std::atomic_signal_fence(std::memory_order_seq_cst);
}
assert(CurrentReporter == this);
CurrentReporter = this->Next;
// Don't reorder subsequent operations: whatever comes after might crash and
- // we want the the crash handler to see the reporter values we just set.
+ // we want the crash handler to see the reporter values we just set.
std::atomic_signal_fence(std::memory_order_seq_cst);
}
<< "Didn't expect new diagnostics when adding a/foo.h";
});
- // Forcing the reload should should cause a rebuild.
+ // Forcing the reload should cause a rebuild.
Inputs.ForceRebuild = true;
updateWithDiags(
S, Source, Inputs, WantDiagnostics::Yes,
Argv.push_back("-include");
Argv.push_back(ImplicitHeaderGuard ? ImportThunk : FullHeaderName);
// ms-compatibility changes the meaning of #import.
- // The default is OS-dependent (on on windows), ensure it's off.
+ // The default is OS-dependent (on windows), ensure it's off.
if (ImplicitHeaderGuard)
Inputs.CompileCommand.CommandLine.push_back("-fno-ms-compatibility");
}
auto RelativePath = ProtobufMarshaller.uriToRelativePath(
testPathURI("remote/project/lib/File.cpp", Strings));
ASSERT_TRUE(bool(RelativePath));
- // RemoteIndexRoot has to be be a prefix of the file path.
+ // RemoteIndexRoot has to be a prefix of the file path.
Marshaller WrongMarshaller(
/*RemoteIndexRoot=*/testPath("remote/other/project/"),
/*LocalIndexRoot=*/"");