From 706b6a4d7b68090d3cd3e719b8b3043ed667111a Mon Sep 17 00:00:00 2001 From: Ludovic Jozeau Date: Fri, 3 Jul 2020 21:03:26 +0200 Subject: [PATCH] clang format indexer.cc --- .clang-format | 1 + src/indexer.cc | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.clang-format b/.clang-format index 9b3aa8b7..7ddc5e3a 100644 --- a/.clang-format +++ b/.clang-format @@ -1 +1,2 @@ BasedOnStyle: LLVM +IndentPPDirectives: AfterHash diff --git a/src/indexer.cc b/src/indexer.cc index 8ba3649a..914ccf17 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -687,7 +687,7 @@ public: IndexDataConsumer(IndexParam ¶m) : param(param) {} void initialize(ASTContext &ctx) override { this->ctx = param.ctx = &ctx; } #if LLVM_VERSION_MAJOR < 10 // llvmorg-10-init-12036-g3b9715cb219 -# define handleDeclOccurrence handleDeclOccurence +# define handleDeclOccurrence handleDeclOccurence #endif bool handleDeclOccurrence(const Decl *d, index::SymbolRoleSet roles, ArrayRef relations, @@ -888,10 +888,10 @@ public: Usr usr1 = getUsr(d1, &info1); IndexType &type1 = db->toType(usr1); SourceLocation sl1 = d1->getLocation(); - type1.def.spell = { - Use{{fromTokenRange(sm, lang, {sl1, sl1}), Role::Definition}, - lid}, - fromTokenRange(sm, lang, sr1)}; + type1.def.spell = {Use{{fromTokenRange(sm, lang, {sl1, sl1}), + Role::Definition}, + lid}, + fromTokenRange(sm, lang, sr1)}; type1.def.detailed_name = intern(info1->short_name); type1.def.short_name_size = int16_t(info1->short_name.size()); type1.def.kind = SymbolKind::TypeParameter;