Details
Diff Detail
Event Timeline
| clang-tidy/misc/UnusedUsingDeclsCheck.cpp | |||
|---|---|---|---|
| 22 | 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 | Debug output? | ||
| 103 | .count() for sets is as effective, but results in clearer code. | ||
| clang-tidy/misc/UnusedUsingDeclsCheck.h | |||
| 39 | SmallPtrSet should be more efficient here. | ||
| test/clang-tidy/misc-unused-using-decls.cpp | |||
| 86 | Not for this patch, but it makes sense to remove trailing comments on deleted lines. | ||
| clang-tidy/misc/UnusedUsingDeclsCheck.cpp | ||
|---|---|---|
| 59 | Actually, the Using->shadows() returns an iterator range, but I'm fine renaming it here. | |
| clang-tidy/misc/UnusedUsingDeclsCheck.cpp | ||
|---|---|---|
| 59 | 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 | I see it now. Thanks for the explanations :-). | |
SmallPtrSet should be more efficient here.