We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b296386 commit c593993Copy full SHA for c593993
clang/lib/Lex/Preprocessor.cpp
@@ -1458,10 +1458,8 @@ void Preprocessor::removeCommentHandler(CommentHandler *Handler) {
1458
1459
bool Preprocessor::HandleComment(Token &result, SourceRange Comment) {
1460
bool AnyPendingTokens = false;
1461
- for (std::vector<CommentHandler *>::iterator H = CommentHandlers.begin(),
1462
- HEnd = CommentHandlers.end();
1463
- H != HEnd; ++H) {
1464
- if ((*H)->HandleComment(*this, Comment))
+ for (CommentHandler *H : CommentHandlers) {
+ if (H->HandleComment(*this, Comment))
1465
AnyPendingTokens = true;
1466
}
1467
if (!AnyPendingTokens || getCommentRetentionState())
0 commit comments