Patch #3215 2011-09-24 14:17
alpha0010
(Partially) adds STL and C Library bindings to HeaderFixup- Download
- 3215-Partially_adds.patch (33.8 KB)
Index: src/plugins/contrib/headerfixup/bindings.h
===================================================================
--- src/plugins/contrib/headerfixup/bindings.h (revision 7857)
+++ src/plugins/contrib/headerfixup/bindings.h (working copy)
@@ -49,6 +49,10 @@
void SetDefaultsCodeBlocks();
/** \brief Initializing wxWidgets bindings with default values */
void SetDefaultsWxWidgets();
+ /** \brief Initializing STL bindings with default values */
+ void SetDefaultsSTL();
+ /** \brief Initializing C_Library bindings with default values */
+ void SetDefaultsCLibrary();
WX_DECLARE_STRING_HASH_MAP(wxArrayString,MappingsT);
WX_DECLARE_STRING_HASH_MAP(MappingsT,GroupsT);
Index: src/plugins/contrib/headerfixup/defaults.cpp
===================================================================
--- src/plugins/contrib/headerfixup/defaults.cpp (revision 7857)
+++ src/plugins/contrib/headerfixup/defaults.cpp (working copy)
@@ -15,6 +15,8 @@
{
SetDefaultsCodeBlocks();
SetDefaultsWxWidgets();
+ SetDefaultsSTL();
+ SetDefaultsCLibrary();
}
void Bindings::SetDefaultsCodeBlocks()
@@ -1822,3 +1824,436 @@
AddBinding(_T("wxWidgets_2_8_8"),_T("wxZlibInputStream"), _T("wx/zstream.h"));
AddBinding(_T("wxWidgets_2_8_8"),_T("wxZlibOutputStream"), _T("wx/zstream.h"));
}// SetDefaultsWxWidgets
+
+void Bindings::SetDefaultsSTL()
+{
+ AddBinding(_T("STL"),_T("adjacent_find"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("binary_search"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_copy"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_copy_backward"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_fill_n"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_generate_n"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_merge"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_remove_copy"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_remove_copy_if"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_replace_copy"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_replace_copy_if"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_reverse_copy"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_rotate_copy"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_set_difference"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_set_intersection"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_set_symmetric_difference"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_set_union"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("checked_unique_copy"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("copy"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("copy_backward"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("count"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("count_if"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("equal"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("equal_range"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("fill"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("fill_n"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("find"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("find_end"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("find_first_of"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("find_if"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("for_each"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("generate"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("generate_n"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("includes"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("inplace_merge"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("iter_swap"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("lexicographical_compare"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("lower_bound"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("make_heap"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("max"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("max_element"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("merge"), _T("algorithm"));
+ AddBinding(_T("STL"),_T("min"),
download for full patch...
History
alpha0010 2012-02-25 21:46
I believe it now includes most (if not all) of the STL.
mortenmacfly 2012-02-26 09:58
Applied in trunk. Thank you, nice contribution!