Skip to content

Commit

Permalink
Update headers in files.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinffernandez committed Sep 30, 2024
1 parent 369c7f3 commit d076904
Show file tree
Hide file tree
Showing 226 changed files with 1,075 additions and 1,094 deletions.
22 changes: 11 additions & 11 deletions src/mmoc/ast/ast_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
#include <list>
#include <string>

#include "ast_builder.h"
#include "ast_builder.hpp"
#include <ast/parser/mocc_parser.h>
#include "ast_types.h"
#include "../util/ast_util.h"
#include "class.h"
#include "composition.h"
#include "element.h"
#include "equation.h"
#include "expression.h"
#include "modification.h"
#include "statement.h"
#include "stored_definition.h"
#include "ast_types.hpp"
#include "../util/ast_util.hpp"
#include "class.hpp"
#include "composition.hpp"
#include "element.hpp"
#include "equation.hpp"
#include "expression.hpp"
#include "modification.hpp"
#include "statement.hpp"
#include "stored_definition.hpp"

class MCC_Parser;
class MCC_Lexer;
Expand Down
2 changes: 1 addition & 1 deletion src/mmoc/ast/ast_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <string>

#include "ast_types.h"
#include "ast_types.hpp"

/* Constructors */
AST_ArgumentList newAST_ArgumentList();
Expand Down
2 changes: 1 addition & 1 deletion src/mmoc/ast/ast_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
******************************************************************************/

#include "ast_node.h"
#include "ast_node.hpp"

#include <iostream>
#include <sstream>
Expand Down
4 changes: 2 additions & 2 deletions src/mmoc/ast/ast_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

#pragma once

#include "../util/macros.h"
#include "../util/util_types.h"
#include "../util/macros.hpp"
#include "../util/util_types.hpp"

class AST_Visitor;

Expand Down
4 changes: 2 additions & 2 deletions src/mmoc/ast/ast_printer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

#pragme once

#include <ast/ast_types.h>
#include <util/macros.h>
#include <ast/ast_types.hpp>
#include <util/macros.hpp>

using namespace std;

Expand Down
2 changes: 1 addition & 1 deletion src/mmoc/ast/ast_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <set>
#include <string>

#include "../util/macros.h"
#include "../util/macros.hpp"

#define MAKE_SPACE \
for (int __i = 0; __i < block; __i++) ret << " ";
Expand Down
10 changes: 5 additions & 5 deletions src/mmoc/ast/class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
******************************************************************************/

#include "class.h"
#include "class.hpp"

#include <stddef.h>
#include <iostream>
#include <list>

#include "../util/ast_util.h"
#include "ast_builder.h"
#include "composition.h"
#include "element.h"
#include "../util/ast_util.hpp"
#include "ast_builder.hpp"
#include "composition.hpp"
#include "element.hpp"

AST_Class_::AST_Class_(AST_String n, AST_Composition comp)
: _name(n), _composition(comp), _father(nullptr), _basic(false), _encapsulated(false), _final(false), _prefix()
Expand Down
8 changes: 4 additions & 4 deletions src/mmoc/ast/class.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
#ifndef AST_CLASS_H_
#define AST_CLASS_H_

#include "../util/macros.h"
#include "../util/util_types.h"
#include "ast_node.h"
#include "ast_types.h"
#include "../util/macros.hpp"
#include "../util/util_types.hpp"
#include "ast_node.hpp"
#include "ast_types.hpp"

