diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-20 06:58:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-20 06:58:45 +0000 |
commit | 01cf8db38b4f379e86b06eff5236b5e59dc3de49 (patch) | |
tree | a247b41600120b53c9139a64a4f39fa4edbf61e5 /clang/lib/ARCMigrate/Internals.h | |
parent | 345b6b45c16063a0b317bdfdbfbfdffabb989636 (diff) | |
download | bcm5719-llvm-01cf8db38b4f379e86b06eff5236b5e59dc3de49.tar.gz bcm5719-llvm-01cf8db38b4f379e86b06eff5236b5e59dc3de49.zip |
now that we have a centralized place to do so, add some using declarations for
some common llvm types: stringref and smallvector. This cleans up the codebase
quite a bit.
llvm-svn: 135576
Diffstat (limited to 'clang/lib/ARCMigrate/Internals.h')
-rw-r--r-- | clang/lib/ARCMigrate/Internals.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/clang/lib/ARCMigrate/Internals.h b/clang/lib/ARCMigrate/Internals.h index acbb0a56b6f..a9ab093f3a9 100644 --- a/clang/lib/ARCMigrate/Internals.h +++ b/clang/lib/ARCMigrate/Internals.h @@ -57,15 +57,15 @@ public: bool commitTransaction(); void abortTransaction(); - void insert(SourceLocation loc, llvm::StringRef text); - void insertAfterToken(SourceLocation loc, llvm::StringRef text); + void insert(SourceLocation loc, StringRef text); + void insertAfterToken(SourceLocation loc, StringRef text); void remove(SourceRange range); void removeStmt(Stmt *S); - void replace(SourceRange range, llvm::StringRef text); + void replace(SourceRange range, StringRef text); void replace(SourceRange range, SourceRange replacementRange); - void replaceStmt(Stmt *S, llvm::StringRef text); - void replaceText(SourceLocation loc, llvm::StringRef text, - llvm::StringRef replacementText); + void replaceStmt(Stmt *S, StringRef text); + void replaceText(SourceLocation loc, StringRef text, + StringRef replacementText); void increaseIndentation(SourceRange range, SourceLocation parentIndent); @@ -92,9 +92,9 @@ public: return CapturedDiags.hasDiagnostic(IDs, range); } - void reportError(llvm::StringRef error, SourceLocation loc, + void reportError(StringRef error, SourceLocation loc, SourceRange range = SourceRange()); - void reportNote(llvm::StringRef note, SourceLocation loc, + void reportNote(StringRef note, SourceLocation loc, SourceRange range = SourceRange()); bool hasReportedErrors() const { return ReportedErrors; } @@ -103,7 +103,7 @@ public: public: virtual ~RewriteReceiver(); - virtual void insert(SourceLocation loc, llvm::StringRef text) = 0; + virtual void insert(SourceLocation loc, StringRef text) = 0; virtual void remove(CharSourceRange range) = 0; virtual void increaseIndentation(CharSourceRange range, SourceLocation parentIndent) = 0; @@ -148,7 +148,7 @@ public: bool isARCDiagnostic(unsigned diagID, Diagnostic &Diag); -static inline llvm::StringRef getARCMTMacroName() { +static inline StringRef getARCMTMacroName() { return "__IMPL_ARCMT_REMOVED_EXPR__"; } |