Details
Diff Detail
Event Timeline
This is my first time sending a review with arc & phabricator: please let me know if I've set anything up incorrectly!
+cfe-commits
Alex, you'll always want to cc' cfe-commits when sending patches to clang-related things.
Looks good modulo comments. Thanks for working on this!
clang-tidy/ClangTidy.h | ||
---|---|---|
116 | I'd not make any assumptions about the life-time of Options. Please just copy it here, not store a reference. | |
test/clang-tidy/temporaries.cpp | ||
1 | Add -disable-checks='', so that we don't rely on its default value. | |
2 | Could you instead add test code which actually generates a core.NullDereference warning, so that we can be sure it's not just completely disabled. // CHECK-NOT: warning void testNullPointerDereferencePositive() { int *value = 0; // CHECK: :[[@LINE+1]]:3: warning: ..... *value = 1; } // CHECK-NOT: warning <the rest of your test case> |
- Respond to review comments: copy options instead of maintaining a reference, and add more test cases.
test/clang-tidy/temporaries.cpp | ||
---|---|---|
4 | You don't need this now as the correct output is guaranteed to be non-empty. And you can now just pipe clang-tidy output to FileCheck |
I'd not make any assumptions about the life-time of Options. Please just copy it here, not store a reference.