From ca2a610686b9439374aa6a6000a25bb9325035e9 Mon Sep 17 00:00:00 2001 From: rhcher Date: Fri, 1 Jul 2022 13:31:44 +0800 Subject: [PATCH] format --- src/sema_manager.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/sema_manager.cc b/src/sema_manager.cc index 71a49c70..75f1612d 100644 --- a/src/sema_manager.cc +++ b/src/sema_manager.cc @@ -429,8 +429,7 @@ void buildPreamble(Session &session, CompilerInvocation &ci, // llvmorg-12-init-11522-g4c55c3b66de auto bounds = ComputePreambleBounds(*ci.getLangOpts(), *buf, 0); // llvmorg-12-init-17739-gf4d02fbe418d - if (!task.from_diag && oldP && - oldP->preamble.CanReuse(ci, *buf, bounds, *fs)) + if (!task.from_diag && oldP && oldP->preamble.CanReuse(ci, *buf, bounds, *fs)) return; #else auto bounds = ComputePreambleBounds(*ci.getLangOpts(), buf.get(), 0); @@ -558,8 +557,7 @@ void *completionMain(void *manager_) { std::string content = manager->wfiles->getContent(task->path); auto buf = llvm::MemoryBuffer::getMemBuffer(content); #if LLVM_VERSION_MAJOR >= 12 // llvmorg-12-init-11522-g4c55c3b66de - PreambleBounds bounds = - ComputePreambleBounds(*ci->getLangOpts(), *buf, 0); + PreambleBounds bounds = ComputePreambleBounds(*ci->getLangOpts(), *buf, 0); #else PreambleBounds bounds = ComputePreambleBounds(*ci->getLangOpts(), buf.get(), 0);