tau icon indicating copy to clipboard operation
tau copied to clipboard

Make parameters and variables constant when they are not mutated

Open tomasz-lisowski opened this issue 2 years ago • 2 comments

tomasz-lisowski avatar Jun 06 '22 14:06 tomasz-lisowski

Hey, can you please merge this?

tomasz-lisowski avatar Oct 24 '22 20:10 tomasz-lisowski

Please address my review changes from June.

jasmcaus avatar Oct 25 '22 06:10 jasmcaus

@jasmcaus I don't see any code reviews from you on this pull request? What are you referring to?

tomasz-lisowski avatar Oct 25 '22 13:10 tomasz-lisowski

Strange. Just made some updates. LMK if you can see those.

jasmcaus avatar Oct 25 '22 13:10 jasmcaus

I still don't see it. Are you sure you are submitting the code review? (big green "submit review" button :>)

tomasz-lisowski avatar Oct 25 '22 14:10 tomasz-lisowski

Yes. Strange why it isn't visible to you.

I'll add below what I'd added:

  • What's the difference between const char*..., char* const... and const char* const...? -- in tauShouldDecomposeMacro (tau.h:435)
  • Why the const* const? -- in tauCmdLineRead (tau.h:1019)

jasmcaus avatar Oct 28 '22 09:10 jasmcaus

Sorry about that. Please see above reply.

jasmcaus avatar Oct 28 '22 09:10 jasmcaus