[Clang] Fix how ReadMacroParameterList handles comments in macro parameter-list when in -CC mode
Currently when in -CC mode when processing a function like macro ReadMacroParameterList(...) does not handle the case where there is a comment embedded in the parameter-list. Instead of using LexUnexpandedToken(...) I switched to using LexUnexpandedNonComment(...) which eats comments while lexing. Fixes: https://github.com/llvm/llvm-project/issues/60887 Differential Revision: https://reviews.llvm.org/D144511
Loading
Please sign in to comment