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

Align the header comment with the implementation: this API is for when the 
top-of-stack lexer state is unknown.

Fixes #53214

>From 3ea59eac6858789efe7656d15aff9e73d46b2df5 Mon Sep 17 00:00:00 2001
From: richardmilles <[email protected]>
Date: Fri, 7 Aug 2026 10:17:06 +0200
Subject: [PATCH] [clang][Lex] Fix conflicting RemoveTopOfLexerStack docs

Fixes #53214
---
 clang/include/clang/Lex/Preprocessor.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/include/clang/Lex/Preprocessor.h 
b/clang/include/clang/Lex/Preprocessor.h
index e752010dd2062..6b91a622961c4 100644
--- a/clang/include/clang/Lex/Preprocessor.h
+++ b/clang/include/clang/Lex/Preprocessor.h
@@ -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.
   void RemoveTopOfLexerStack();
 
   /// From the point that this method is called, and until

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to