Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang/test/Analysis/misc-ps.m | ||
---|---|---|
5–7 ↗ | (On Diff #221428) | 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 |
Comment Actions
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 ↗ | (On Diff #221428) | Would it be better to add -D__clang_analyzer__ to the %clang_analyze_cc1 expansion? |
clang/test/Analysis/misc-ps.m | ||
---|---|---|
5–7 ↗ | (On Diff #221428) | 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. |