[clang] ac87a0b - [SyntaxTree][NFC][Style] Functions start with lowercase
Eduardo Caldas via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 27 05:55:37 PDT 2020
Author: Eduardo Caldas
Date: 2020-08-27T12:55:24Z
New Revision: ac87a0b5873cc14b23eeb25a0586b26cc5c2c33f
URL: https://github.com/llvm/llvm-project/commit/ac87a0b5873cc14b23eeb25a0586b26cc5c2c33f
DIFF: https://github.com/llvm/llvm-project/commit/ac87a0b5873cc14b23eeb25a0586b26cc5c2c33f.diff
LOG: [SyntaxTree][NFC][Style] Functions start with lowercase
Differential Revision: https://reviews.llvm.org/D86682
Added:
Modified:
clang/lib/Tooling/Syntax/BuildTree.cpp
Removed:
################################################################################
diff --git a/clang/lib/Tooling/Syntax/BuildTree.cpp b/clang/lib/Tooling/Syntax/BuildTree.cpp
index 9e2f8178df90..b07e9c3faf9d 100644
--- a/clang/lib/Tooling/Syntax/BuildTree.cpp
+++ b/clang/lib/Tooling/Syntax/BuildTree.cpp
@@ -820,7 +820,7 @@ class BuildTreeVisitor : public RecursiveASTVisitor<BuildTreeVisitor> {
}
syntax::NameSpecifier *
- BuildNameSpecifier(const NestedNameSpecifierLoc &NNSLoc) {
+ buildNameSpecifier(const NestedNameSpecifierLoc &NNSLoc) {
assert(NNSLoc.hasQualifier());
auto NameSpecifierTokens =
Builder.getRange(getLocalSourceRange(NNSLoc)).drop_back();
@@ -870,7 +870,7 @@ class BuildTreeVisitor : public RecursiveASTVisitor<BuildTreeVisitor> {
if (!QualifierLoc)
return true;
for (auto it = QualifierLoc; it; it = it.getPrefix()) {
- auto *NS = BuildNameSpecifier(it);
+ auto *NS = buildNameSpecifier(it);
if (!NS)
return false;
Builder.markChild(NS, syntax::NodeRole::ListElement);
@@ -1221,7 +1221,7 @@ class BuildTreeVisitor : public RecursiveASTVisitor<BuildTreeVisitor> {
if (!L.getTypePtr()->hasTrailingReturn())
return WalkUpFromFunctionTypeLoc(L);
- auto *TrailingReturnTokens = BuildTrailingReturn(L);
+ auto *TrailingReturnTokens = buildTrailingReturn(L);
// Finish building the node for parameters.
Builder.markChild(TrailingReturnTokens, syntax::NodeRole::TrailingReturn);
return WalkUpFromFunctionTypeLoc(L);
@@ -1459,7 +1459,7 @@ class BuildTreeVisitor : public RecursiveASTVisitor<BuildTreeVisitor> {
}
/// Returns the range of the built node.
- syntax::TrailingReturnType *BuildTrailingReturn(FunctionProtoTypeLoc L) {
+ syntax::TrailingReturnType *buildTrailingReturn(FunctionProtoTypeLoc L) {
assert(L.getTypePtr()->hasTrailingReturn());
auto ReturnedType = L.getReturnLoc();
More information about the cfe-commits
mailing list