To check the google style guide rule here:
https://google.github.io/styleguide/cppguide.html#Default_Arguments
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang-tidy/google/DefaultArgumentsCheck.cpp | ||
---|---|---|
31 ↗ | (On Diff #55006) | Usually, clang-tidy's warning message is not a sentence, so remove the . at the end. How about default arguments on virtual or override methods are prohibited? |
clang-tidy/google/GoogleTidyModule.cpp | ||
40 ↗ | (On Diff #55006) | Please keep the alphabetical order. |
docs/ReleaseNotes.rst | ||
92 ↗ | (On Diff #55006) | s/vitual/virtual |
docs/clang-tidy/checks/google-default-arguments.rst | ||
6 ↗ | (On Diff #55006) | I'm a little confused about the words here. Indeed, the google-default-arguments checks the default parameter given for virtual methods. |
test/clang-tidy/google-default-arguments.cpp | ||
5 ↗ | (On Diff #55006) | The the first warning message you need check the all message including the check name. |
Cosmetics + change error message.
clang-tidy/google/GoogleTidyModule.cpp | ||
---|---|---|
40 ↗ | (On Diff #55006) | I think the script auto-generated that, but done. |
docs/clang-tidy/checks/google-default-arguments.rst | ||
6 ↗ | (On Diff #55006) | Right, I got mixed up in the terminology: the default argument is given as an initializer for the parameter declaration. |
LGTM with one nit.
test/clang-tidy/google-default-arguments.cpp | ||
---|---|---|
10 ↗ | (On Diff #56000) | You can remove the [google-default-arguments] in this line and line 15. Usually we only keep it on the first warning message. |