Loading clang-tools-extra/clangd/AST.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -377,7 +377,7 @@ public: // Loc of "auto" in operator auto() if (CurLoc.isInvalid() && dyn_cast<CXXConversionDecl>(D)) CurLoc = D->getTypeSourceInfo()->getTypeLoc().getBeginLoc(); // Loc of "auto" in function with traling return type (c++11). // Loc of "auto" in function with trailing return type (c++11). if (CurLoc.isInvalid()) CurLoc = D->getSourceRange().getBegin(); if (CurLoc != SearchedLocation) Loading clang-tools-extra/clangd/ClangdServer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -466,7 +466,7 @@ void ClangdServer::locateSymbolAt(PathRef File, Position Pos, void ClangdServer::switchSourceHeader( PathRef Path, Callback<llvm::Optional<clangd::Path>> CB) { // We want to return the result as fast as possible, stragety is: // We want to return the result as fast as possible, strategy is: // 1) use the file-only heuristic, it requires some IO but it is much // faster than building AST, but it only works when .h/.cc files are in // the same directory. Loading clang-tools-extra/clangd/CodeComplete.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -395,7 +395,7 @@ private: std::string ReturnType; }; // If all BundledEntrys have the same value for a property, return it. // If all BundledEntries have the same value for a property, return it. template <std::string BundledEntry::*Member> const std::string *onlyValue() const { auto B = Bundled.begin(), E = Bundled.end(); Loading Loading @@ -499,7 +499,7 @@ llvm::Optional<SymbolID> getSymbolID(const CodeCompletionResult &R, llvm_unreachable("unknown CodeCompletionResult kind"); } // Scopes of the paritial identifier we're trying to complete. // Scopes of the partial identifier we're trying to complete. // It is used when we query the index for more completion results. struct SpecifiedScope { // The scopes we should look in, determined by Sema. Loading Loading @@ -874,7 +874,7 @@ public: // Function Template. // - High score is better. // - Shorter signature is better. // - Alphebatically smaller is better. // - Alphabetically smaller is better. if (L.Quality.NumberOfParameters != R.Quality.NumberOfParameters) return L.Quality.NumberOfParameters < R.Quality.NumberOfParameters; if (L.Quality.NumberOfOptionalParameters != Loading Loading @@ -1510,7 +1510,7 @@ private: } // Merges Sema and Index results where possible, to form CompletionCandidates. // \p Identifiers is raw idenfiers that can also be completion condidates. // \p Identifiers is raw idenfiers that can also be completion candidates. // Identifiers are not merged with results from index or sema. // Groups overloads if desired, to form CompletionCandidate::Bundles. The // bundles are scored and top results are returned, best to worst. Loading clang-tools-extra/clangd/Diagnostics.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -232,7 +232,7 @@ std::string capitalize(std::string Message) { } /// Returns a message sent to LSP for the main diagnostic in \p D. /// This message may include notes, if they're not emited in some other way. /// This message may include notes, if they're not emitted in some other way. /// Example output: /// /// no matching function for call to 'foo' Loading clang-tools-extra/clangd/Diagnostics.h +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ struct ClangdDiagnosticOptions { struct DiagBase { std::string Message; // Intended to be used only in error messages. // May be relative, absolute or even artifically constructed. // May be relative, absolute or even artificially constructed. std::string File; // Absolute path to containing file, if available. llvm::Optional<std::string> AbsFile; Loading Loading
clang-tools-extra/clangd/AST.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -377,7 +377,7 @@ public: // Loc of "auto" in operator auto() if (CurLoc.isInvalid() && dyn_cast<CXXConversionDecl>(D)) CurLoc = D->getTypeSourceInfo()->getTypeLoc().getBeginLoc(); // Loc of "auto" in function with traling return type (c++11). // Loc of "auto" in function with trailing return type (c++11). if (CurLoc.isInvalid()) CurLoc = D->getSourceRange().getBegin(); if (CurLoc != SearchedLocation) Loading
clang-tools-extra/clangd/ClangdServer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -466,7 +466,7 @@ void ClangdServer::locateSymbolAt(PathRef File, Position Pos, void ClangdServer::switchSourceHeader( PathRef Path, Callback<llvm::Optional<clangd::Path>> CB) { // We want to return the result as fast as possible, stragety is: // We want to return the result as fast as possible, strategy is: // 1) use the file-only heuristic, it requires some IO but it is much // faster than building AST, but it only works when .h/.cc files are in // the same directory. Loading
clang-tools-extra/clangd/CodeComplete.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -395,7 +395,7 @@ private: std::string ReturnType; }; // If all BundledEntrys have the same value for a property, return it. // If all BundledEntries have the same value for a property, return it. template <std::string BundledEntry::*Member> const std::string *onlyValue() const { auto B = Bundled.begin(), E = Bundled.end(); Loading Loading @@ -499,7 +499,7 @@ llvm::Optional<SymbolID> getSymbolID(const CodeCompletionResult &R, llvm_unreachable("unknown CodeCompletionResult kind"); } // Scopes of the paritial identifier we're trying to complete. // Scopes of the partial identifier we're trying to complete. // It is used when we query the index for more completion results. struct SpecifiedScope { // The scopes we should look in, determined by Sema. Loading Loading @@ -874,7 +874,7 @@ public: // Function Template. // - High score is better. // - Shorter signature is better. // - Alphebatically smaller is better. // - Alphabetically smaller is better. if (L.Quality.NumberOfParameters != R.Quality.NumberOfParameters) return L.Quality.NumberOfParameters < R.Quality.NumberOfParameters; if (L.Quality.NumberOfOptionalParameters != Loading Loading @@ -1510,7 +1510,7 @@ private: } // Merges Sema and Index results where possible, to form CompletionCandidates. // \p Identifiers is raw idenfiers that can also be completion condidates. // \p Identifiers is raw idenfiers that can also be completion candidates. // Identifiers are not merged with results from index or sema. // Groups overloads if desired, to form CompletionCandidate::Bundles. The // bundles are scored and top results are returned, best to worst. Loading
clang-tools-extra/clangd/Diagnostics.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -232,7 +232,7 @@ std::string capitalize(std::string Message) { } /// Returns a message sent to LSP for the main diagnostic in \p D. /// This message may include notes, if they're not emited in some other way. /// This message may include notes, if they're not emitted in some other way. /// Example output: /// /// no matching function for call to 'foo' Loading
clang-tools-extra/clangd/Diagnostics.h +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ struct ClangdDiagnosticOptions { struct DiagBase { std::string Message; // Intended to be used only in error messages. // May be relative, absolute or even artifically constructed. // May be relative, absolute or even artificially constructed. std::string File; // Absolute path to containing file, if available. llvm::Optional<std::string> AbsFile; Loading