[clang] [lldb] [Modules] Handle decl attributes on deserialization the same as during parsing. (PR #208348)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 23 13:57:12 PDT 2026
vgvassilev wrote:
> > Have you considered a larger change that might fix the whole initialization aspect of the parser: perhaps we could move it in the Action class itself...
>
> I don't understand what exactly you mean. Are you talking about the need to call `Parser::Initialize()` and to call it at a specific time? Because with `Initialize()` called from the constructor both of those parts are handled automatically by creating a Parser (I guess, that is kinda a rationale for constructors).
I was thinking to move the entire parser object under the frontend action class but that is much larger refactoring which I believe will drop the need for scattering Initialize and ConsumeToken around.
https://github.com/llvm/llvm-project/pull/208348
More information about the cfe-commits
mailing list