//===- FixItRewriter.h - Fix-It Rewriter Diagnostic Client ------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This is a diagnostic client adaptor that performs rewrites as // suggested by code modification hints attached to diagnostics. It // then forwards any diagnostics to the adapted diagnostic client. // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_REWRITE_FRONTEND_FIXITREWRITER_H #define LLVM_CLANG_REWRITE_FRONTEND_FIXITREWRITER_H #include "clang/Basic/Diagnostic.h" #include "clang/Basic/LLVM.h" #include "clang/Basic/SourceLocation.h" #include "clang/Edit/EditedSource.h" #include "clang/Rewrite/Core/Rewriter.h" #include <memory> #include <string> #include <utility> #include <vector> namespace clang { class LangOptions; class SourceManager; class FixItOptions { … }; class FixItRewriter : public DiagnosticConsumer { … }; } // namespace clang #endif // LLVM_CLANG_REWRITE_FRONTEND_FIXITREWRITER_H