Clean up lint errors

This commit is contained in:
Max Brunsfeld 2014-06-09 21:14:38 -07:00
parent 54a555168d
commit 21c259df9c
13 changed files with 57 additions and 58 deletions

View file

@ -56,7 +56,7 @@ namespace tree_sitter {
else
return stream << string("#<null>");
}
const vector<string> & Grammar::ubiquitous_tokens() const {
return ubiquitous_tokens_;
}
@ -65,7 +65,7 @@ namespace tree_sitter {
ubiquitous_tokens_ = ubiquitous_tokens;
return *this;
}
const vector<pair<string, rule_ptr>> & Grammar::rules() const {
return rules_;
}

View file

@ -1,6 +1,7 @@
#ifndef COMPILER_PREPARE_GRAMMAR_EXPAND_TOKENS_H_
#define COMPILER_PREPARE_GRAMMAR_EXPAND_TOKENS_H_
#include <utility>
#include "tree_sitter/compiler.h"
namespace tree_sitter {

View file

@ -69,7 +69,6 @@ namespace tree_sitter {
size_t index = tokens.size();
tokens.push_back({ token_description(rule), rule });
return make_shared<Symbol>(index, SymbolOptionAuxToken);
}
rule_ptr default_apply(const rules::Rule *rule) {

View file

@ -1,6 +1,7 @@
#include "compiler/prepare_grammar/parse_regex.h"
#include <string>
#include <utility>
#include <vector>
#include "compiler/rules/choice.h"
#include "compiler/rules/seq.h"
#include "compiler/rules/repeat.h"

View file

@ -1,9 +1,9 @@
#ifndef COMPILER_PREPARE_GRAMMAR_PARSE_REGEX_H_
#define COMPILER_PREPARE_GRAMMAR_PARSE_REGEX_H_
#include "tree_sitter/compiler.h"
#include <string>
#include <utility>
#include "tree_sitter/compiler.h"
namespace tree_sitter {
namespace prepare_grammar {
@ -12,5 +12,4 @@ namespace tree_sitter {
}
}
#endif // COMPILER_PREPARE_GRAMMAR_PARSE_REGEX_H_
#endif // COMPILER_PREPARE_GRAMMAR_PARSE_REGEX_H_

View file

@ -4,7 +4,6 @@
#include "compiler/rules/pattern.h"
#include "compiler/rules/seq.h"
#include "compiler/rules/choice.h"
#include "compiler/rules/seq.h"
#include "compiler/rules/string.h"
#include "compiler/rules/metadata.h"
#include "compiler/util/string_helpers.h"

View file

@ -1,5 +1,5 @@
#ifndef COMPILER_GENERATE_CODE_TOKEN_DESCRIPTION_H_
#define COMPILER_GENERATE_CODE_TOKEN_DESCRIPTION_H_
#ifndef COMPILER_PREPARE_GRAMMAR_TOKEN_DESCRIPTION_H_
#define COMPILER_PREPARE_GRAMMAR_TOKEN_DESCRIPTION_H_
#include <string>
#include "tree_sitter/compiler.h"
@ -10,4 +10,4 @@ namespace tree_sitter {
}
}
#endif // COMPILER_GENERATE_CODE_TOKEN_DESCRIPTION_H_
#endif // COMPILER_PREPARE_GRAMMAR_TOKEN_DESCRIPTION_H_