class AST_Class_ : public AST_Node_ {
public:
Expand Down
16 changes: 8 additions & 8 deletions src/mmoc/ast/composition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
******************************************************************************/

#include "composition.h"
#include "composition.hpp"

#include <iostream>
#include <list>

#include "../util/ast_util.h"
#include "ast_builder.h"
#include "element.h"
#include "equation.h"
#include "expression.h"
#include "modification.h"
#include "statement.h"
#include "../util/ast_util.hpp"
#include "ast_builder.hpp"
#include "element.hpp"
#include "equation.hpp"
#include "expression.hpp"
#include "modification.hpp"
#include "statement.hpp"

/* Composition Class */

Expand Down
8 changes: 4 additions & 4 deletions src/mmoc/ast/composition.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@

#include <string>

#include "../util/macros.h"
#include "../util/util_types.h"
#include "ast_node.h"
#include "ast_types.h"
#include "../util/macros.hpp"
#include "../util/util_types.hpp"
#include "ast_node.hpp"
#include "ast_types.hpp"

class AST_CompositionElement_;

Expand Down
8 changes: 4 additions & 4 deletions src/mmoc/ast/element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
******************************************************************************/

#include "element.h"
#include "element.hpp"

#include <list>
#include <sstream>

#include "class.h"
#include "modification.h"
#include "../util/ast_util.h"
#include "class.hpp"
#include "modification.hpp"
#include "../util/ast_util.hpp"

using namespace std;

Expand Down
8 changes: 4 additions & 4 deletions src/mmoc/ast/element.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@

#include <string>

#include "../util/macros.h"
#include "../util/util_types.h"
#include "ast_node.h"
#include "ast_types.h"
#include "../util/macros.hpp"
#include "../util/util_types.hpp"
#include "ast_node.hpp"
#include "ast_types.hpp"

class AST_Element_ : public AST_Node_ {
public:
Expand Down
6 changes: 3 additions & 3 deletions src/mmoc/ast/equation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
******************************************************************************/

#include "equation.h"
#include "equation.hpp"

#include <list>
#include <sstream>

#include "../util/ast_util.h"
#include "expression.h"
#include "../util/ast_util.hpp"
#include "expression.hpp"

/* Equation Class */

Expand Down
10 changes: 5 additions & 5 deletions src/mmoc/ast/equation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@

#include <string>

#include <ast/ast_node.h>
#include <ast/ast_types.h>
#include <ast/element.h>
#include <util/macros.h>
#include <util/util_types.h>
#include <ast/ast_node.hpp>
#include <ast/ast_types.hpp>
#include <ast/element.hpp>
#include <util/macros.hpp>
#include <util/util_types.hpp>

class AST_Equation_ : public AST_Node_ {
public:
Expand Down
6 changes: 3 additions & 3 deletions src/mmoc/ast/expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
******************************************************************************/

#include "expression.h"
#include "expression.hpp"

#include <list>
#include <sstream>

#include "../util/ast_util.h"
#include "ast_builder.h"
#include "../util/ast_util.hpp"
#include "ast_builder.hpp"

const char *BinOpTypeName[] = {" or ", " and ", "<", "<=", ">", ">=", "<>", "==", "+", ".+", "-", ".-", "/", "./", "*", ".*", "^", ".^"};

Expand Down
8 changes: 4 additions & 4 deletions src/mmoc/ast/expression.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@

#include <string>

#include "../util/macros.h"
#include "../util/util_types.h"
#include "ast_node.h"
#include "ast_types.h"
#include "../util/macros.hpp"
#include "../util/util_types.hpp"
#include "ast_node.hpp"
#include "ast_types.hpp"

class AST_Expression_ : public AST_Node_ {
public:
Expand Down
8 changes: 4 additions & 4 deletions src/mmoc/ast/imports.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "imports.h"
#include "imports.hpp"

#include <list>

#include "ast_builder.h"
#include "class.h"
#include "element.h"
#include "ast_builder.hpp"
#include "class.hpp"
#include "element.hpp"

AST_Imports::AST_Imports() { _imports = newAST_StringList(); }

Expand Down
4 changes: 2 additions & 2 deletions src/mmoc/ast/imports.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#ifndef IMPORTS_H_
#define IMPORTS_H_

#include "../util/ast_util.h"
#include "ast_types.h"
#include "../util/ast_util.hpp"
#include "ast_types.hpp"

/**
*
Expand Down
6 changes: 3 additions & 3 deletions src/mmoc/ast/modification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
******************************************************************************/

#include "modification.h"
#include "modification.hpp"

#include <list>
#include <sstream>

#include "../util/ast_util.h"
#include "expression.h"
#include "../util/ast_util.hpp"
#include "expression.hpp"

/* Argument Class */

Expand Down
8 changes: 4 additions & 4 deletions src/mmoc/ast/modification.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@

#include <string>

#include "../util/macros.h"
#include "../util/util_types.h"
#include "ast_node.h"
#include "ast_types.h"
#include "../util/macros.hpp"
#include "../util/util_types.hpp"
#include "ast_node.hpp"
#include "ast_types.hpp"

/**
*
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/mmoc/ast/parser/mocc.lex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <iostream>
#include <stdlib.h>

#include "config.h"
#include <ast/parser/config.h>
#include <ast/parser/mocc_parser.h>

#ifdef MCC_Lexer_DEBUG
Expand Down
2 changes: 1 addition & 1 deletion src/mmoc/ast/parser/mocc.y
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
%header{
#include <FlexLexer.h>
#include <string.h>
#include <ast/ast_builder.h>
#include <ast/ast_builder.hpp>

class MCC_Lexer: public yyFlexLexer {
public:
Expand Down
11 changes: 5 additions & 6 deletions src/mmoc/ast/parser/parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,18 @@
******************************************************************************/

#include "parse.h"
#include "parse.hpp"

#include <cstdlib>
#include <fstream>
#include <iostream>
#include <list>
#include <string>

#include <ast/ast_types.h>
#include <ast/class.h>
#include <ast/composition.h>
#include <ast/equation.h>
#include <ast/stored_definition.h>
#include <ast/class.hpp>
#include <ast/composition.hpp>
#include <ast/equation.hpp>
#include <ast/stored_definition.hpp>
#include <ast/parser/mocc_parser.h>

using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion src/mmoc/ast/parser/parse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <string>

#include <ast/ast_types.h>
#include <ast/ast_types.hpp>

AST_StoredDefinition parseFile(string, int *);

Expand Down
8 changes: 4 additions & 4 deletions src/mmoc/ast/statement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
******************************************************************************/

#include "statement.h"
#include "statement.hpp"

#include <list>
#include <sstream>

#include "../util/ast_util.h"
#include "element.h"
#include "expression.h"
#include "../util/ast_util.hpp"
#include "element.hpp"
#include "expression.hpp"

/* Statement Class */

Expand Down
Loading

0 comments on commit d076904

Please sign in to comment.