diff options
author | Chris Lattner <sabre@nondot.org> | 2007-10-23 04:27:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-10-23 04:27:44 +0000 |
commit | 28571edba87c76850fc5c4b7c7abb6390c0a642e (patch) | |
tree | fc1ec5326b139c15435f1314cfc9b7e52081a83b /docs/tutorial/LangImpl2.html | |
parent | 4102eb57bbeecbbf5b5b5122ed1ecd4cd5487878 (diff) |
several improvements suggested by Dan, thanks!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43237 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial/LangImpl2.html')
-rw-r--r-- | docs/tutorial/LangImpl2.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/tutorial/LangImpl2.html b/docs/tutorial/LangImpl2.html index e6c53dafaa..1fdd442c65 100644 --- a/docs/tutorial/LangImpl2.html +++ b/docs/tutorial/LangImpl2.html @@ -65,7 +65,7 @@ public: class NumberExprAST : public ExprAST { double Val; public: - NumberExprAST(double val) : Val(val) {} + explicit NumberExprAST(double val) : Val(val) {} }; </pre> </div> @@ -87,7 +87,7 @@ in the basic form of the Kaleidoscope language. class VariableExprAST : public ExprAST { std::string Name; public: - VariableExprAST(const std::string &name) : Name(name) {} + explicit VariableExprAST(const std::string &name) : Name(name) {} }; /// BinaryExprAST - Expression class for a binary operator. @@ -850,14 +850,14 @@ public: class NumberExprAST : public ExprAST { double Val; public: - NumberExprAST(double val) : Val(val) {} + explicit NumberExprAST(double val) : Val(val) {} }; /// VariableExprAST - Expression class for referencing a variable, like "a". class VariableExprAST : public ExprAST { std::string Name; public: - VariableExprAST(const std::string &name) : Name(name) {} + explicit VariableExprAST(const std::string &name) : Name(name) {} }; /// BinaryExprAST - Expression class for a binary operator. |