add #pragma once to jit headers

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/22505

Differential Revision: D16119310

Pulled By: Krovatkin

fbshipit-source-id: 8b742411f40d66690ce28726c213741e0c2de618
diff --git a/torch/csrc/jit/alias_info.h b/torch/csrc/jit/alias_info.h
index 443a8b5..eb3d18d 100644
--- a/torch/csrc/jit/alias_info.h
+++ b/torch/csrc/jit/alias_info.h
@@ -1,3 +1,5 @@
+#pragma once
+
 #include <ATen/core/alias_info.h>
 
 namespace torch {
diff --git a/torch/csrc/jit/ir_views.h b/torch/csrc/jit/ir_views.h
index b36e1ea..e5d75c1 100644
--- a/torch/csrc/jit/ir_views.h
+++ b/torch/csrc/jit/ir_views.h
@@ -1,3 +1,5 @@
+#pragma once
+
 #include <torch/csrc/jit/ir.h>
 
 namespace torch {
diff --git a/torch/csrc/jit/irparser.h b/torch/csrc/jit/irparser.h
index f51af12..81258bb 100644
--- a/torch/csrc/jit/irparser.h
+++ b/torch/csrc/jit/irparser.h
@@ -1,3 +1,5 @@
+#pragma once
+
 #include <torch/csrc/WindowsTorchApiMacro.h>
 #include <string>
 #include <unordered_map>
diff --git a/torch/csrc/jit/script/mini_environment.h b/torch/csrc/jit/script/mini_environment.h
index f3c2cfe..4408e07 100644
--- a/torch/csrc/jit/script/mini_environment.h
+++ b/torch/csrc/jit/script/mini_environment.h
@@ -1,3 +1,5 @@
+#pragma once
+
 #include <ATen/core/jit_type.h>
 #include <torch/csrc/jit/ir.h>
 
diff --git a/torch/csrc/jit/script/python_sugared_value.h b/torch/csrc/jit/script/python_sugared_value.h
index 53e8167..75c3a1f 100644
--- a/torch/csrc/jit/script/python_sugared_value.h
+++ b/torch/csrc/jit/script/python_sugared_value.h
@@ -1,4 +1,3 @@
-
 #pragma once
 
 #include <torch/csrc/jit/pybind_utils.h>
diff --git a/torch/csrc/jit/script/python_tree_views.h b/torch/csrc/jit/script/python_tree_views.h
index 9f078b9..95a8fe6 100644
--- a/torch/csrc/jit/script/python_tree_views.h
+++ b/torch/csrc/jit/script/python_tree_views.h
@@ -1,3 +1,5 @@
+#pragma once
+
 #include <torch/csrc/python_headers.h>
 
 namespace torch {
diff --git a/torch/csrc/jit/script/schema_type_parser.h b/torch/csrc/jit/script/schema_type_parser.h
index fc53c80..b98eecf 100644
--- a/torch/csrc/jit/script/schema_type_parser.h
+++ b/torch/csrc/jit/script/schema_type_parser.h
@@ -1,3 +1,5 @@
+#pragma once
+
 #include <ATen/core/jit_type.h>
 #include <ATen/core/alias_info.h>
 #include <torch/csrc/jit/script/lexer.h>