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

Add first .clang-tidy file #2847

Merged
merged 9 commits into from
Jul 5, 2024
Merged

Commits on Jul 5, 2024

  1. clang-tidy: add clang-tidy config

    Add clang-tidy config which makes clang-tidy succeed for calling:
       run-clang-tidy-14 src/**/*.c
    
    Signed-off-by: Johannes Holland <[email protected]>
    Johannes Holland committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    7d1e0f3 View commit details
    Browse the repository at this point in the history
  2. clang-tidy: add bugprone-* checks and fix bugprone-macro-parentheses

    Signed-off-by: Johannes Holland <[email protected]>
    Johannes Holland committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    71daab2 View commit details
    Browse the repository at this point in the history
  3. clang-tidy: fix bugprone-too-small-loop-variable

    Signed-off-by: Johannes Holland <[email protected]>
    Johannes Holland committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    a18320b View commit details
    Browse the repository at this point in the history
  4. clang-tidy: fix bugprone-suspicious-string-compare

    Signed-off-by: Johannes Holland <[email protected]>
    Johannes Holland committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    833dda5 View commit details
    Browse the repository at this point in the history
  5. clang-tidy: fix bugprone-suspicious-missing-comma

    Signed-off-by: Johannes Holland <[email protected]>
    Johannes Holland committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    91e86be View commit details
    Browse the repository at this point in the history
  6. clang-tidy: fix bugprone-sizeof-expression

    Signed-off-by: Johannes Holland <[email protected]>
    Johannes Holland committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    26645e9 View commit details
    Browse the repository at this point in the history
  7. clang-tidy: fix bugprone-not-null-terminated-result

    Fixes: tpm2-software#2826
    
    Signed-off-by: Johannes Holland <[email protected]>
    Johannes Holland committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    4e00d02 View commit details
    Browse the repository at this point in the history
  8. clang-tidy: fix bugprone-narrowing-conversions

    Signed-off-by: Johannes Holland <[email protected]>
    Johannes Holland committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    0025402 View commit details
    Browse the repository at this point in the history
  9. clang-tidy: fix bugprone-reserved-identifier (without API changes)

    Signed-off-by: Johannes Holland <[email protected]>
    Johannes Holland committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    2759c00 View commit details
    Browse the repository at this point in the history