summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/cpp11-migrate/Core/Transform.h
diff options
context:
space:
mode:
authorEdwin Vane <edwin.vane@intel.com>2013-06-18 15:44:58 +0000
committerEdwin Vane <edwin.vane@intel.com>2013-06-18 15:44:58 +0000
commitba6b32d1ce34dacaca5df11dfb5e460b1445914a (patch)
tree25b663f04bcef53af13f02efa948e48f296ae65a /clang-tools-extra/cpp11-migrate/Core/Transform.h
parent75d8fa51c9894df24e224b61c8b1f2cfbf6fc89d (diff)
downloadbcm5719-llvm-ba6b32d1ce34dacaca5df11dfb5e460b1445914a.tar.gz
bcm5719-llvm-ba6b32d1ce34dacaca5df11dfb5e460b1445914a.zip
cpp11-migrate: Transforms honour header modification flag
Transforms will now make changes to headers if header modifications have been enabled. FIXME: Only UseNullptr contains a cursory header modification test. Other transforms should have them too. llvm-svn: 184197
Diffstat (limited to 'clang-tools-extra/cpp11-migrate/Core/Transform.h')
-rw-r--r--clang-tools-extra/cpp11-migrate/Core/Transform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang-tools-extra/cpp11-migrate/Core/Transform.h b/clang-tools-extra/cpp11-migrate/Core/Transform.h
index 651ee32e65f..1894d4464ce 100644
--- a/clang-tools-extra/cpp11-migrate/Core/Transform.h
+++ b/clang-tools-extra/cpp11-migrate/Core/Transform.h
@@ -131,6 +131,11 @@ public:
DeferredChanges = 0;
}
+ /// \brief Tests if the file containing \a Loc is allowed to be modified by
+ /// the Migrator.
+ bool isFileModifiable(const clang::SourceManager &SM,
+ const clang::SourceLocation &Loc) const;
+
/// \brief Called before parsing a translation unit for a FrontendAction.
///
/// Transform uses this function to apply file overrides and start
OpenPOWER on IntegriCloud