diff options
author | Stephen Kelly <steveire@gmail.com> | 2019-01-10 20:58:21 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2019-01-10 20:58:21 +0000 |
commit | f1be9f83db361c97bd52f6b6624485ecc63546d0 (patch) | |
tree | 6f96788a18ee026d05b23df3d364ced77c6dbe86 | |
parent | f4c2b45ed7bf906b2d9079c19c3a36f161c89a44 (diff) |
NFC: Change case of identifiers
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350890 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/TextNodeDumper.h | 20 | ||||
-rw-r--r-- | lib/AST/ASTDumper.cpp | 4 | ||||
-rw-r--r-- | lib/AST/TextNodeDumper.cpp | 2 |
3 files changed, 13 insertions, 13 deletions
diff --git a/include/clang/AST/TextNodeDumper.h b/include/clang/AST/TextNodeDumper.h index db8087c9aa..8b6fde938d 100644 --- a/include/clang/AST/TextNodeDumper.h +++ b/include/clang/AST/TextNodeDumper.h @@ -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; } diff --git a/lib/AST/ASTDumper.cpp b/lib/AST/ASTDumper.cpp index 8d2e003504..698fca0b33 100644 --- a/lib/AST/ASTDumper.cpp +++ b/lib/AST/ASTDumper.cpp @@ -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: diff --git a/lib/AST/TextNodeDumper.cpp b/lib/AST/TextNodeDumper.cpp index b04a3cfdc8..3598e28680 100644 --- a/lib/AST/TextNodeDumper.cpp +++ b/lib/AST/TextNodeDumper.cpp @@ -165,7 +165,7 @@ void TextNodeDumper::dumpDeclRef(const Decl *D, const char *Label) { if (!D) return; - addChild([=] { + AddChild([=] { if (Label) OS << Label << ' '; dumpBareDeclRef(D); |