Skip to content

Commit 46eb5a3

Browse files
committed
fix: code format for clang-format setting
1 parent 9d85d47 commit 46eb5a3

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
@@ -112,7 +112,7 @@ buildCompilerInvocation(const std::string &main, std::vector<const char *> args,
112112
const driver::JobList &jobs = comp->getJobs();
113113
bool offload_compilation = false;
114114
if (jobs.size() > 1) {
115-
for (auto &a : comp->getActions()){
115+
for (auto &a : comp->getActions()) {
116116
// On MacOSX real actions may end up being wrapped in BindArchAction
117117
if (isa<driver::BindArchAction>(a))
118118
a = *a->input_begin();

src/indexer.cc

+5-5
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ class IndexDataConsumer : public index::IndexDataConsumer {
687687
IndexDataConsumer(IndexParam &param) : param(param) {}
688688
void initialize(ASTContext &ctx) override { this->ctx = param.ctx = &ctx; }
689689
#if LLVM_VERSION_MAJOR < 10 // llvmorg-10-init-12036-g3b9715cb219
690-
# define handleDeclOccurrence handleDeclOccurence
690+
#define handleDeclOccurrence handleDeclOccurence
691691
#endif
692692
bool handleDeclOccurrence(const Decl *d, index::SymbolRoleSet roles,
693693
ArrayRef<index::SymbolRelation> relations,
@@ -885,10 +885,10 @@ class IndexDataConsumer : public index::IndexDataConsumer {
885885
Usr usr1 = getUsr(d1, &info1);
886886
IndexType &type1 = db->toType(usr1);
887887
SourceLocation sl1 = d1->getLocation();
888-
type1.def.spell = {
889-
Use{{fromTokenRange(sm, lang, {sl1, sl1}), Role::Definition},
890-
lid},
891-
fromTokenRange(sm, lang, sr1)};
888+
type1.def.spell = {Use{{fromTokenRange(sm, lang, {sl1, sl1}),
889+
Role::Definition},
890+
lid},
891+
fromTokenRange(sm, lang, sr1)};
892892
type1.def.detailed_name = intern(info1->short_name);
893893
type1.def.short_name_size = int16_t(info1->short_name.size());
894894
type1.def.kind = SymbolKind::TypeParameter;

0 commit comments

Comments
 (0)