[PATCH] D146385: [clang][ExtractAPI] Complete declaration fragments for TagDecl types defined in a typedef
R4444 via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 29 13:53:27 PDT 2023
Ruturaj4 updated this revision to Diff 509472.
Ruturaj4 added a comment.
1. Updating D146385 <https://reviews.llvm.org/D146385>: [clang][ExtractAPI] Complete declaration fragments for TagDecl types defined in a typedef #
2. Enter a brief description of the changes included in this update.
3. The first line is used as subject, next lines as comment. #
4. If you intended to create a new revision, use:
5. $ arc diff --create
declare modifyRecord function "static"
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146385/new/
https://reviews.llvm.org/D146385
Files:
clang/lib/ExtractAPI/ExtractAPIVisitor.cpp
Index: clang/lib/ExtractAPI/ExtractAPIVisitor.cpp
===================================================================
--- clang/lib/ExtractAPI/ExtractAPIVisitor.cpp
+++ clang/lib/ExtractAPI/ExtractAPIVisitor.cpp
@@ -49,7 +49,7 @@
}
template <typename T>
-void modifyRecord(const T &Records, const llvm::StringRef &name) {
+static void modifyRecord(const T &Records, const llvm::StringRef &name) {
for (const auto &Record : Records) {
if (name == Record.second.get()->Name) {
Record.second.get()->Declaration.removeLast();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146385.509472.patch
Type: text/x-patch
Size: 541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230329/ff6e7804/attachment.bin>
More information about the cfe-commits
mailing list