10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_USINGINSERTER_H
11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_USINGINSERTER_H
13 #include "clang/AST/Decl.h"
14 #include "clang/AST/Stmt.h"
15 #include "clang/Basic/Diagnostic.h"
16 #include "clang/Basic/SourceManager.h"
32 llvm::Optional<FixItHint>
34 llvm::StringRef QualifiedName);
38 llvm::StringRef
getShortName(ASTContext &Context,
const Stmt &Statement,
39 llvm::StringRef QualifiedName);
42 typedef std::pair<const FunctionDecl *, std::string> NameInFunction;
43 const SourceManager &SourceMgr;
44 std::set<NameInFunction> AddedUsing;
50 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_USINGINSERTER_H
UsingInserter(const SourceManager &SourceMgr)
llvm::Optional< FixItHint > createUsingDeclaration(ASTContext &Context, const Stmt &Statement, llvm::StringRef QualifiedName)
ClangTidyContext & Context
llvm::StringRef getShortName(ASTContext &Context, const Stmt &Statement, llvm::StringRef QualifiedName)