Skip to content

Commit 2ce512d

Browse files
committed
fix code format
1 parent a50814f commit 2ce512d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/clang_tu.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ buildCompilerInvocation(const std::string &main, std::vector<const char *> args,
104104
const driver::JobList &jobs = comp->getJobs();
105105
bool offload_compilation = false;
106106
if (jobs.size() > 1) {
107-
for (auto &a : comp->getActions()){
107+
for (auto &a : comp->getActions()) {
108108
// On MacOSX real actions may end up being wrapped in BindArchAction
109109
if (isa<driver::BindArchAction>(a))
110110
a = *a->input_begin();

src/indexer.cc

+5-5
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ class IndexDataConsumer : public index::IndexDataConsumer {
679679
IndexDataConsumer(IndexParam &param) : param(param) {}
680680
void initialize(ASTContext &ctx) override { this->ctx = param.ctx = &ctx; }
681681
#if LLVM_VERSION_MAJOR < 10 // llvmorg-10-init-12036-g3b9715cb219
682-
# define handleDeclOccurrence handleDeclOccurence
682+
#define handleDeclOccurrence handleDeclOccurence
683683
#endif
684684
bool handleDeclOccurrence(const Decl *d, index::SymbolRoleSet roles,
685685
ArrayRef<index::SymbolRelation> relations,
@@ -877,10 +877,10 @@ class IndexDataConsumer : public index::IndexDataConsumer {
877877
Usr usr1 = getUsr(d1, &info1);
878878
IndexType &type1 = db->toType(usr1);
879879
SourceLocation sl1 = d1->getLocation();
880-
type1.def.spell = {
881-
Use{{fromTokenRange(sm, lang, {sl1, sl1}), Role::Definition},
882-
lid},
883-
fromTokenRange(sm, lang, sr1)};
880+
type1.def.spell = {Use{{fromTokenRange(sm, lang, {sl1, sl1}),
881+
Role::Definition},
882+
lid},
883+
fromTokenRange(sm, lang, sr1)};
884884
type1.def.detailed_name = intern(info1->short_name);
885885
type1.def.short_name_size = int16_t(info1->short_name.size());
886886
type1.def.kind = SymbolKind::TypeParameter;

0 commit comments

Comments
 (0)