[PATCH] D141950: [NFC] Use find_last_of when seraching for code in getRawCommentForDeclNoCacheImpl
Ivan Murashko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 21 08:26:01 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd604c57164ec: [NFC] Use find_last_of when seraching for code in… (authored by kuganv, committed by ivanmurashko).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141950/new/
https://reviews.llvm.org/D141950
Files:
clang/lib/AST/ASTContext.cpp
Index: clang/lib/AST/ASTContext.cpp
===================================================================
--- clang/lib/AST/ASTContext.cpp
+++ clang/lib/AST/ASTContext.cpp
@@ -349,7 +349,7 @@
// There should be no other declarations or preprocessor directives between
// comment and declaration.
- if (Text.find_first_of(";{}#@") != StringRef::npos)
+ if (Text.find_last_of(";{}#@") != StringRef::npos)
return nullptr;
return CommentBeforeDecl;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141950.499190.patch
Type: text/x-patch
Size: 463 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230221/d7e2c9b1/attachment.bin>
More information about the cfe-commits
mailing list