Move the toolchain into a top-level directory. (#567)

This should clean up our top level directory and the build patterns.

No non-mechanical edits here. Just injecting `toolchain/` and
`TOOLCHAIN_` and then running formatting tools.
This commit is contained in:
Chandler Carruth
2021-06-08 03:01:37 -07:00
committed by GitHub
parent 8afc1f8316
commit 8f8ab23a77
2857 changed files with 192 additions and 192 deletions
+19
View File
@@ -0,0 +1,19 @@
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "toolchain/parser/parse_node_kind.h"
#include "llvm/ADT/StringRef.h"
namespace Carbon {
auto ParseNodeKind::GetName() const -> llvm::StringRef {
static constexpr llvm::StringLiteral Names[] = {
#define CARBON_PARSE_NODE_KIND(Name) #Name,
#include "toolchain/parser/parse_node_kind.def"
};
return Names[static_cast<int>(kind)];
}
} // namespace Carbon