[clang] [clang][Lex] Fix conflicting RemoveTopOfLexerStack docs (PR #214679)

via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 7 04:25:11 PDT 2026


================
@@ -1747,7 +1747,7 @@ class Preprocessor {
   /// Pop the current lexer/macro exp off the top of the lexer stack.
   ///
   /// This should only be used in situations where the current state of the
-  /// top-of-stack lexer is known.
+  /// top-of-stack lexer is unknown.
----------------
richardmilles wrote:

Good point — kept the corrected comment in the header (for Doxygen) and removed the duplicate from the .cpp.

https://github.com/llvm/llvm-project/pull/214679


More information about the cfe-commits mailing list