[PATCH] D128774: [libTooling] Add a comment about comment parsing to getAssociatedRange.
Yitzhak Mandelbaum via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 30 05:47:21 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG007934343c4c: [libTooling][NFC] Add a comment about comment parsing to getAssociatedRange. (authored by jacobsa, committed by ymandel).
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
@@ -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
CharSourceRange getAssociatedRange(const Decl &D, ASTContext &Context);
/// Returns the source-code text in the specified range.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 766 bytes
Desc: not available
More information about the cfe-commits