diff --git a/agsearch.cpp b/agsearch.cpp index ebfd549..5f1ecb8 100644 --- a/agsearch.cpp +++ b/agsearch.cpp @@ -55,6 +55,7 @@ namespace { { &agsearch::parameter_set::match_ifs_and_conditional, { L"if", L"?" } }, { &agsearch::parameter_set::match_class_struct_typename, { L"class", L"struct", L"typename" } }, { &agsearch::parameter_set::match_float_and_double_decl, { L"float", L"double" } }, + { &agsearch::parameter_set::match_using_and_typedef, { L"using", L"typedef" } }, }; static const std::set alternative_spellings_optional = { { &agsearch::parameter_set::match_ifs_and_conditional, { L"else", L":" } }, diff --git a/agsearch.h b/agsearch.h index 0d3e3e2..e36aef7 100644 --- a/agsearch.h +++ b/agsearch.h @@ -69,6 +69,7 @@ class agsearch { bool match_any_inheritance_type = true; bool match_any_integer_decl_style = true; bool match_float_and_double_decl = true; + bool match_using_and_typedef = false; // TODO: matching different int declarations (rather than through ignored_patterns) // TODO: reorder "const volatile", "static inline", @@ -153,6 +154,8 @@ class agsearch { double decimal = 0.0; }; + static const auto xxx = sizeof (token); + protected: // pattern diff --git a/test/SearchTest.rc b/test/SearchTest.rc index b087de5..969e7f0 100644 --- a/test/SearchTest.rc +++ b/test/SearchTest.rc @@ -72,4 +72,5 @@ LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT 1032 "Match any inheritance type (if omitted)" 1033 "Match any compatible integer declaration style" 1034 "Match float && double when searching for the other" + 1035 "Match using and typedef" }