From: Haojian Wu Date: Tue, 13 Dec 2022 12:38:36 +0000 (+0100) Subject: [clangd] Correct the local variable names to match the code style, NFC X-Git-Tag: upstream/17.0.6~23892 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f0b149f40bb1ae8da4e4584a30c405f92bd27a4;p=platform%2Fupstream%2Fllvm.git [clangd] Correct the local variable names to match the code style, NFC --- diff --git a/clang-tools-extra/clangd/SemanticHighlighting.cpp b/clang-tools-extra/clangd/SemanticHighlighting.cpp index f667567..1f9f851 100644 --- a/clang-tools-extra/clangd/SemanticHighlighting.cpp +++ b/clang-tools-extra/clangd/SemanticHighlighting.cpp @@ -568,31 +568,31 @@ public: bool VisitFunctionDecl(FunctionDecl *D) { if (D->isOverloadedOperator()) { - const auto addOpDeclToken = [&](SourceLocation Loc) { + const auto AddOpDeclToken = [&](SourceLocation Loc) { auto &Token = H.addToken(Loc, HighlightingKind::Operator) .addModifier(HighlightingModifier::Declaration); if (D->isThisDeclarationADefinition()) Token.addModifier(HighlightingModifier::Definition); }; const auto Range = D->getNameInfo().getCXXOperatorNameRange(); - addOpDeclToken(Range.getBegin()); + AddOpDeclToken(Range.getBegin()); const auto Kind = D->getOverloadedOperator(); if (Kind == OO_Call || Kind == OO_Subscript) - addOpDeclToken(Range.getEnd()); + AddOpDeclToken(Range.getEnd()); } return true; } bool VisitCXXOperatorCallExpr(CXXOperatorCallExpr *E) { - const auto addOpToken = [&](SourceLocation Loc) { + const auto AddOpToken = [&](SourceLocation Loc) { H.addToken(Loc, HighlightingKind::Operator) .addModifier(HighlightingModifier::UserDefined); }; - addOpToken(E->getOperatorLoc()); + AddOpToken(E->getOperatorLoc()); const auto Kind = E->getOperator(); if (Kind == OO_Call || Kind == OO_Subscript) { if (auto *Callee = E->getCallee()) - addOpToken(Callee->getBeginLoc()); + AddOpToken(Callee->getBeginLoc()); } return true; }