]> granicus.if.org Git - clang/commitdiff
Add a bit of explanation for FrontendActionFactory.
authorStefanus Du Toit <stefanus.du.toit@intel.com>
Thu, 15 Aug 2013 00:35:46 +0000 (00:35 +0000)
committerStefanus Du Toit <stefanus.du.toit@intel.com>
Thu, 15 Aug 2013 00:35:46 +0000 (00:35 +0000)
Also use the more common "derive from" in place of "extend" in another
comment.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188440 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Tooling/Tooling.h

index 9b3572a0fed1c34a07c3be07b77259eced7cc661..7e2be8a8ed3e97713a847be96065c31b6d7cf429 100644 (file)
@@ -54,6 +54,9 @@ class FrontendAction;
 namespace tooling {
 
 /// \brief Interface to generate clang::FrontendActions.
+///
+/// Having a factory interface allows, for example, a new FrontendAction to be
+/// created for each translation unit processed by ClangTool.
 class FrontendActionFactory {
 public:
   virtual ~FrontendActionFactory();
@@ -66,7 +69,7 @@ public:
 
 /// \brief Returns a new FrontendActionFactory for a given type.
 ///
-/// T must extend clang::FrontendAction.
+/// T must derive from clang::FrontendAction.
 ///
 /// Example:
 /// FrontendActionFactory *Factory =