nridge added a comment. This is my attempt to avoid triggering the textual fallback for string literals, as per the discussion in the issue <https://github.com/clangd/clangd/issues/241>.
To classify tokens into the categories discussed in the issue, I resurrected and modified the `getTokenFlavor()` function that was removed in D75176 <https://reviews.llvm.org/D75176>. However, it does not seem to be working as I expect -- `Lexer::getRawToken()` is returning `TokenKind::raw_identifier` inside the string literal rather than `TokenKind::string_literal`. Am I misunderstanding how this API is supposed to work? I thought "raw" meant "no preprocessor", and things like string literals would still be recognized in raw mode. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D76098/new/ https://reviews.llvm.org/D76098 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits