Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang-tidy/misc/UnusedUsingDeclsCheck.cpp | |||
---|---|---|---|
22 ↗ | (On Diff #57778) | This method assumes a rather non-trivial definition of "valid". Please add a comment what exactly this method does. Also, static is preferred to anonymous namespaces for functions in LLVM style (http://llvm.org/docs/CodingStandards.html#anonymous-namespaces):
| |
29 ↗ | (On Diff #57778) | Debug output? | |
102 ↗ | (On Diff #57778) | .count() for sets is as effective, but results in clearer code. | |
clang-tidy/misc/UnusedUsingDeclsCheck.h | |||
39 ↗ | (On Diff #57778) | SmallPtrSet should be more efficient here. | |
test/clang-tidy/misc-unused-using-decls.cpp | |||
86 ↗ | (On Diff #57778) | Not for this patch, but it makes sense to remove trailing comments on deleted lines. |
clang-tidy/misc/UnusedUsingDeclsCheck.cpp | ||
---|---|---|
59 ↗ | (On Diff #57790) | Actually, the Using->shadows() returns an iterator range, but I'm fine renaming it here. |
clang-tidy/misc/UnusedUsingDeclsCheck.cpp | ||
---|---|---|
59 ↗ | (On Diff #57790) | Sure, it returns a llvm::iterator_range<shadow_iterator>, which is just a range adaptor for a pair of iterators. It's not a "collection of iterators", it's a "collection, defined by a pair of iterators". If you iterate over it using a range-based for loop, you get whatever is pointed by the iterators, not iterators. |
clang-tidy/misc/UnusedUsingDeclsCheck.cpp | ||
---|---|---|
59 ↗ | (On Diff #57790) | I see it now. Thanks for the explanations :-). |