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/lib | |
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/lib')
-rw-r--r-- | clang/lib/Index/IndexingAction.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Index/IndexingContext.cpp | 15 |
2 files changed, 8 insertions, 9 deletions
diff --git a/clang/lib/Index/IndexingAction.cpp b/clang/lib/Index/IndexingAction.cpp index 6d6133e89d8..4f402135672 100644 --- a/clang/lib/Index/IndexingAction.cpp +++ b/clang/lib/Index/IndexingAction.cpp @@ -151,7 +151,7 @@ static void indexPreprocessorMacros(const Preprocessor &PP, IndexDataConsumer &DataConsumer) { for (const auto &M : PP.macros()) if (MacroDirective *MD = M.second.getLatest()) - DataConsumer.handleMacroOccurence( + DataConsumer.handleMacroOccurrence( M.first, MD->getMacroInfo(), static_cast<unsigned>(index::SymbolRole::Definition), MD->getLocation()); diff --git a/clang/lib/Index/IndexingContext.cpp b/clang/lib/Index/IndexingContext.cpp index c7e487ab9ae..a7c37e8528d 100644 --- a/clang/lib/Index/IndexingContext.cpp +++ b/clang/lib/Index/IndexingContext.cpp @@ -99,9 +99,8 @@ static void reportModuleReferences(const Module *Mod, return; reportModuleReferences(Mod->Parent, IdLocs.drop_back(), ImportD, DataConsumer); - DataConsumer.handleModuleOccurence(ImportD, Mod, - (SymbolRoleSet)SymbolRole::Reference, - IdLocs.back()); + DataConsumer.handleModuleOccurrence( + ImportD, Mod, (SymbolRoleSet)SymbolRole::Reference, IdLocs.back()); } bool IndexingContext::importedModule(const ImportDecl *ImportD) { @@ -145,7 +144,7 @@ bool IndexingContext::importedModule(const ImportDecl *ImportD) { if (ImportD->isImplicit()) Roles |= (unsigned)SymbolRole::Implicit; - return DataConsumer.handleModuleOccurence(ImportD, Mod, Roles, Loc); + return DataConsumer.handleModuleOccurrence(ImportD, Mod, Roles, Loc); } bool IndexingContext::isTemplateImplicitInstantiation(const Decl *D) { @@ -443,26 +442,26 @@ bool IndexingContext::handleDeclOccurrence(const Decl *D, SourceLocation Loc, } IndexDataConsumer::ASTNodeInfo Node{OrigE, OrigD, Parent, ContainerDC}; - return DataConsumer.handleDeclOccurence(D, Roles, FinalRelations, Loc, Node); + return DataConsumer.handleDeclOccurrence(D, Roles, FinalRelations, Loc, Node); } void IndexingContext::handleMacroDefined(const IdentifierInfo &Name, SourceLocation Loc, const MacroInfo &MI) { SymbolRoleSet Roles = (unsigned)SymbolRole::Definition; - DataConsumer.handleMacroOccurence(&Name, &MI, Roles, Loc); + DataConsumer.handleMacroOccurrence(&Name, &MI, Roles, Loc); } void IndexingContext::handleMacroUndefined(const IdentifierInfo &Name, SourceLocation Loc, const MacroInfo &MI) { SymbolRoleSet Roles = (unsigned)SymbolRole::Undefinition; - DataConsumer.handleMacroOccurence(&Name, &MI, Roles, Loc); + DataConsumer.handleMacroOccurrence(&Name, &MI, Roles, Loc); } void IndexingContext::handleMacroReference(const IdentifierInfo &Name, SourceLocation Loc, const MacroInfo &MI) { SymbolRoleSet Roles = (unsigned)SymbolRole::Reference; - DataConsumer.handleMacroOccurence(&Name, &MI, Roles, Loc); + DataConsumer.handleMacroOccurrence(&Name, &MI, Roles, Loc); } |