mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 05:30:34 +00:00
Update clang-tidy details for the toolchain (#2623)
Adjusts handling of class constants (`static const`) to use CamelCase. This probably better reflects how we use it in C++ code, treating as appropriate for CamelCase instead of under_score. Fixes adding_children to be preorder in caller (not sure why this wasn't automated). No automated changes.
This commit is contained in:
1 parent
5fa6f04d83
commit
e4487505dd
5 files changed
+4
-8
No files matched your search
@@ -135,7 +135,7 @@ auto ParseTree::Print(llvm::raw_ostream& output) const -> void {
|
||||
|
||||
output << "[\n";
|
||||
for (Node n : postorder()) {
|
||||
PrintNode(output, n, indents[n.index], /*adding_children=*/false);
|
||||
PrintNode(output, n, indents[n.index], /*preorder=*/false);
|
||||
output << ",\n";
|
||||
}
|
||||
output << "]\n";
|
||||
@@ -165,7 +165,7 @@ auto ParseTree::Print(llvm::raw_ostream& output, bool preorder) const -> void {
|
||||
int depth;
|
||||
std::tie(n, depth) = node_stack.pop_back_val();
|
||||
|
||||
if (PrintNode(output, n, depth, /*adding_children=*/true)) {
|
||||
if (PrintNode(output, n, depth, /*preorder=*/true)) {
|
||||
// Has children, so we descend. We append the children in order here as
|
||||
// well because they will get reversed when popped off the stack.
|
||||
for (Node sibling_n : children(n)) {
|
||||
|
||||
Reference in new issue
Block a user