Details
Diff Detail
Event Timeline
clang/test/Analysis/misc-ps.m | ||
---|---|---|
5–7 | We can make a new test that tests the driver instead, i.e. something like // RUN: %clang --analyze %s #ifndef __clang_analyzer__ #error __clang_analyzer__ not defined #endif |
Thanks! I like how it makes the option transparent to fellow developers by having it show up in the -### run-line.
clang/test/Analysis/misc-ps.m | ||
---|---|---|
5–7 | Would it be better to add -D__clang_analyzer__ to the %clang_analyze_cc1 expansion? |
clang/test/Analysis/misc-ps.m | ||
---|---|---|
5–7 | I don't really care, we don't ever need it in tests and we don't need more than one test to test the macro itself. P.S. Whoops, i think we broke clang-tidy. I'm glad they had a test for this! :) I don't know how exactly were they picking up the macro. |
We can make a new test that tests the driver instead, i.e. something like