Dobiasd / FunctionalPlus

Functional Programming Library for C++. Write concise and readable C++ code.
http://www.editgym.com/fplus-api-search/
Boost Software License 1.0
2.1k stars 167 forks source link

foreach: update include_all_in_one #262

Closed pthom closed 2 years ago

pthom commented 2 years ago

Oops, I had forgotten to commit the all in one header, sorry!

Also, I added two entries to .gitignore (those are CLion build artifacts, the IDE I use most of the time). Is that OK?

Thanks

Dobiasd commented 2 years ago

Good catch. I had also forgotten about this header. :woozy_face:

I've now also updated the API search: https://i.imgur.com/oIxx2B8.png

And having these things in the .gitignore makes sense, I think. :+1:

Dobiasd commented 2 years ago

Oh, it seems, no lines in fwd_instances.autogenerated_defines are generated. Do you have an idea why?

pthom commented 2 years ago

Oh, good catch! Hum, by looking at gather_function_names_and_bind_counts it seems I forgot to add a line fwd bind count.


def gather_function_names_and_bind_counts():
    """
    Looks for pair of lines that look like this in the amalgamation content:

        API search type: flatten_tree_breadth_first : Tree a -> [a]
        fwd bind count: 0

    and returns a list  [(function_name1, bind_count1), (function_name2, bind_count2), ...]    
    """
   ... 
    for line_number, line_content in enumerate(amalgamated_lines):
        if "fwd bind count" in line_content:                                                             
           ...
pthom commented 2 years ago

I'll post a PR, I had forgotten about this