summaryrefslogtreecommitdiff
path: root/src/macro_rules/parse.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-26 09:47:23 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-26 09:47:23 +0800
commit24c06be95abd83e56f6b43d7a3ccfae833ebba73 (patch)
tree181c72a6fc4782a52d6962d3cb7569922b628a7d /src/macro_rules/parse.cpp
parentdcdbc3801bd5c22f818ec60c65039d11fd46e78d (diff)
downloadmrust-24c06be95abd83e56f6b43d7a3ccfae833ebba73.tar.gz
macro_rules! - Clean up expansion to allow counting replacement uses
Diffstat (limited to 'src/macro_rules/parse.cpp')
-rw-r--r--src/macro_rules/parse.cpp1
1 files changed, 1 insertions, 0 deletions
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<MacroPatEnt>& pats, ::std::vector< ::std::string>& names) {
for( const auto& pat : pats )
{