瀏覽代碼

Declare clang::Sema before referencing it (#222)

Lei Zhang 8 年之前
父節點
當前提交
436c38a8f4
共有 1 個文件被更改,包括 16 次插入14 次删除
  1. 16 14
      tools/clang/include/clang/Frontend/CompilerInstance.h

+ 16 - 14
tools/clang/include/clang/Frontend/CompilerInstance.h

@@ -27,20 +27,6 @@
 #include <string>
 #include <utility>
 
-// HLSL Change Starts
-namespace hlsl {
-  class DxcLangExtensionsHelper;
-  class DxcLangExtensionsHelperApply {
-  public:
-    virtual ~DxcLangExtensionsHelperApply() {}
-
-    virtual void SetupSema(clang::Sema &S) = 0;
-    virtual void SetupPreprocessorOptions(clang::PreprocessorOptions &PPOpts) = 0;
-    virtual DxcLangExtensionsHelper *GetDxcLangExtensionsHelper() = 0;
-  };
-}
-// HLSL Change Ends
-
 namespace llvm {
 class raw_fd_ostream;
 class Timer;
@@ -63,7 +49,23 @@ class Preprocessor;
 class Sema;
 class SourceManager;
 class TargetInfo;
+}
 
+// HLSL Change Starts
+namespace hlsl {
+  class DxcLangExtensionsHelper;
+  class DxcLangExtensionsHelperApply {
+  public:
+    virtual ~DxcLangExtensionsHelperApply() {}
+
+    virtual void SetupSema(clang::Sema &S) = 0;
+    virtual void SetupPreprocessorOptions(clang::PreprocessorOptions &PPOpts) = 0;
+    virtual DxcLangExtensionsHelper *GetDxcLangExtensionsHelper() = 0;
+  };
+}
+// HLSL Change Ends
+
+namespace clang {
 /// CompilerInstance - Helper class for managing a single instance of the Clang
 /// compiler.
 ///