Add C++ compile benchmarking (#7220)

We had source generation support for some time, but needed to get all
the runtimes set up correctly so that standard library headers are
available. Now that this is in place, we can benchmark both languages.

Also fixes a bug in the C++ source generation causing compile failures.

Assisted-by: Antigravity with Gemini
This commit is contained in:
Chandler Carruth
2026-05-18 23:31:14 +00:00
committed by GitHub
parent 76f7025d68
commit 22d09f7f25
3 changed files with 124 additions and 69 deletions
+3 -2
View File
@@ -467,8 +467,9 @@ static auto IdentifierChars() -> llvm::ArrayRef<char> {
}
static constexpr llvm::StringRef NonCarbonCppKeywords[] = {
"asm", "do", "double", "float", "int", "long", "new", "signed",
"std", "try", "unix", "unsigned", "xor", "NAN", "M_E", "M_PI",
"asm", "catch", "do", "double", "float", "int", "long", "new",
"operator", "signed", "std", "this", "throw", "try", "typename", "unix",
"unsigned", "using", "xor", "M_E", "M_El", "M_PI", "NAN", "NULL",
};
// Returns a random identifier string of the specified length.