diff options
author | Emanuele Torre <torreemanuele6@gmail.com> | 2020-05-26 19:52:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 19:52:03 +0200 |
commit | d1bc1f5783f31a9339c192e889a24ccd82813b4f (patch) | |
tree | a97aa438668f594a54f7889f92afcd0c697cb32e /Libraries/LibJS | |
parent | 11405c513961b9c3ea274d9e07ede4b4caf6c4cc (diff) | |
download | serenity-d1bc1f5783f31a9339c192e889a24ccd82813b4f.zip |
LibJS: Fix style inconsistencies in AST.h (#2403)
Our current configuration clang-format allows both of these styles:
------------------
class A : B
, C {
-----------------
class A
: B
, C {
------------------
I was not able to find a setting of clang-format to only allow the
latter style (or disallow the first style), but let's at least be
consistent with the style within a file.
Diffstat (limited to 'Libraries/LibJS')
-rw-r--r-- | Libraries/LibJS/AST.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibJS/AST.h b/Libraries/LibJS/AST.h index 31c95e5f9c..4dd15e5723 100644 --- a/Libraries/LibJS/AST.h +++ b/Libraries/LibJS/AST.h @@ -207,7 +207,8 @@ private: virtual const char* class_name() const override { return "FunctionDeclaration"; } }; -class FunctionExpression final : public Expression +class FunctionExpression final + : public Expression , public FunctionNode { public: static bool must_have_name() { return false; } |