Author: maskray Date: Sat Sep 1 00:47:03 2018 New Revision: 341273 URL: http://llvm.org/viewvc/llvm-project?rev=341273&view=rev Log: [clangd] Fix many typos. NFC
Modified: clang-tools-extra/trunk/clangd/Logger.h clang-tools-extra/trunk/clangd/index/FileIndex.h clang-tools-extra/trunk/clangd/index/Index.cpp clang-tools-extra/trunk/clangd/index/Index.h clang-tools-extra/trunk/clangd/index/MemIndex.cpp clang-tools-extra/trunk/clangd/index/Merge.cpp clang-tools-extra/trunk/clangd/index/Merge.h clang-tools-extra/trunk/clangd/index/SymbolCollector.h clang-tools-extra/trunk/clangd/index/dex/Trigram.h Modified: clang-tools-extra/trunk/clangd/Logger.h URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/Logger.h?rev=341273&r1=341272&r2=341273&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/Logger.h (original) +++ clang-tools-extra/trunk/clangd/Logger.h Sat Sep 1 00:47:03 2018 @@ -56,7 +56,7 @@ void log(Logger::Level L, const char *Fm template <typename... Ts> void elog(const char *Fmt, Ts &&... Vals) { detail::log(Logger::Error, Fmt, std::forward<Ts>(Vals)...); } -// log() is used for information important to understanding a clangd session. +// log() is used for information important to understand a clangd session. // e.g. the names of LSP messages sent are logged at this level. // This level could be enabled in production builds to allow later inspection. template <typename... Ts> void log(const char *Fmt, Ts &&... Vals) { Modified: clang-tools-extra/trunk/clangd/index/FileIndex.h URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/FileIndex.h?rev=341273&r1=341272&r2=341273&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/index/FileIndex.h (original) +++ clang-tools-extra/trunk/clangd/index/FileIndex.h Sat Sep 1 00:47:03 2018 @@ -36,7 +36,7 @@ namespace clangd { /// the snapshot, either this class or the symbol index. /// /// The snapshot semantics keeps critical sections minimal since we only need -/// locking when we swap or obtain refereces to snapshots. +/// locking when we swap or obtain references to snapshots. class FileSymbols { public: /// \brief Updates all symbols and occurrences in a file. @@ -60,7 +60,7 @@ private: llvm::StringMap<std::shared_ptr<SymbolOccurrenceSlab>> FileToOccurrenceSlabs; }; -/// \brief This manages symbls from files and an in-memory index on all symbols. +/// \brief This manages symbols from files and an in-memory index on all symbols. class FileIndex : public SymbolIndex { public: /// If URISchemes is empty, the default schemes in SymbolCollector will be Modified: clang-tools-extra/trunk/clangd/index/Index.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/Index.cpp?rev=341273&r1=341272&r2=341273&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/index/Index.cpp (original) +++ clang-tools-extra/trunk/clangd/index/Index.cpp Sat Sep 1 00:47:03 2018 @@ -152,7 +152,7 @@ void SymbolOccurrenceSlab::insert(const } void SymbolOccurrenceSlab::freeze() { - // Deduplicate symbol occurrenes. + // Deduplicate symbol occurrences. for (auto &IDAndOccurrence : Occurrences) { auto &Occurrence = IDAndOccurrence.getSecond(); std::sort(Occurrence.begin(), Occurrence.end()); Modified: clang-tools-extra/trunk/clangd/index/Index.h URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/Index.h?rev=341273&r1=341272&r2=341273&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/index/Index.h (original) +++ clang-tools-extra/trunk/clangd/index/Index.h Sat Sep 1 00:47:03 2018 @@ -456,7 +456,7 @@ public: /// CrossReference finds all symbol occurrences (e.g. references, /// declarations, definitions) and applies \p Callback on each result. /// - /// Resutls are returned in arbitrary order. + /// Results are returned in arbitrary order. /// /// The returned result must be deep-copied if it's used outside Callback. virtual void findOccurrences( Modified: clang-tools-extra/trunk/clangd/index/MemIndex.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/MemIndex.cpp?rev=341273&r1=341272&r2=341273&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/index/MemIndex.cpp (original) +++ clang-tools-extra/trunk/clangd/index/MemIndex.cpp Sat Sep 1 00:47:03 2018 @@ -44,7 +44,7 @@ void MemIndex::build(std::shared_ptr<std { std::lock_guard<std::mutex> Lock(Mutex); Index = std::move(TempIndex); - Symbols = std::move(Syms); // Relase old symbols. + Symbols = std::move(Syms); // Release old symbols. Occurrences = std::move(AllOccurrences); } Modified: clang-tools-extra/trunk/clangd/index/Merge.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/Merge.cpp?rev=341273&r1=341272&r2=341273&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/index/Merge.cpp (original) +++ clang-tools-extra/trunk/clangd/index/Merge.cpp Sat Sep 1 00:47:03 2018 @@ -87,7 +87,7 @@ class MergedIndex : public SymbolIndex { // We consider the dynamic index authoritative and report all its // occurrences, and only report static index occurrences from other files. // - // FIXME: The heuristic fails if the dynamic index containts a file, but all + // FIXME: The heuristic fails if the dynamic index contains a file, but all // occurrences were removed (we will report stale ones from the static // index). Ultimately we should explicit check which index has the file // instead. Modified: clang-tools-extra/trunk/clangd/index/Merge.h URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/Merge.h?rev=341273&r1=341272&r2=341273&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/index/Merge.h (original) +++ clang-tools-extra/trunk/clangd/index/Merge.h Sat Sep 1 00:47:03 2018 @@ -20,7 +20,7 @@ namespace clangd { // Returned symbol may contain data owned by either source. Symbol mergeSymbol(const Symbol &L, const Symbol &R); -// mergedIndex returns a composite index based on two provided Indexes: +// mergeIndex returns a composite index based on two provided Indexes: // - the Dynamic index covers few files, but is relatively up-to-date. // - the Static index covers a bigger set of files, but is relatively stale. // The returned index attempts to combine results, and avoid duplicates. Modified: clang-tools-extra/trunk/clangd/index/SymbolCollector.h URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/SymbolCollector.h?rev=341273&r1=341272&r2=341273&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/index/SymbolCollector.h (original) +++ clang-tools-extra/trunk/clangd/index/SymbolCollector.h Sat Sep 1 00:47:03 2018 @@ -104,7 +104,7 @@ private: // All Symbols collected from the AST. SymbolSlab::Builder Symbols; // All symbol occurrences collected from the AST. - // Only symbols declared in preamble (from #inclues) and references from the + // Only symbols declared in preamble (from #include) and references from the // main file will be included. SymbolOccurrenceSlab SymbolOccurrences; ASTContext *ASTCtx; Modified: clang-tools-extra/trunk/clangd/index/dex/Trigram.h URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/dex/Trigram.h?rev=341273&r1=341272&r2=341273&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/index/dex/Trigram.h (original) +++ clang-tools-extra/trunk/clangd/index/dex/Trigram.h Sat Sep 1 00:47:03 2018 @@ -62,7 +62,7 @@ std::vector<Token> generateIdentifierTri /// /// For short queries (less than 3 characters with Head or Tail roles in Fuzzy /// Matching segmentation) this returns a single trigram with the first -/// characters (up to 3) to perfrom prefix match. +/// characters (up to 3) to perform prefix match. std::vector<Token> generateQueryTrigrams(llvm::StringRef Query); } // namespace dex _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits