Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide nicer error messages on misuse of the library #8

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Commits on Jan 6, 2021

  1. Warn about forgetting to invoke void function

    If the user forgets the final `()` to invoke the function, they will now
    receive a warning. This is only relevant for void-returning functions
    where the result is not otherwise stored. For functions which return a
    value, this is both impossible to check and unnecessary, because they
    will probably receive other compile errors down the line.
    Quincunx271 committed Jan 6, 2021
    Configuration menu
    Copy the full SHA
    8a35362 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e312ab3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2e79510 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d86cd26 View commit details
    Browse the repository at this point in the history
  5. Fix line number

    Quincunx271 committed Jan 6, 2021
    Configuration menu
    Copy the full SHA
    e24f684 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2021

  1. Silence irrelevant Clang warnings about C++Future

    Even though we used feature-test macros, Clang emitted warnings about
    using features from C++Future. This change silences those warnings by
    using _Pragma to ignonre the particular warning flag for only the
    offending constructs.
    
    This requires quite a bit of compiler detection preprocessor code, but
    short of Clang getting its act together with these warnings around
    feature-test macros, there's not much else we can realistically do.
    Quincunx271 committed Jan 7, 2021
    Configuration menu
    Copy the full SHA
    12d5494 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    07a2f47 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3772aa0 View commit details
    Browse the repository at this point in the history