diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2024-03-01 16:36:16 -0800 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2024-03-01 16:53:11 -0800 |
commit | 70467dd0ee0fee2877bf17a465ab975a84baa360 (patch) | |
tree | 97db0fc3fd3d49a13d804ca8eac8a01ea4fcfc88 | |
parent | ecd7fce0d4e14cbae7beb9b0b30966435f8ee851 (diff) | |
download | llvm-70467dd0ee0fee2877bf17a465ab975a84baa360.zip llvm-70467dd0ee0fee2877bf17a465ab975a84baa360.tar.gz llvm-70467dd0ee0fee2877bf17a465ab975a84baa360.tar.bz2 |
[clang][index] NFC: Stylistic changes
-rw-r--r-- | clang/lib/Index/IndexSymbol.cpp | 3 | ||||
-rw-r--r-- | clang/lib/Index/IndexingAction.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Index/IndexSymbol.cpp b/clang/lib/Index/IndexSymbol.cpp index 0f79694..419ff79 100644 --- a/clang/lib/Index/IndexSymbol.cpp +++ b/clang/lib/Index/IndexSymbol.cpp @@ -552,8 +552,7 @@ StringRef index::getSymbolSubKindString(SymbolSubKind K) { case SymbolSubKind::AccessorSetter: return "acc-set"; case SymbolSubKind::UsingTypename: return "using-typename"; case SymbolSubKind::UsingValue: return "using-value"; - case SymbolSubKind::UsingEnum: - return "using-enum"; + case SymbolSubKind::UsingEnum: return "using-enum"; } llvm_unreachable("invalid symbol subkind"); } diff --git a/clang/lib/Index/IndexingAction.cpp b/clang/lib/Index/IndexingAction.cpp index c9fcaad..81c46a0 100644 --- a/clang/lib/Index/IndexingAction.cpp +++ b/clang/lib/Index/IndexingAction.cpp @@ -199,7 +199,7 @@ index::createIndexingAction(std::shared_ptr<IndexDataConsumer> DataConsumer, } static bool topLevelDeclVisitor(void *context, const Decl *D) { - IndexingContext &IndexCtx = *static_cast<IndexingContext*>(context); + IndexingContext &IndexCtx = *static_cast<IndexingContext *>(context); return IndexCtx.indexTopLevelDecl(D); } |