Remove all uses of 'using namespace'

This commit is contained in:
Max Brunsfeld 2014-03-09 22:45:33 -07:00
parent de5deeeb69
commit a4120f36d4
30 changed files with 95 additions and 60 deletions

View file

@ -1,4 +1,5 @@
#include "compiler/rules/blank.h"
#include <string>
#include "compiler/rules/visitor.h"
namespace tree_sitter {

View file

@ -1,6 +1,7 @@
#ifndef COMPILER_RULES_BLANK_H_
#define COMPILER_RULES_BLANK_H_
#include <string>
#include "compiler/rules/rule.h"
namespace tree_sitter {

View file

@ -1,4 +1,5 @@
#include "compiler/rules/character_range.h"
#include <algorithm>
#include <string>
namespace tree_sitter {

View file

@ -1,4 +1,6 @@
#include "compiler/rules/character_set.h"
#include <string>
#include <utility>
#include "compiler/rules/visitor.h"
using std::string;

View file

@ -3,6 +3,8 @@
#include <initializer_list>
#include <set>
#include <string>
#include <utility>
#include "compiler/rules/rule.h"
#include "compiler/rules/character_range.h"

View file

@ -1,4 +1,5 @@
#include "compiler/rules/choice.h"
#include <string>
#include "compiler/rules/visitor.h"
namespace tree_sitter {

View file

@ -1,6 +1,7 @@
#ifndef COMPILER_RULES_CHOICE_H_
#define COMPILER_RULES_CHOICE_H_
#include <string>
#include <vector>
#include "compiler/rules/rule.h"

View file

@ -1,5 +1,6 @@
#include "compiler/rules/pattern.h"
#include <set>
#include <string>
#include "compiler/rules/visitor.h"
#include "compiler/rules/choice.h"
#include "compiler/rules/seq.h"

View file

@ -1,6 +1,7 @@
#ifndef COMPILER_RULES_PATTERN_H_
#define COMPILER_RULES_PATTERN_H_
#include <string>
#include "compiler/rules/rule.h"
namespace tree_sitter {

View file

@ -1,4 +1,5 @@
#include "compiler/rules/repeat.h"
#include <string>
#include "compiler/rules/visitor.h"
namespace tree_sitter {

View file

@ -1,6 +1,7 @@
#ifndef COMPILER_RULES_REPEAT_H_
#define COMPILER_RULES_REPEAT_H_
#include <string>
#include "compiler/rules/rule.h"
namespace tree_sitter {

View file

@ -1,4 +1,5 @@
#include "compiler/rules/seq.h"
#include <string>
#include "compiler/rules/visitor.h"
#include "compiler/rules/blank.h"

View file

@ -1,6 +1,7 @@
#ifndef COMPILER_RULES_SEQ_H_
#define COMPILER_RULES_SEQ_H_
#include <string>
#include <vector>
#include "compiler/rules/rule.h"

View file

@ -1,4 +1,5 @@
#include "compiler/rules/string.h"
#include <string>
#include "compiler/rules/visitor.h"
namespace tree_sitter {

View file

@ -1,6 +1,7 @@
#ifndef COMPILER_RULES_STRING_H_
#define COMPILER_RULES_STRING_H_
#include <string>
#include "compiler/rules/rule.h"
namespace tree_sitter {

View file

@ -1,5 +1,6 @@
#include "compiler/rules/symbol.h"
#include <map>
#include <string>
#include "compiler/rules/visitor.h"
namespace tree_sitter {

View file

@ -1,6 +1,7 @@
#ifndef COMPILER_RULES_SYMBOL_H_
#define COMPILER_RULES_SYMBOL_H_
#include <string>
#include <utility>
#include "compiler/rules/rule.h"