diff options
| author | Kirill Bobyrev <kbobyrev@google.com> | 2019-12-16 10:33:56 +0100 |
|---|---|---|
| committer | Kirill Bobyrev <kbobyrev@google.com> | 2019-12-16 10:54:40 +0100 |
| commit | 3b9715cb219352fb831af144fd68e14e8fd275b4 (patch) | |
| tree | 6cda9f7523bed2dc16c77b6ed0cad1d0373e4b78 /clang-tools-extra/clangd/index/SymbolCollector.cpp | |
| parent | f49d15b3f8ccd7737a62d40adfe5ff1e710788d4 (diff) | |
| download | bcm5719-llvm-3b9715cb219352fb831af144fd68e14e8fd275b4.tar.gz bcm5719-llvm-3b9715cb219352fb831af144fd68e14e8fd275b4.zip | |
[NFC] Fix typos in Clangd and Clang
Reviewed by: Jim
Differential Revision: https://reviews.llvm.org/D71455
Diffstat (limited to 'clang-tools-extra/clangd/index/SymbolCollector.cpp')
| -rw-r--r-- | clang-tools-extra/clangd/index/SymbolCollector.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/clang-tools-extra/clangd/index/SymbolCollector.cpp b/clang-tools-extra/clangd/index/SymbolCollector.cpp index ac782c07c7a..c0b2b52a43c 100644 --- a/clang-tools-extra/clangd/index/SymbolCollector.cpp +++ b/clang-tools-extra/clangd/index/SymbolCollector.cpp @@ -245,14 +245,14 @@ bool SymbolCollector::shouldCollectSymbol(const NamedDecl &ND, } // Always return true to continue indexing. -bool SymbolCollector::handleDeclOccurence( +bool SymbolCollector::handleDeclOccurrence( const Decl *D, index::SymbolRoleSet Roles, llvm::ArrayRef<index::SymbolRelation> Relations, SourceLocation Loc, index::IndexDataConsumer::ASTNodeInfo ASTNode) { assert(ASTCtx && PP.get() && "ASTContext and Preprocessor must be set."); assert(CompletionAllocator && CompletionTUInfo); assert(ASTNode.OrigD); - // Indexing API puts cannonical decl into D, which might not have a valid + // Indexing API puts canonical decl into D, which might not have a valid // source location for implicit/built-in decls. Fallback to original decl in // such cases. if (D->getLocation().isInvalid()) @@ -346,10 +346,10 @@ bool SymbolCollector::handleDeclOccurence( return true; } -bool SymbolCollector::handleMacroOccurence(const IdentifierInfo *Name, - const MacroInfo *MI, - index::SymbolRoleSet Roles, - SourceLocation Loc) { +bool SymbolCollector::handleMacroOccurrence(const IdentifierInfo *Name, + const MacroInfo *MI, + index::SymbolRoleSet Roles, + SourceLocation Loc) { assert(PP.get()); const auto &SM = PP->getSourceManager(); @@ -524,9 +524,8 @@ void SymbolCollector::finish() { auto FileURI = toURI(SM, FileEntry->getName(), Opts); Found = URICache.insert({FID, FileURI}).first; } else { - // Ignore cases where we can not find a corresponding file entry - // for the loc, thoses are not interesting, e.g. symbols formed - // via macro concatenation. + // Ignore cases where we can not find a corresponding file entry for + // given location, e.g. symbols formed via macro concatenation. return None; } } |

