summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/DeclSpec.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-03-31 17:46:05 +0000
committerDouglas Gregor <dgregor@apple.com>2010-03-31 17:46:05 +0000
commita771f46c82d7986ba0ceb0a8b656de1b28eacf49 (patch)
tree1d52ccd9051ed70479f9d0b30e33e9473960cc5e /clang/lib/Parse/DeclSpec.cpp
parentc1d2d8a0143f6b8466f5c02932d0ad0021e479fc (diff)
downloadbcm5719-llvm-a771f46c82d7986ba0ceb0a8b656de1b28eacf49.tar.gz
bcm5719-llvm-a771f46c82d7986ba0ceb0a8b656de1b28eacf49.zip
Reinstate my CodeModificationHint -> FixItHint renaming patch, without
the C-only "optimization". llvm-svn: 100022
Diffstat (limited to 'clang/lib/Parse/DeclSpec.cpp')
-rw-r--r--clang/lib/Parse/DeclSpec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/DeclSpec.cpp b/clang/lib/Parse/DeclSpec.cpp
index 4a699e7ad5e..11865ab97b8 100644
--- a/clang/lib/Parse/DeclSpec.cpp
+++ b/clang/lib/Parse/DeclSpec.cpp
@@ -481,7 +481,7 @@ void DeclSpec::Finish(Diagnostic &D, Preprocessor &PP) {
if (TypeSpecComplex != TSC_unspecified) {
if (TypeSpecType == TST_unspecified) {
Diag(D, TSCLoc, SrcMgr, diag::ext_plain_complex)
- << CodeModificationHint::CreateInsertion(
+ << FixItHint::CreateInsertion(
PP.getLocForEndOfToken(getTypeSpecComplexLoc()),
" double");
TypeSpecType = TST_double; // _Complex -> _Complex double.
@@ -507,7 +507,7 @@ void DeclSpec::Finish(Diagnostic &D, Preprocessor &PP) {
Diag(D, SCLoc, SrcMgr, diag::err_friend_storage_spec)
<< SpecName
- << CodeModificationHint::CreateRemoval(SourceRange(SCLoc, SCEndLoc));
+ << FixItHint::CreateRemoval(SourceRange(SCLoc, SCEndLoc));
ClearStorageClassSpecs();
}
OpenPOWER on IntegriCloud