r350890 - NFC: Change case of identifiers
Stephen Kelly via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 10 12:58:22 PST 2019
Author: steveire
Date: Thu Jan 10 12:58:21 2019
New Revision: 350890
URL: http://llvm.org/viewvc/llvm-project?rev=350890&view=rev
Log:
NFC: Change case of identifiers
Modified:
cfe/trunk/include/clang/AST/TextNodeDumper.h
cfe/trunk/lib/AST/ASTDumper.cpp
cfe/trunk/lib/AST/TextNodeDumper.cpp
Modified: cfe/trunk/include/clang/AST/TextNodeDumper.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TextNodeDumper.h?rev=350890&r1=350889&r2=350890&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/TextNodeDumper.h (original)
+++ cfe/trunk/include/clang/AST/TextNodeDumper.h Thu Jan 10 12:58:21 2019
@@ -27,7 +27,7 @@ class TextTreeStructure {
const bool ShowColors;
/// Pending[i] is an action to dump an entity at level i.
- llvm::SmallVector<std::function<void(bool isLastChild)>, 32> Pending;
+ llvm::SmallVector<std::function<void(bool IsLastChild)>, 32> Pending;
/// Indicates whether we're at the top level.
bool TopLevel = true;
@@ -39,13 +39,13 @@ class TextTreeStructure {
std::string Prefix;
public:
- /// Add a child of the current node. Calls doAddChild without arguments
- template <typename Fn> void addChild(Fn doAddChild) {
+ /// Add a child of the current node. Calls DoAddChild without arguments
+ template <typename Fn> void AddChild(Fn DoAddChild) {
// If we're at the top level, there's nothing interesting to do; just
// run the dumper.
if (TopLevel) {
TopLevel = false;
- doAddChild();
+ DoAddChild();
while (!Pending.empty()) {
Pending.back()(true);
Pending.pop_back();
@@ -56,7 +56,7 @@ public:
return;
}
- auto dumpWithIndent = [this, doAddChild](bool isLastChild) {
+ auto DumpWithIndent = [this, DoAddChild](bool IsLastChild) {
// Print out the appropriate tree structure and work out the prefix for
// children of this node. For instance:
//
@@ -72,15 +72,15 @@ public:
{
OS << '\n';
ColorScope Color(OS, ShowColors, IndentColor);
- OS << Prefix << (isLastChild ? '`' : '|') << '-';
- this->Prefix.push_back(isLastChild ? ' ' : '|');
+ OS << Prefix << (IsLastChild ? '`' : '|') << '-';
+ this->Prefix.push_back(IsLastChild ? ' ' : '|');
this->Prefix.push_back(' ');
}
FirstChild = true;
unsigned Depth = Pending.size();
- doAddChild();
+ DoAddChild();
// If any children are left, they're the last at their nesting level.
// Dump those ones out now.
@@ -94,10 +94,10 @@ public:
};
if (FirstChild) {
- Pending.push_back(std::move(dumpWithIndent));
+ Pending.push_back(std::move(DumpWithIndent));
} else {
Pending.back()(false);
- Pending.back() = std::move(dumpWithIndent);
+ Pending.back() = std::move(DumpWithIndent);
}
FirstChild = false;
}
Modified: cfe/trunk/lib/AST/ASTDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTDumper.cpp?rev=350890&r1=350889&r2=350890&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTDumper.cpp (original)
+++ cfe/trunk/lib/AST/ASTDumper.cpp Thu Jan 10 12:58:21 2019
@@ -58,8 +58,8 @@ namespace {
const bool ShowColors;
/// Dump a child of the current node.
- template<typename Fn> void dumpChild(Fn doDumpChild) {
- NodeDumper.addChild(doDumpChild);
+ template<typename Fn> void dumpChild(Fn DoDumpChild) {
+ NodeDumper.AddChild(DoDumpChild);
}
public:
Modified: cfe/trunk/lib/AST/TextNodeDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/TextNodeDumper.cpp?rev=350890&r1=350889&r2=350890&view=diff
==============================================================================
--- cfe/trunk/lib/AST/TextNodeDumper.cpp (original)
+++ cfe/trunk/lib/AST/TextNodeDumper.cpp Thu Jan 10 12:58:21 2019
@@ -165,7 +165,7 @@ void TextNodeDumper::dumpDeclRef(const D
if (!D)
return;
- addChild([=] {
+ AddChild([=] {
if (Label)
OS << Label << ' ';
dumpBareDeclRef(D);
More information about the cfe-commits
mailing list