13#ifndef LLVM_CLANG_TOOLING_TRANSFORMER_SOURCECODE_H
14#define LLVM_CLANG_TOOLING_TRANSFORMER_SOURCECODE_H
106std::optional<CharSourceRange>
109 bool IncludeMacroExpansion =
true);
110inline std::optional<CharSourceRange>
112 bool IncludeMacroExpansion =
true) {
114 Context.getLangOpts(), IncludeMacroExpansion);
129 bool IncludeMacroExpansion);
130inline std::optional<CharSourceRange>
132 bool IncludeMacroExpansion) {
133 return getFileRange(EditRange, Context.getSourceManager(),
134 Context.getLangOpts(), IncludeMacroExpansion);
Defines the clang::ASTContext interface.
Defines the clang::SourceLocation class and associated facilities.
Defines the clang::TokenKind enum and support functions.
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Represents a character-granular source range.
static CharSourceRange getTokenRange(SourceRange R)
Decl - This represents one declaration (or definition), e.g.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
This class handles loading and caching of source files into memory.
TokenKind
Provides a simple uniform namespace for tokens from all C languages.