Delete unused method and clangAST dependency it required.

llvm-svn: 220640
This commit is contained in:
Daniel Jasper 2014-10-26 14:26:55 +00:00
parent 0e98d93824
commit 09c7c93937
3 changed files with 0 additions and 15 deletions
clang
include/clang/Rewrite/Core
lib/Rewrite

View File

@ -27,7 +27,6 @@ namespace clang {
class LangOptions;
class Rewriter;
class SourceManager;
class Stmt;
/// RewriteBuffer - As code is rewritten, SourceBuffer's from the original
/// input with modifications get a new RewriteBuffer associated with them. The
@ -255,10 +254,6 @@ public:
parentIndent);
}
/// ConvertToString converts statement 'From' to a string using the
/// pretty printer.
std::string ConvertToString(Stmt *From);
/// getEditBuffer - This is like getRewriteBufferFor, but always returns a
/// buffer, and allows you to write on it directly. This is useful if you
/// want efficient low-level access to apis for scribbling on one specific

View File

@ -10,7 +10,6 @@ add_clang_library(clangRewrite
TokenRewriter.cpp
LINK_LIBS
clangAST
clangBasic
clangLex
)

View File

@ -15,7 +15,6 @@
#include "clang/Rewrite/Core/Rewriter.h"
#include "clang/AST/Decl.h"
#include "clang/AST/PrettyPrinter.h"
#include "clang/AST/Stmt.h"
#include "clang/Basic/DiagnosticIDs.h"
#include "clang/Basic/FileManager.h"
#include "clang/Basic/SourceManager.h"
@ -328,14 +327,6 @@ bool Rewriter::ReplaceText(SourceRange range, SourceRange replacementRange) {
return ReplaceText(start, origLength, MB.substr(newOffs, newLength));
}
std::string Rewriter::ConvertToString(Stmt *From) {
assert(From != nullptr && "Expected non-null Stmt");
std::string SStr;
llvm::raw_string_ostream S(SStr);
From->printPretty(S, nullptr, PrintingPolicy(*LangOpts));
return S.str();
}
bool Rewriter::IncreaseIndentation(CharSourceRange range,
SourceLocation parentIndent) {
if (range.isInvalid()) return true;