[cfe-dev] Extracting preprocessor documentation
Guilherme
guibufolo+llvm at gmail.com
Tue Feb 10 14:30:48 PST 2015
Well i thought this would be the answer i would get.
Is it possible to do this from a theoretical point of view? The
problem i see is that preprocessing is done in stage 4 where there is
no syntax tree. It is built in stage 7.
Would there still be a way to annotate this in the syntax tree?
Thank you
On Tue, Feb 10, 2015 at 7:39 PM, Kevin Funk <kfunk at kde.org> wrote:
> On Tuesday 10 February 2015 18:47:16 Guilherme wrote:
>> Hello,
>>
>> Currently (my version is 3.4.2) when dumping the ast with -ast-dump i
>> can see that comments that represent documentation is kept in the AST.
>>
>> Unfortunately it seems that preprocessor defines are not so lucky. Is
>> there any command line option that will allow me to keep the
>> preprocessor tokens with their documentation? Has this been
>> implemented in a newer clang version?
>
> Nope.
>
> I've asked this last year already:
> http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-August/038544.html
>
>>
>> Thank you very much
>
> Regards
>
> --
> Kevin Funk | kfunk at kde.org | http://kfunk.org
More information about the cfe-dev
mailing list