Skip to content

Commit 0db63a5

Browse files
committed
Formatting changes
1 parent 96c7598 commit 0db63a5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clang-tools-extra/clangd/XRefs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2238,8 +2238,8 @@ prepareCallHierarchy(ParsedAST &AST, Position Pos, PathRef TUPath) {
22382238
for (const NamedDecl *Decl : getDeclAtPosition(AST, *Loc, {})) {
22392239
if (!(isa<DeclContext>(Decl) &&
22402240
cast<DeclContext>(Decl)->isFunctionOrMethod()) &&
2241-
!((Decl->getKind() == Decl::Kind::Var &&
2242-
!cast<VarDecl>(Decl)->isLocalVarDecl())) &&
2241+
!(Decl->getKind() == Decl::Kind::Var &&
2242+
!cast<VarDecl>(Decl)->isLocalVarDecl()) &&
22432243
Decl->getKind() != Decl::Kind::FunctionTemplate &&
22442244
Decl->getKind() != Decl::Kind::Field)
22452245
continue;

clang-tools-extra/clangd/unittests/CallHierarchyTests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ TEST(CallHierarchy, CallInLocalVarDecl) {
446446
AllOf(from(withName("caller3")), fromRanges(Source.range("call3")))));
447447
}
448448

449-
TEST(CallHierarchy, HierarchyOnField){
449+
TEST(CallHierarchy, HierarchyOnField) {
450450
// Tests that the call hierarchy works on fields.
451451
Annotations Source(R"cpp(
452452
struct Vars {
@@ -470,8 +470,8 @@ TEST(CallHierarchy, HierarchyOnField){
470470
fromRanges(Source.range("Callee")))));
471471
}
472472

473-
TEST(CallHierarchy, HierarchyOnVar){
474-
// Tests that the call hierarchy works on fields.
473+
TEST(CallHierarchy, HierarchyOnVar) {
474+
// Tests that the call hierarchy works on non-local variables.
475475
Annotations Source(R"cpp(
476476
int v^ar = 1;
477477
void caller() {

0 commit comments

Comments
 (0)