Menu ▾ ▴

#575 Declarations hide class members

closed-fixed
None
2024-07-02
2024-06-24
No

Compiling astyle-3.5-x64 using VS19Pro, level 4, give some compilation warnings where the four first can be problematic. The other two would also beneficial to get rid of.

AStyle\src\ASFormatter.cpp(4791,77): warning C4458: declaration of 'shouldPadParensOutside' hides class member
AStyle\src\ASFormatter.cpp(4791,106): warning C4458: declaration of 'shouldPadParensInside' hides class member
AStyle\src\ASFormatter.cpp(4791,134): warning C4458: declaration of 'shouldUnPadParens' hides class member
AStyle\src\ASFormatter.cpp(4791,158): warning C4458: declaration of 'shouldPadFirstParen' hides class member
AStyle\src\ASBeautifier.cpp(2105,67): warning C4100: 'line': unreferenced formal parameter
AStyle\src\astyle_main.cpp(3667,81): warning C4100: 'errorInfo': unreferenced formal parameter

Thanks!

Discussion

  • André Simon

    André Simon - 2024-06-30
    • status: open --> open-accepted
    • assigned_to: André Simon
     
  • André Simon

    André Simon - 2024-06-30
    • status: open-accepted --> closed-fixed
     
  • André Simon

    André Simon - 2024-06-30

    Fixed in 3.5.1

     
  • Ola Josefsson

    Ola Josefsson - 2024-07-02

    Thanks for the rapid response and solution!

     

Log in to post a comment.