#include "clang/Frontend/FrontendActions.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "clang/Rewrite/Core/Rewriter.h"
#include "clang/Tooling/CommonOptionsParser.h"
#include "clang/Tooling/Refactoring.h"
#include "clang/Tooling/RefactoringCallbacks.h"
#include "clang/Tooling/Tooling.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "llvm/Support/CommandLine.h"
#include <any>
#include <fstream>
#include <iostream>
#include <string>
#include <unordered_set>
#include <variant>
#include <memory>
#include <cstdlib>
#include <vector>
#include <initializer_list>
#include <algorithm>
#include <filesystem>
#include <random>
#include <optional>
Go to the source code of this file.
|
| typedef void(* | ws2st::WashCallbackFn) (const MatchFinder::MatchResult &, Replacements &) |
| | Defines the type of the callback function which takes a MatchResult containing AST information about the match and a mutable reference to the Replacements list which can be added to by the callback function. More...
|
| |
| typedef void(* | ws2st::WashComputeFn) (const WashOptions &opts) |
| |
|
| std::optional< std::string > | getSourceText (ASTContext *ctx, SourceRange srcRange) |
| | Get the text of a source code range or not if it's not there. More...
|
| |
◆ Implementations
| Enumerator |
|---|
| wser | |
| wisb | |
| west | |
| cstone | |
| wone | |
◆ getSourceText()
| std::optional<std::string> getSourceText |
( |
ASTContext * |
ctx, |
|
|
SourceRange |
srcRange |
|
) |
| |
Get the text of a source code range or not if it's not there.
- Parameters
-
- Returns
- std::optional<std::string>
Get the text of a source code range or not if it's not there.
◆ AllFiles
| std::vector<std::string> AllFiles |
◆ api_impls
◆ BackendFiles
| std::vector<std::string> BackendFiles |
◆ default_impl
◆ NoFiles
| std::vector<std::string> NoFiles |
◆ PublicHeaders
| std::vector<std::string> PublicHeaders |
◆ UserFiles
| std::vector<std::string> UserFiles |