Skip to content

Commit

Permalink
fix: code format for clang-format setting
Browse files Browse the repository at this point in the history
  • Loading branch information
findNextStep committed Jul 4, 2020
1 parent 5b502c6 commit 11c9884
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/clang_tu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ buildCompilerInvocation(const std::string &main, std::vector<const char *> 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<driver::BindArchAction>(a))
a = *a->input_begin();
Expand Down
10 changes: 5 additions & 5 deletions src/indexer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ class IndexDataConsumer : public index::IndexDataConsumer {
IndexDataConsumer(IndexParam &param) : 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<index::SymbolRelation> relations,
Expand Down Expand Up @@ -885,10 +885,10 @@ class IndexDataConsumer : public index::IndexDataConsumer {
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;
Expand Down

0 comments on commit 11c9884

Please sign in to comment.