Skip to content

Commit fa8b11c

Browse files
committed
codestyle in src subdirs
1 parent d00a1fd commit fa8b11c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+118
-56
lines changed

src/ambiguity_cfg_gen/algebra_function_info_attribute.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
2222
}}} */
2323

24+
#include <string>
25+
#include <list>
2426
#include "algebra_function_info_attribute.hh"
2527

2628

src/ambiguity_cfg_gen/generate_ambiguity_cfg.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323

2424
#include "generate_ambiguity_cfg.hh"
2525

26-
26+
#include <list>
27+
#include <string>
2728
#include <boost/format.hpp>
2829

2930
#include "../const.hh"

src/ambiguity_cfg_gen/grammar_vm.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
}}} */
2323

2424
#include <sstream>
25+
#include <list>
26+
#include <string>
2527
// #include <boost/format.hpp>
2628

2729
#include "../log.hh"

src/ambiguity_cfg_gen/grammar_vm_code.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424

2525
#include "grammar_vm_code.hh"
26+
#include <string>
27+
#include <list>
2628

2729

2830
AmbiguityCFG::GrammarVMCode::GrammarVMCode(

src/ambiguity_cfg_gen/grammar_vm_command.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
}}} */
2323

2424
#include "grammar_vm_command.hh"
25+
#include <string>
26+
#include <list>
2527

2628

2729
AmbiguityCFG::GrammarVMCommand::GrammarVMCommand(

src/ambiguity_cfg_gen/grammar_vm_command.hh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ namespace AmbiguityCFG {
3939
// Defines all types of grammar VM commands. The types will be used
4040
// to distinguish all subclasses of the GrammarVMCommand base class.
4141
enum GrammarVMCommandType {LOAD_INT, LOAD_CHAR, LOAD_STRING, LOAD_THIS,
42-
LOAD_VAR, STORE_VAR, CREATE_VAR, LOAD_CONTEXT, STORE_CONTEXT, WRAP_CONTEXT,
43-
MERGE_CONTEXTS, CLEAR_CONTEXT, CLEAR_LOCAL_CONTEXT, CREATE_EPSILON,
44-
CREATE_TERMINAL, CREATE_NONTERMINAL, CREATE_PRODUCTION_FRAGMENT, COMBINE,
45-
RETURN, DUPLICATE, SWAP, POP_STACK, CALL_FUNCTION};
42+
LOAD_VAR, STORE_VAR, CREATE_VAR, LOAD_CONTEXT, STORE_CONTEXT, WRAP_CONTEXT,
43+
MERGE_CONTEXTS, CLEAR_CONTEXT, CLEAR_LOCAL_CONTEXT, CREATE_EPSILON,
44+
CREATE_TERMINAL, CREATE_NONTERMINAL, CREATE_PRODUCTION_FRAGMENT, COMBINE,
45+
RETURN, DUPLICATE, SWAP, POP_STACK, CALL_FUNCTION};
4646

4747

4848
// This is the base class of all grammar VM commands.

src/ambiguity_cfg_gen/grammar_vm_function_compiler.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
#include <cassert>
2828
#include <boost/format.hpp>
29+
#include <string>
30+
#include <list>
2931

3032
#include "../const.hh"
3133
#include "../hashtable.hh"

src/ambiguity_cfg_gen/grammar_vm_function_exec_environment.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626

2727
#include <sstream>
2828
#include <boost/format.hpp>
29+
#include <string>
30+
#include <list>
31+
#include <vector>
2932

3033
#include "../log.hh"
3134

src/ambiguity_cfg_gen/grammar_vm_stack.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
#include <cassert>
2727
#include <iostream>
28+
#include <vector>
2829

2930

3031
AmbiguityCFG::GrammarVMStack::GrammarVMStack() {
@@ -64,7 +65,7 @@ void AmbiguityCFG::GrammarVMStack::reset() {
6465

6566

6667
AmbiguityCFG::GrammarVMStackElement::GrammarVMStackElement(
67-
AmbiguityCFG::GrammarVMStackElementType t)
68+
AmbiguityCFG::GrammarVMStackElementType t)
6869
: type(t) {
6970
}
7071

src/ambiguity_cfg_gen/transform_gap_to_cfg.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#include "transform_gap_to_cfg.hh"
2525

2626
#include <boost/format.hpp>
27+
#include <list>
28+
#include <string>
2729

2830
#include "../const.hh"
2931
#include "algebra_function_info_attribute.hh"

0 commit comments

Comments
 (0)