ΒΆclang::CharSourceRange getAssociatedRange(
const clang::Decl& D,
clang::ASTContext& Context)
clang::CharSourceRange getAssociatedRange(
const clang::Decl& D,
clang::ASTContext& Context)
Description
Returns the logical source range of the node extended to include associated comments and whitespace before and after the node, and associated 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`.
Declared at: clang/include/clang/Tooling/Transformer/SourceCode.h:48
Parameters
- const clang::Decl& D
- clang::ASTContext& Context