[PATCH] D40108: [clang-tidy] Adding Fuchsia checkers to clang-tidy
Julie Hockett via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 20 15:55:38 PST 2017
juliehockett added inline comments.
================
Comment at: clang-tidy/fuchsia/DefaultArgumentsCheck.cpp:22
+ // Calling a function which uses default arguments is disallowed.
+ Finder->addMatcher(cxxDefaultArgExpr().bind("stmt"), this);
+ // Declaring default parameters is disallowed.
----------------
aaron.ballman wrote:
> Isn't this case already covered by the other matcher? Or do you have system header files which have default arguments and those functions are disallowed by the style guide, but cannot be removed from the system header?
The latter -- there's a bunch of third-party code and the like that could have default arguments, but shouldn't be used like that in the project.
https://reviews.llvm.org/D40108
More information about the cfe-commits
mailing list