[cfe-commits] r164858 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td include/clang/Basic/TokenKinds.h include/clang/Lex/MacroInfo.h include/clang/Lex/Token.h lib/Lex/MacroInfo.cpp lib/Sema/AnalysisBasedWarnings.cpp test/SemaCXX/switc
Dmitri Gribenko
gribozavr at gmail.com
Sat Sep 29 04:43:07 PDT 2012
On Sat, Sep 29, 2012 at 12:36 PM, Alexander Kornienko <alexfh at google.com> wrote:
>
> On Sat, Sep 29, 2012 at 11:27 AM, Dmitri Gribenko <gribozavr at gmail.com>
> wrote:
>>
>> Hi Alexander,
>>
>> I want to use this in the AST library to suggest a proper macro for
>> __attribute__((deprecated)). Does it make sense to move these helper
>> infrastructure from Sema to the Preprocessor class itself?
>
> I don't see any problems with that. Basically, I intentionally made the
> implementation quite generic, so it can be reused elsewhere. So you can move
> it wherever it is appropriate.
Thanks for the quick reply!
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the cfe-commits
mailing list