Skip to content

Commit b3b3219

Browse files
committed
[NFC] Update comments in code
Signed-off-by: yronglin <[email protected]>
1 parent 097f8c6 commit b3b3219

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

clang/include/clang/Lex/Preprocessor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ class Preprocessor {
350350
/// Whether the last token we lexed was an '@'.
351351
bool LastTokenWasAt = false;
352352

353-
/// First pp-token in current translation unit.
353+
/// First pp-token source location in current translation unit.
354354
SourceLocation FirstPPTokenLoc;
355355

356356
/// A position within a C++20 import-seq.

clang/include/clang/Lex/TokenLexer.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ class TokenLexer {
139139
void Init(const Token *TokArray, unsigned NumToks, bool DisableMacroExpansion,
140140
bool OwnsTokens, bool IsReinject);
141141

142-
/// If the next token lexed will pop this macro off the expansion stack,
143-
/// return std::nullopt, otherwise return the next unexpanded token.
142+
/// If TokenLexer::isAtEnd returns true (the next token lexed will pop this
143+
/// macro off the expansion stack, return std::nullopt, otherwise return the
144+
/// next unexpanded token.
144145
std::optional<Token> peekNextPPToken() const;
145146

146147
/// Lex and return a token from this macro stream.

0 commit comments

Comments
 (0)