mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01: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:
@@ -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