mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
fix: code format for clang-format setting
This commit is contained in:
parent
a4e7b93917
commit
8b5fcf9358
@ -113,7 +113,7 @@ buildCompilerInvocation(const std::string &main, std::vector<const char *> args,
|
|||||||
const driver::JobList &jobs = comp->getJobs();
|
const driver::JobList &jobs = comp->getJobs();
|
||||||
bool offload_compilation = false;
|
bool offload_compilation = false;
|
||||||
if (jobs.size() > 1) {
|
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
|
// On MacOSX real actions may end up being wrapped in BindArchAction
|
||||||
if (isa<driver::BindArchAction>(a))
|
if (isa<driver::BindArchAction>(a))
|
||||||
a = *a->input_begin();
|
a = *a->input_begin();
|
||||||
|
@ -687,7 +687,7 @@ public:
|
|||||||
IndexDataConsumer(IndexParam ¶m) : param(param) {}
|
IndexDataConsumer(IndexParam ¶m) : param(param) {}
|
||||||
void initialize(ASTContext &ctx) override { this->ctx = param.ctx = &ctx; }
|
void initialize(ASTContext &ctx) override { this->ctx = param.ctx = &ctx; }
|
||||||
#if LLVM_VERSION_MAJOR < 10 // llvmorg-10-init-12036-g3b9715cb219
|
#if LLVM_VERSION_MAJOR < 10 // llvmorg-10-init-12036-g3b9715cb219
|
||||||
# define handleDeclOccurrence handleDeclOccurence
|
#define handleDeclOccurrence handleDeclOccurence
|
||||||
#endif
|
#endif
|
||||||
bool handleDeclOccurrence(const Decl *d, index::SymbolRoleSet roles,
|
bool handleDeclOccurrence(const Decl *d, index::SymbolRoleSet roles,
|
||||||
ArrayRef<index::SymbolRelation> relations,
|
ArrayRef<index::SymbolRelation> relations,
|
||||||
@ -885,8 +885,8 @@ public:
|
|||||||
Usr usr1 = getUsr(d1, &info1);
|
Usr usr1 = getUsr(d1, &info1);
|
||||||
IndexType &type1 = db->toType(usr1);
|
IndexType &type1 = db->toType(usr1);
|
||||||
SourceLocation sl1 = d1->getLocation();
|
SourceLocation sl1 = d1->getLocation();
|
||||||
type1.def.spell = {
|
type1.def.spell = {Use{{fromTokenRange(sm, lang, {sl1, sl1}),
|
||||||
Use{{fromTokenRange(sm, lang, {sl1, sl1}), Role::Definition},
|
Role::Definition},
|
||||||
lid},
|
lid},
|
||||||
fromTokenRange(sm, lang, sr1)};
|
fromTokenRange(sm, lang, sr1)};
|
||||||
type1.def.detailed_name = intern(info1->short_name);
|
type1.def.detailed_name = intern(info1->short_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user