mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Refactor Matcher code to reduce per-Matcher boilerplate (#615)
This is in part to eliminate the "sm" and "lang_opts" variables that received comment, but also cuts back on the use of auto.
This commit is contained in:
@@ -9,12 +9,7 @@
|
||||
namespace Carbon {
|
||||
namespace {
|
||||
|
||||
class FnInserterTest : public MatcherTestBase {
|
||||
protected:
|
||||
FnInserterTest() : fn_inserter(replacements, &finder) {}
|
||||
|
||||
Carbon::FnInserter fn_inserter;
|
||||
};
|
||||
class FnInserterTest : public MatcherTestBase<FnInserterFactory> {};
|
||||
|
||||
TEST_F(FnInserterTest, TrailingReturn) {
|
||||
constexpr char Before[] = "auto A() -> int;";
|
||||
|
||||
Reference in New Issue
Block a user