mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-07 09:22:11 +00:00
remove surrounding braces on single-if-statements
This commit is contained in:
parent
20ef17c0a7
commit
dc9ba782aa
@ -272,12 +272,13 @@ void MessageHandler::textDocument_semanticTokensRange(
|
|||||||
|
|
||||||
uint8_t kindId;
|
uint8_t kindId;
|
||||||
int modifiers = entry.second->storage == SC_Static ? 4 : 0;
|
int modifiers = entry.second->storage == SC_Static ? 4 : 0;
|
||||||
if (entry.first.second & Role::Declaration) {
|
|
||||||
|
if (entry.first.second & Role::Declaration)
|
||||||
modifiers |= 1;
|
modifiers |= 1;
|
||||||
}
|
|
||||||
if (entry.first.second & Role::Definition) {
|
if (entry.first.second & Role::Definition)
|
||||||
modifiers |= 2;
|
modifiers |= 2;
|
||||||
}
|
|
||||||
if (entry.second->kind == SymbolKind::StaticMethod) {
|
if (entry.second->kind == SymbolKind::StaticMethod) {
|
||||||
kindId = (uint8_t)SymbolKind::Method;
|
kindId = (uint8_t)SymbolKind::Method;
|
||||||
modifiers = 4;
|
modifiers = 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user