Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果代码中使用了某些属性,我想发出警告。我可以使用过时的属性。但是使用的属性并没有过时,因此给出过时的警告是不正确的。当使用该属性时,如何为编译期间打印的某些属性定义自己的警告?