diff --git a/src/clang_tu.cc b/src/clang_tu.cc index 8e2ff3fc..e7a50c8a 100644 --- a/src/clang_tu.cc +++ b/src/clang_tu.cc @@ -113,7 +113,7 @@ buildCompilerInvocation(const std::string &main, std::vector args, const driver::JobList &jobs = comp->getJobs(); bool offload_compilation = false; if (jobs.size() > 1) { - for (auto &a : comp->getActions()){ + for (auto &a : comp->getActions()) { // On MacOSX real actions may end up being wrapped in BindArchAction if (isa(a)) a = *a->input_begin(); diff --git a/src/indexer.cc b/src/indexer.cc index d24e11e7..b165f909 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, @@ -885,10 +885,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; @@ -1208,7 +1208,7 @@ class IndexDiags : public DiagnosticConsumer { public: llvm::SmallString<64> message; void HandleDiagnostic(DiagnosticsEngine::Level level, - const clang::Diagnostic &info) override { + const clang::Diagnostic &info) override { DiagnosticConsumer::HandleDiagnostic(level, info); if (message.empty()) info.FormatDiagnostic(message);