[PATCH] D128774: [libTooling] Add a comment about comment parsing to getAssociatedRange.
Aaron Jacobs via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 29 16:40:00 PDT 2022
jacobsa updated this revision to Diff 441203.
jacobsa added a comment.
Address formatting comment from ymandel.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128774/new/
https://reviews.llvm.org/D128774
Files:
clang/include/clang/Tooling/Transformer/SourceCode.h
Index: clang/include/clang/Tooling/Transformer/SourceCode.h
===================================================================
--- clang/include/clang/Tooling/Transformer/SourceCode.h
+++ clang/include/clang/Tooling/Transformer/SourceCode.h
@@ -41,6 +41,10 @@
/// terminators. The returned range consists of file locations, if valid file
/// locations can be found for the associated content; otherwise, an invalid
/// range is returned.
+///
+/// Note that parsing comments is disabled by default. In order to select a
+/// range containing associated comments, you may need to invoke the tool with
+/// `-fparse-all-comments`.
CharSourceRange getAssociatedRange(const Decl &D, ASTContext &Context);
/// Returns the source-code text in the specified range.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128774.441203.patch
Type: text/x-patch
Size: 766 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220629/e3586b19/attachment.bin>
More information about the cfe-commits
mailing list