Re: [PATCH] D18191: [clang-tidy] Add check for function parameters that are const& to builtin types

2016-04-04 Thread Steve Downey via cfe-commits
sdowney added a comment. At least in my codebase, skipping templates is too strong. I run across ones where the const& parameter is not one controlled by a template. It's often a size_t. I could easily see not fixing the typedef'd refs, also, although I think warning on them is still useful.

Re: [PATCH] D18191: [clang-tidy] Add check for function parameters that are const& to builtin types

2016-03-19 Thread Steve Downey via cfe-commits
sdowney updated this revision to Diff 50986. sdowney added a comment. Add tests with functions generated with MACROS http://reviews.llvm.org/D18191 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/ConstRefBuiltinCheck.cpp clang-tidy/misc/ConstRefBuiltinCheck.h

Re: [PATCH] D18191: [clang-tidy] Add check for function parameters that are const& to builtin types

2016-03-19 Thread Steve Downey via cfe-commits
sdowney updated this revision to Diff 51000. sdowney added a comment. Add tests for FixIts http://reviews.llvm.org/D18191 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/ConstRefBuiltinCheck.cpp clang-tidy/misc/ConstRefBuiltinCheck.h clang-tidy/misc/MiscTidyModule.cpp

Re: [PATCH] D18191: [clang-tidy] Add check for function parameters that are const& to builtin types

2016-03-18 Thread Steve Downey via cfe-commits
sdowney updated this revision to Diff 50982. sdowney added a comment. Add more test cases, covering templates, template specializations, function definitions, member function templates. Check if parent function of the argument is a nullptr. Fix spelling mistake.

Re: [PATCH] D18191: [clang-tidy] Add check for function parameters that are const& to builtin types

2016-03-18 Thread Steve Downey via cfe-commits
sdowney added a comment. In http://reviews.llvm.org/D18191#376471, @LegalizeAdulthood wrote: > There is utility in the definition of a function in saying that an argument > is `const int i` instead of `int i`. The const-ness declares the intent that > this local variable is not going to be

[PATCH] D18191: [clang-tidy] Add check for function parameters that are const& to builtin types

2016-03-15 Thread Steve Downey via cfe-commits
sdowney created this revision. sdowney added a reviewer: alexfh. sdowney added a subscriber: cfe-commits. Add a check for const& to builtin types. Add FixIt replacing, for example, 'const& int i' with 'int i'. http://reviews.llvm.org/D18191 Files: clang-tidy/misc/CMakeLists.txt

Re: [PATCH] D16963: Copy LibASTMatchersReference.html to gen'd docs

2016-02-09 Thread Steve Downey via cfe-commits
sdowney added a subscriber: sdowney. sdowney added a comment. I'll push up a review with the one line link addition later. Thanks! The html copy should also get applied to the release_38 branch too, if there's going to be another RC. http://reviews.llvm.org/D16963

Re: [PATCH] D16963: Copy LibASTMatchersReference.html to gen'd docs

2016-02-09 Thread Steve Downey via cfe-commits
I'll push up a review with the one line link addition later. Thanks! The html copy should also get applied to the release_38 branch too, if there's going to be another RC. On Tue, Feb 9, 2016 at 11:52 AM Manuel Klimek wrote: > klimek added a subscriber: klimek. > klimek

[PATCH] D16963: Copy LibASTMatchersReference.html to gen'd docs

2016-02-07 Thread Steve Downey via cfe-commits
sdowney created this revision. sdowney added a reviewer: reames. sdowney added a subscriber: cfe-commits. The LibASTMatchersReference documentation is an html file, not an rst document, so is not produced by sphinx. Copy the html into the proper location as part of the sphinx html doc generation.