mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-21 23:25:07 +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();
|
||||
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();
|
||||
|
@ -687,7 +687,7 @@ public:
|
||||
IndexDataConsumer(IndexParam ¶m) : 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,
|
||||
@ -885,10 +885,10 @@ public:
|
||||
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;
|
||||
@ -1208,7 +1208,7 @@ class IndexDiags : public DiagnosticConsumer {
|
||||
public:
|
||||
llvm::SmallString<64> message;
|
||||
void HandleDiagnostic(DiagnosticsEngine::Level level,
|
||||
const clang::Diagnostic &info) override {
|
||||
const clang::Diagnostic &info) override {
|
||||
DiagnosticConsumer::HandleDiagnostic(level, info);
|
||||
if (message.empty())
|
||||
info.FormatDiagnostic(message);
|
||||
|
Loading…
Reference in New Issue
Block a user