#include "UsingInserter.h"
#include "ASTUtils.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Lex/Lexer.h"
#include <optional>
namespace clang::tidy::utils {
usingnamespaceast_matchers;
static StringRef getUnqualifiedName(StringRef QualifiedName) { … }
UsingInserter::UsingInserter(const SourceManager &SourceMgr)
: … { … }
std::optional<FixItHint> UsingInserter::createUsingDeclaration(
ASTContext &Context, const Stmt &Statement, StringRef QualifiedName) { … }
StringRef UsingInserter::getShortName(ASTContext &Context,
const Stmt &Statement,
StringRef QualifiedName) { … }
}