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:
Jon Ross-Perkins
2023-02-27 08:23:11 -08:00
committed by GitHub
parent 5fa6f04d83
commit e4487505dd
5 changed files with 4 additions and 8 deletions
+2 -2
View File
@@ -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)) {