mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 02:40:29 +00: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:
1 parent
db2efeafeb
commit
4f1b2198ff
13 files changed
+252
-162
No files matched your search
@@ -9,12 +9,7 @@
|
||||
namespace Carbon {
|
||||
namespace {
|
||||
|
||||
class VarDeclTest : public MatcherTestBase {
|
||||
protected:
|
||||
VarDeclTest() : var_decl(replacements, &finder) {}
|
||||
|
||||
Carbon::VarDecl var_decl;
|
||||
};
|
||||
class VarDeclTest : public MatcherTestBase<VarDeclFactory> {};
|
||||
|
||||
TEST_F(VarDeclTest, Declaration) {
|
||||
constexpr char Before[] = "int i;";
|
||||
|
||||
Reference in new issue
Block a user