]> granicus.if.org Git - clang/commitdiff
Frontend: Rename hasASTSupport to hasASTFileSupport, which is more accurate.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 7 Jun 2010 23:24:43 +0000 (23:24 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 7 Jun 2010 23:24:43 +0000 (23:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105580 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/FrontendAction.h
include/clang/Frontend/FrontendActions.h
lib/Frontend/ASTMerge.cpp
lib/Frontend/FrontendAction.cpp

index 1171f1f95a960c0f4c7ffd8aa8fa5eeb17ded96d..9945be79b7ec2096b62e9674dbe907d890bcaefc 100644 (file)
@@ -144,8 +144,8 @@ public:
   /// hasPCHSupport - Does this action support use with PCH?
   virtual bool hasPCHSupport() const { return !usesPreprocessorOnly(); }
 
-  /// hasASTSupport - Does this action support use with AST files?
-  virtual bool hasASTSupport() const { return !usesPreprocessorOnly(); }
+  /// hasASTFileSupport - Does this action support use with AST files?
+  virtual bool hasASTFileSupport() const { return !usesPreprocessorOnly(); }
 
   /// hasCodeCompletionSupport - Does this action support use with code
   /// completion?
index cee1c1d2be778bac2db948f824ca0972a9046a4a..2e224354225326740d896752619e0fa9cc6703d4 100644 (file)
@@ -87,7 +87,7 @@ protected:
 
   virtual void EndSourceFileAction();
 
-  virtual bool hasASTSupport() const { return false; }
+  virtual bool hasASTFileSupport() const { return false; }
 
 public:
   FixItAction();
@@ -101,7 +101,7 @@ protected:
 
   virtual bool usesCompleteTranslationUnit() { return false; }
 
-  virtual bool hasASTSupport() const { return false; }
+  virtual bool hasASTFileSupport() const { return false; }
 };
 
 class HTMLPrintAction : public ASTFrontendAction {
@@ -170,7 +170,7 @@ public:
   virtual bool usesPreprocessorOnly() const;
   virtual bool usesCompleteTranslationUnit();
   virtual bool hasPCHSupport() const;
-  virtual bool hasASTSupport() const;
+  virtual bool hasASTFileSupport() const;
   virtual bool hasCodeCompletionSupport() const;
 };
 
index b0faf0ae86b1a8e87dfc68ba9e0b0b736c6ff744..8118631d5c4207b4e670b9a43e89e8f31e83da87 100644 (file)
@@ -95,8 +95,8 @@ bool ASTMergeAction::hasPCHSupport() const {
   return AdaptedAction->hasPCHSupport();
 }
 
-bool ASTMergeAction::hasASTSupport() const {
-  return AdaptedAction->hasASTSupport();
+bool ASTMergeAction::hasASTFileSupport() const {
+  return AdaptedAction->hasASTFileSupport();
 }
 
 bool ASTMergeAction::hasCodeCompletionSupport() const {
index 633b82c2e0f9aa25e44f4f440afbb6720765d6b9..92137a6dc597651ca983836e38492fb12ae6bf61 100644 (file)
@@ -43,7 +43,8 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI,
   if (InputKind == IK_AST) {
     assert(!usesPreprocessorOnly() &&
            "Attempt to pass AST file to preprocessor only action!");
-    assert(hasASTSupport() && "This action does not have AST support!");
+    assert(hasASTFileSupport() &&
+           "This action does not have AST file support!");
 
     llvm::IntrusiveRefCntPtr<Diagnostic> Diags(&CI.getDiagnostics());
     std::string Error;