From 24c06be95abd83e56f6b43d7a3ccfae833ebba73 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 26 Sep 2016 09:47:23 +0800 Subject: macro_rules! - Clean up expansion to allow counting replacement uses --- src/macro_rules/parse.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/macro_rules/parse.cpp') diff --git a/src/macro_rules/parse.cpp b/src/macro_rules/parse.cpp index e382573a..56fa6518 100644 --- a/src/macro_rules/parse.cpp +++ b/src/macro_rules/parse.cpp @@ -418,6 +418,7 @@ bool patterns_are_same(const Span& sp, const MacroPatEnt& left, const MacroPatEn throw ""; } +// TODO: Also count the number of times each variable is used? void enumerate_names(const ::std::vector& pats, ::std::vector< ::std::string>& names) { for( const auto& pat : pats ) { -- cgit v1.2.3