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

Crank up static analysis audit #2607

Merged
merged 56 commits into from
Sep 10, 2019
Merged

Crank up static analysis audit #2607

merged 56 commits into from
Sep 10, 2019

Commits on Aug 29, 2019

  1. Configuration menu
    Copy the full SHA
    1989eb9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    65dec36 View commit details
    Browse the repository at this point in the history
  3. [Complex] C26446, Use .at instead of array indices - Reword UTF8OutPi…

    …peReader to use std::array so we can use .at and move some pointers to iterators.
    miniksa committed Aug 29, 2019
    Configuration menu
    Copy the full SHA
    23897b1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bd2d5dd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b33a598 View commit details
    Browse the repository at this point in the history
  6. C26493, no C-style casts.

    miniksa committed Aug 29, 2019
    Configuration menu
    Copy the full SHA
    c63289b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a381f6a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8ea7401 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    50e2d0c View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8579d89 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8c3a629 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    4f1157c View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2019

  1. Configuration menu
    Copy the full SHA
    30e8e7f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cdfbf8f View commit details
    Browse the repository at this point in the history
  3. C26466, disable dynamic_cast rule because we're not RTTI due to OS po…

    …licy. Also reinstitute C6001 and C6011 because they're not actually a part of the 'core checks' and they're goodness we had before I turned them off at the beginning of this series.
    miniksa committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    230e7f4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7d4096b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    81ab580 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d5d7cf4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    bbdfdf9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b180406 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c956913 View commit details
    Browse the repository at this point in the history
  10. C26429, mark gsl::not_null on places where we don't test for null (sh…

    …ouldn't need to, internal methods only.
    miniksa committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    594dca9 View commit details
    Browse the repository at this point in the history
  11. C26430, not tested for nullness on all paths. I will just always chec…

    …k for null as a defense against a bad QI implementation.
    miniksa committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    45e5993 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9678dd8 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    dd49c3e View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    d8bc94f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    2d3f285 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    3bbd8f4 View commit details
    Browse the repository at this point in the history
  17. C26434, do not hide base class methods. Overriding this one because i…

    …t's going to require design changes that need a future todo.
    miniksa committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    b78d917 View commit details
    Browse the repository at this point in the history
  18. C26426, global initializers calling non-constexpr. Suppress for defau…

    …lt settings as changing to wstring_view cascades through the entire codebase (non-trivial, string_views aren't guaranteed as Z terminated.)
    miniksa committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    b87f8f9 View commit details
    Browse the repository at this point in the history
  19. C26426, global initializer calls non-constexpr. This needs further co…

    …nsideration. I brifely tried to turn GlyphWidth into a singleton class but it cascaded into interesting far corners of the code because IsGlyphFullWidth was liberally used everywhere for a long time. I'm punting here to a future work item.
    miniksa committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    072bbfd View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    5d60d69 View commit details
    Browse the repository at this point in the history
  21. C26490, don't reinterpret_cast. It looks like the buffer can easily b…

    …e char. Also use brace initialization per feedback.
    miniksa committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    c7f0a34 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    cd144e9 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    e14a59a View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    87f5852 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    b2c093f View commit details
    Browse the repository at this point in the history
  26. C26490, no reinterpret_cast. Suppress on OutputCellIterator because f…

    …ixing it will make trouble in the Windows build if we're not careful thanks to non-differentiation of wchar_t and DWORD.
    miniksa committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    3a0da64 View commit details
    Browse the repository at this point in the history
  27. C26490, no reinterpret_cast. Just use the actual struct and copy inst…

    …ead of relying on the wink/nudge fact they're defined the same way.
    miniksa committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    244fb72 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    41f209f View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    93aa945 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    ae25a32 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    01bd770 View commit details
    Browse the repository at this point in the history
  32. C26429, C26481, don't use pointer arithmetic, test for nullness. Also…

    … eliminated completely unused GetTextRaw. Left todo behind for pointers as iterator boundaries in CharRowCellReference to fix later.
    miniksa committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    23b4a46 View commit details
    Browse the repository at this point in the history
  33. C26481, don't use pointer arithmetic. Convert to measuring string wit…

    …hin known limit and using view.
    miniksa committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    4204733 View commit details
    Browse the repository at this point in the history
  34. Suppress last two errors (C26455 default constructor throw in DxEngin…

    …e because it's due for refactoring soon anyway & C26444 custom construction/destruction on OutputCellIterator because I can't see what's going on and it needs more investigation and shouldn't hold this up). Also run codeformat.
    miniksa committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    6735311 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2019

  1. Configuration menu
    Copy the full SHA
    7d9534b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c66e66 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3bff2a3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b7c1e05 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d0c207b View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2019

  1. Add GH issue IDs to all the suppress/disables that I left behind as t…

    …hey were a bit too challenging to solve with this giant PR
    miniksa committed Sep 5, 2019
    Configuration menu
    Copy the full SHA
    96cc772 View commit details
    Browse the repository at this point in the history
  2. PR feedback.

    miniksa committed Sep 5, 2019
    Configuration menu
    Copy the full SHA
    689c21e View commit details
    Browse the repository at this point in the history
  3. use the array size for the read bounds. using extent on the newly-con…

    …verted-to-array type doesn't give the correct value.
    miniksa committed Sep 5, 2019
    Configuration menu
    Copy the full SHA
    fc81adf View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2019

  1. Some of the PR feedback.

    miniksa committed Sep 6, 2019
    Configuration menu
    Copy the full SHA
    d8ff47a View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2019

  1. Configuration menu
    Copy the full SHA
    18bacfe View commit details
    Browse the repository at this point in the history